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

Commit db74a74

Browse files
committed
Embed .aar in .dll
Running into some resource not found issues at build time and suspect this is why.
1 parent 0422424 commit db74a74

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

source/AndroidSupportProject.cshtml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@
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+
7382
<ItemGroup>
7483
<Folder Include="Additions\" />
7584
<Folder Include="Jars\" />
@@ -93,7 +102,7 @@
93102

94103
<ItemGroup>
95104
@foreach (var art in @Model.MavenArtifacts) {
96-
if (art.MavenArtifactPackaging == "aar") {
105+
if (1==2 && art.MavenArtifactPackaging == "aar") {
97106
<None Include="..\..\externals\@(art.MavenGroupId).@(art.MavenArtifactId).aar" Pack="True" PackagePath="aar\" />
98107
}
99108
}

source/AndroidSupportTargets.cshtml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
</ItemGroup>
2929
}
3030

31-
<ItemGroup>
32-
@foreach (var art in @Model.MavenArtifacts) {
33-
if (art.MavenArtifactPackaging == "aar") {
34-
<AndroidAarLibrary Include="$(MSBuildThisFileDirectory)..\..\aar\@(art.MavenGroupId).@(art.MavenArtifactId).aar" />
35-
}
36-
}
37-
</ItemGroup>
38-
3931
@{
4032
string mergeTargets = Path.Combine(Model.Config.BasePath, "source", Model.MavenGroupId, Model.Name, "merge.targets");
4133
if (File.Exists(mergeTargets)) {

0 commit comments

Comments
 (0)