-
Notifications
You must be signed in to change notification settings - Fork 125
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
Proguard issue with Android release #258
Comments
I am using the following Proguard rules. I wonder if they can be narrowed down further `-keepnames class com.microsoft.** { ; } #better in crash logs #This enum is accessed via reflection in common msal lib thus proguard removes it. #Classes for below package is used by MSAL library. Ignore warning coming from the dependency. |
@NLLAPPS Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sun.ws.rs.ext.RuntimeDelegateImpl" Do you use Drive part? |
Yes I do. Are you sue rules are applied? |
Yes because I had a synthax error with your rules ... |
|
if i add I have already: |
Yes, there are some changes I had to implement |
and it's ok with proguard? |
It is OK in my app. I cannot provide it. It is integrated in to my app unfortunately. MSAL sample android app has commits that shows changes |
But why Microsoft is so tricky??? Thanks for your help. is there a way to mamage multi account ? |
I've asked this few time in their issue trackers. The main issue is finding out what is what and when to implement. There are a lot of abandoned projects, un-documented projects/sdks Re: Multi account. I think it is being implemented. I am following commits to https://github.com/Azure-Samples/ms-identity-android-native/ for example https://github.com/Azure-Samples/ms-identity-android-native/pull/21/files |
So I made the changes. it's ok in debug but still the same issue in release. It's ok with R8 off !!! Thanks a lot for your links |
@fiasko131 @NLLAPPS msgraph-sdk-java is usable on Android, the older msgraph-sdk-android is going to be deprecated and replaced by msgraph-sdk-java. Have you tested this Proguard issue along with msgraph-sdk-java ? |
I was able to fix pro guard issues with above rule set and able to use it fine.
I only acces to one drive and use limited set of APIs though.
|
Did you read my first post? I migrated to msgraph-sdk-java from one-drive-sdk for android and got this issue with proguard R8. To reproduce the behavior just test with android-java-connect-sample as explained in my first post. Please be more clear about the usable libraries because I have just migrated back to msgraph-sdk-android !! |
@NLLAPPS |
Yes it is enabled
|
@fiasko131 I'm having the same issue: switched to Edit: If I add the entries of your starting post to the proguard file (with R8 enabled), the
|
@fiasko131 Have you been able to fix this? Im having the same issue I added all -keep and same issue. |
This:
keep class com.sun.** { ; }
-keep class com.sun.*
-keep interface com.sun.** { *; }
Might be too broad exclusion.
|
Was anyone able to fix this? Getting the same error. |
Still getting the same error. |
Hey everyone, |
Is this sdk really usable on Adroid?
I am referring to this post issue #213
I also posted on Stack Overflow with more details .
Please keep us informed as we have been spending time to migrate from onedrive-sdk-android which seems no longer maintained and no longer works with Pie.
Thanks
Steps to reproduce the behavior
Import android-java-connect-sample
Replace the app gradle file by this:
proguard-rules.pro
The text was updated successfully, but these errors were encountered: