-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xamarin.Android.Glide] add multitargeting for .NET 6 #1261
Conversation
* Use Xamarin.Legacy.Sdk. * Build with `dotnet build` * Use `[assembly: AssemblyMetadata("IsTrimmable", "True")]` * Set legacy compatibility properties mentioned here: https://github.com/xamarin/xamarin-android/blob/5f408ebb22df51b598c62f776ee0f82f92661b58/Documentation/guides/OneDotNetBindingProjects.md This also updates any AndroidX dependencies so that they are using the new versions that *also* multitarget for .NET 6.
Yeah, I think this needs some custom I'll probably come back to this later, some other stuff has come up. |
To mirror what xamarin/AndroidX does: 1. Unzip all `.aar` files, so `classes.jar` is available for binding. 2. Use `@(InputJar)` on `classes.jar` 3. Pack `.aar` files (or `disklrucache.jar`) inside the NuGet package as a loose file. 4. Add a `.targets` file to consume the `.aar`/`.jar` when the NuGet package is added to projects. I also moved some common logic to `Directory.Build.props`.
Conflicts: Android/Glide/source/Xamarin.Android.Glide.DiskLruCache/Xamarin.Android.Glide.DiskLruCache.csproj Android/Glide/source/Xamarin.Android.Glide.GifDecoder/Xamarin.Android.Glide.GifDecoder.csproj Android/Glide/source/Xamarin.Android.Glide.RecyclerViewIntegration/Xamarin.Android.Glide.RecyclerViewIntegration.csproj Android/Glide/source/Xamarin.Android.Glide/Xamarin.Android.Glide.csproj
I also bumped to XA 11.4.0.5
I manually tested the packages here: https://github.com/jonathanpeppers/glidex/compare/test-glide-update The file layout is now:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Per this comment, I don't think we can remove Also, what do we need to get CI to run on this? Bump the version number? (cc @moljac) I would like a chance to examine the final NuGet package before we merge since there are a lot of changes to this. |
CI ran previously... because I downloaded artifacts... |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
for publishing? tagging. But leave it to me. Tags in XC repo are messy and I never got to clean them up. |
Yes. This is why I wrote that.
Now I see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why the CI wasn't showing up in GitHub. 🤷
Packages look good. Will have to bump version numbers if you want to release new packages with these changes: https://github.com/xamarin/XamarinComponents/pull/1271/files.
@moljac would you be able to release the Glide packages later this week? Thanks! |
Tagged. Waiting for CI. By the time you get up I think I will publish it. |
The latest release is working fine: dotnet/maui#2563 |
dotnet build
[assembly: AssemblyMetadata("IsTrimmable", "True")]
.aar
/.jar
files loose inside the NuGet packagehttps://github.com/xamarin/xamarin-android/blob/5f408ebb22df51b598c62f776ee0f82f92661b58/Documentation/guides/OneDotNetBindingProjects.md
This also updates any AndroidX dependencies so that they are using the
new versions that also multitarget for .NET 6.