Skip to content

Commit fe7b9f0

Browse files
committed
AndroidMavenLibrary_AllDependenciesAreVerified works across all 3 runtimes
1 parent 4d45c92 commit fe7b9f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BindingBuildTest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,13 @@ public void AndroidMavenLibrary_IgnoreDependencyVerification ([Values] AndroidRu
10931093
}
10941094

10951095
[Test]
1096-
public void AndroidMavenLibrary_AllDependenciesAreVerified ()
1096+
public void AndroidMavenLibrary_AllDependenciesAreVerified ([Values] AndroidRuntime runtime)
10971097
{
1098+
bool isRelease = runtime == AndroidRuntime.NativeAOT;
1099+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
1100+
return;
1101+
}
1102+
10981103
// Test that <AndroidMavenLibrary> triggers Java dependency verification and that
10991104
// all dependencies are verified via various supported mechanisms
11001105

@@ -1126,10 +1131,12 @@ public void AndroidMavenLibrary_AllDependenciesAreVerified ()
11261131
var parcelable = new BuildItem ("AndroidIgnoredJavaDependency", "androidx.versionedparcelable:versionedparcelable:1.2.0");
11271132

11281133
var proj = new XamarinAndroidBindingProject {
1134+
IsRelease = isRelease,
11291135
Jars = { item, annotations_experimental_androidlib },
11301136
PackageReferences = { annotations_nuget },
11311137
OtherBuildItems = { concurrent, lifecycle, parcelable },
11321138
};
1139+
proj.SetRuntime (runtime);
11331140

11341141
proj.AddReference (collection);
11351142
var collection_proj = proj.References.First ();

0 commit comments

Comments
 (0)