[Xamarin.Android.Build.Tasks] @(AndroidLibrary) for all project types#5372
Conversation
8868293 to
1aa70d8
Compare
|
The one test failure is: @dellis1972 if you want to see the Maybe a random failure? |
Related to https://github.com/xamarin/monodroid/pull/1139/files#diff-7852ba3521b112c065b28e7d98b1b05843c2215fc0e28300264bcdb7bf311780R136 . The |
|
The problem is in |
|
ok looks like the main issue here is we probably need to use a different package like |
|
|
||
| ## EmbeddedReferenceJar | ||
|
|
||
| In a Xamarin.Android binding project, the **EmbeddedReferenceJar** |
There was a problem hiding this comment.
Ditto here, etc., etc. We can link to build properties & item group docs now! Let's use it.
There was a problem hiding this comment.
I did this everywhere now, except for when they refer to themselves.
1aa70d8 to
f12dbce
Compare
Fixes: dotnet#5357 The new `@(AndroidLibrary)` item group can now be used in "legacy" Xamarin.Android: <AndroidLibrary Include="foo.jar" /> <AndroidLibrary Include="bar.aar" /> * Application and class library projects: * `foo.jar` maps to `AndroidJavaLibrary` * `bar.aar` maps to `AndroidAarLibrary` * Java binding projects: * `foo.jar` maps to `EmbeddedJar` * `foo.jar` maps to `EmbeddedReferenceJar` if `Bind="false"` metadata is added * `bar.aar` maps to `LibraryProjectZip` * Additionally: * `@(AndroidNativeLibrary)` now will be used for native libraries. You can use `@(AndroidNativeLibrary)` instead of `@(EmbeddedNativeLibrary)`. All `@(AvailableItemNames)` are now defined in a single `Xamarin.Android.AndroidItems.targets` that is imported by all project types: both legacy apps, libraries, and bindings and .NET 6. I documented the changes to the item groups, some of which didn't have documentation at all. I updated a few binding tests to use `@(AndroidLibrary)`. There are still several more tests using the old item names.
f12dbce to
8cca282
Compare
Fixes: #5357
The new
@(AndroidLibrary)item group can now be used in "legacy"Xamarin.Android:
foo.jarmaps toAndroidJavaLibrarybar.aarmaps toAndroidAarLibraryfoo.jarmaps toEmbeddedJarfoo.jarmaps toEmbeddedReferenceJarifBind="false"metadata is addedbar.aarmaps toLibraryProjectZip@(AndroidNativeLibrary)now will be used for native libraries.You can use
@(AndroidNativeLibrary)instead of@(EmbeddedNativeLibrary).All
@(AvailableItemNames)are now defined in a singleXamarin.Android.AndroidItems.targetsthat is imported by all projecttypes: both legacy apps, libraries, and bindings and .NET 6.
I documented the changes to the item groups, some of which didn't have
documentation at all.
I updated a few binding tests to use
@(AndroidLibrary). There arestill several more tests using the old item names.