Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit e991d2c

Browse files
committed
Bring back aar in nupkg
This reverts db74a74 Which should be fixed by 15311bc which causes the .targets file to be properly imported for transitive nuget dependencies of a project.
1 parent 3e42589 commit e991d2c

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

source/AndroidSupportProject.cshtml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@
7070
</ItemGroup>
7171
}
7272

73-
<ItemGroup>
74-
@foreach (var art in @Model.MavenArtifacts) {
75-
if (art.MavenArtifactPackaging == "aar") {
76-
<LibraryProjectZip Include="..\..\externals\@(art.MavenGroupId).@(art.MavenArtifactId).aar" />
77-
}
78-
}
79-
</ItemGroup>
80-
81-
8273
<ItemGroup>
8374
<Folder Include="Additions\" />
8475
<Folder Include="Jars\" />
@@ -102,7 +93,7 @@
10293

10394
<ItemGroup>
10495
@foreach (var art in @Model.MavenArtifacts) {
105-
if (1==2 && art.MavenArtifactPackaging == "aar") {
96+
if (art.MavenArtifactPackaging == "aar") {
10697
<None Include="..\..\externals\@(art.MavenGroupId).@(art.MavenArtifactId).aar" Pack="True" PackagePath="aar\" />
10798
}
10899
}

source/AndroidSupportTargets.cshtml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@
2727
}
2828
</ItemGroup>
2929
}
30-
30+
<ItemGroup>
31+
@foreach (var art in @Model.MavenArtifacts) {
32+
if (art.MavenArtifactPackaging == "aar") {
33+
<AndroidAarLibrary Include="$(MSBuildThisFileDirectory)..\..\aar\@(art.MavenGroupId).@(art.MavenArtifactId).aar" />
34+
}
35+
}
36+
</ItemGroup>
3137
@{
3238
string mergeTargets = Path.Combine(Model.Config.BasePath, "source", Model.MavenGroupId, Model.Name, "merge.targets");
3339
if (File.Exists(mergeTargets)) {

0 commit comments

Comments
 (0)