You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R8 and ProGuard rules are bundled into SSO. The bundled rules do not cover enabled obfuscation. Therefore it is recommended to add -dontobfuscate to your app-specific proguard rules.
Setting -dontobfuscate on a whole app is a bad idea, as it will unnecessarily increase the app size.
There are exactly two possibilities:
This library works in a consuming app that has R8 fullmode and obfuscation turned on. In this case, the text above is wrong and should be changed.
The library does not work in a consuming app that has R8 fullmode and obfuscation turned on. In this case, the R8 rules provided by the library should be improved until it does. Offloading this work to consuming developers is lazy and bad practice.
As fas as I can tell we are dealing with 1) here.
So I suggest altering the Readme to say the following:
With R8 full mode being enabled by default since AGP 8.0, you will probably need to handle following app-specific rules yourself (or disable full mode):
...
(Although I don't understand why you would want to repeat Gson/Retrofit rules, if devs have a problem with them they can go to the respective docs themselves)
The text was updated successfully, but these errors were encountered:
Setting
-dontobfuscate
on a whole app is a bad idea, as it will unnecessarily increase the app size.There are exactly two possibilities:
This library works in a consuming app that has R8 fullmode and obfuscation turned on. In this case, the text above is wrong and should be changed.
The library does not work in a consuming app that has R8 fullmode and obfuscation turned on. In this case, the R8 rules provided by the library should be improved until it does. Offloading this work to consuming developers is lazy and bad practice.
As fas as I can tell we are dealing with 1) here.
So I suggest altering the Readme to say the following:
The rules needed to make SSO work with R8 and ProGuard are bundled into the library.
With R8 full mode being enabled by default since AGP 8.0, you will probably need to handle following app-specific rules yourself (or disable full mode):
...
(Although I don't understand why you would want to repeat Gson/Retrofit rules, if devs have a problem with them they can go to the respective docs themselves)
The text was updated successfully, but these errors were encountered: