Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ public void ResolveLibraryProjectImports ([Values (true, false)] bool useAapt2)

b.BuildLogFile = "build2.log";
Assert.IsTrue (b.Build (proj), "second build should have succeeded.");
FileAssert.Exists (cacheFile);
var actual = ReadCache (cacheFile);
CollectionAssert.AreEqual (actual.Jars.Select (j => j.ItemSpec),
expected.Jars.Select (j => j.ItemSpec));
Expand All @@ -871,6 +872,7 @@ public void ResolveLibraryProjectImports ([Values (true, false)] bool useAapt2)

b.BuildLogFile = "build3.log";
Assert.IsTrue (b.Build (proj), "third build should have succeeded.");
FileAssert.Exists (cacheFile);
actual = ReadCache (cacheFile);
Assert.AreEqual (expected.Jars.Length + 1, actual.Jars.Length,
$"{nameof (expected.Jars)} should have one more item");
Expand All @@ -885,6 +887,7 @@ public void ResolveLibraryProjectImports ([Values (true, false)] bool useAapt2)
// Build with no changes, checking we are skipping targets appropriately
b.BuildLogFile = "build4.log";
Assert.IsTrue (b.Build (proj), "fourth build should have succeeded.");
FileAssert.Exists (cacheFile);
var targets = new List<string> {
"_UpdateAndroidResgen",
"_CompileJava",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ This file is used by all project types, including binding projects.
OutputImportDirectory="$(_AndroidLibrayProjectIntermediatePath)"
/>
<Touch Files="$(_AndroidStampDirectory)_ResolveLibraryProjectImports.stamp" AlwaysCreate="true" />
<ItemGroup>
<FileWrites Include="$(_AndroidLibraryProjectImportsCache)"
Condition="Exists ('$(_AndroidLibraryProjectImportsCache)')"/>
</ItemGroup>
</Target>

<Target Name="_ExtractLibraryProjectImports" DependsOnTargets="_ResolveLibraryProjectImports">
Expand Down