Import Guava to AndroidX repository #531
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This incorporates some stuff from #395 in order to complete migrating Guava from XamarinComponents to the AndroidX repository.
Some notes:
excludedRuntimeDependenciesto ignore Guava's dependencies. They use the "parent POM" pattern which we currently do not support, which causesbinderatorto throw anNRE. We use explicit<PackageReference>'s for now to incorporate these dependencies.Xamarin.CodeHaus.Mojo.AnimalSnifferAnnotationsas a Guava dependency, as this is not present in the POM.binderatorfor dependency management currently), does not importXamarin.Google.J2Objc.AnnotationsorXamarin.CheckerFramework.CheckerCompatQualto this repo yet.CheckerCompatQualis no longer the correct dependency anyways, it now usesCheckerQual.MonoAndroid12.0to match the rest of AndroidX.BuildAll.csprojbecause they both contain the sameListenableFuture.class. We choose to only build Guava.9999.0.0instead of1.0.0.7. (Context: [Guava.ListenableFuture] Create a 9999.0 version without the .jar to match Maven. xamarin/XamarinComponents#1366)31.0-jre.Future tasks:
Xamarin.Google.J2Objc.Annotationsto this repository.Xamarin.CheckerFramework.CheckerQual.binderatorsupport for "parent POM" so we can use automatic dependency management.CI Packages (Left is NuGet, right is CI)
Xamarin.Google.Guava
Xamarin.Google.Guava.ListenableFuture
Xamarin.Google.Guava.FailureAccess