-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update to AndroidX #72
Comments
@PureWeen I'm getting Missing class error When Code Shrinker is set to R8. Can you help ? Missing class: androidx.paging.PositionalDataSource LocalNotification.Sample.Android C:\Users\elvin\source\repos\Plugin.LocalNotification\Sample\Direct\LocalNotification.Sample.Android\R8 |
@thudugala I think you can fix that with a proguard file We have one that we add in as part of our targets I'm also poking the AndroidX team see if they have any additional thoughts |
Proguard file might help, but repro sample would help me a lot. Can you provide one, please? |
@PureWeen as https://www.nuget.org/packages/Xamarin.AndroidX.Work.Runtime/ already has a proguard file. I'm not sure what I need to add more. Can you Help ? FYI: But when plugin is reference from nuget package with direct reference to Xamarin.AndroidX.Work.Runtime in my android project. It does not work. |
@thudugala if you add a proguard file to your android project that keeps androidx.paging.PositionalDataSource does it work? So if you add a proguard file with -keep class androidx.paging.PositionalDataSource { *; } does that work? FYI on windows |
Redirect from #58 HI! Does anyone has a solution or a workaround for this problem? Getting the same error in release mode, with code shrinker set to R8 and with Plugin.LocalNotification version 5.0.0 or 5.0.1. EDIT: Only way I've found to compile was by adding the following to proguard.cfg: |
Found a workaround, seems like adding the following to proguard.cfg solved the problem in my case: My app compile with R8 linker, and the notifications work. |
Updating the following nugets to these version:
and adding the following to my proguard.cfg (ignore my previous comments):
fixed the issue for me. I'm able to link in release mode with code shrinker set to R8. If you still experience some issues, here's my complete proguard.cfg:
|
Is your feature request related to a problem? Please describe.
Hello from the Xamarin.Forms Team!!
Just wanted to drop an FYI here that we've updated our 4.5 release to work with AndroidX.
There have been some issues with libraries that depend on Xamarin.Android.Arch.Work.Runtime
xamarin/Xamarin.Forms#9546 (comment)
Describe the solution you'd like
Provide MonoAndroid10.0 targets that use androidx
Ping me if you have any issues or questions
The text was updated successfully, but these errors were encountered: