[Android] Proguard rules for Flipper
See original GitHub issueI am migrating from Stetho to Flipper. For Stetho in proguard I had something like this:
-keep class com.facebook.stetho.** { *; }
-dontwarn com.facebook.stetho.**
Use case: What I am trying to do is to be able of keep debugging with my nearest build for release.
Any suggestions for Flipper proguard rules? I am searching and did not found it. Currently having problems when the app builds with proguard.
I managed to put it work on my proguard-debug.txt with this rules
-keep class com.facebook.** { *; }
-dontwarn com.**
-dontwarn org.**
-dontwarn java.**
The -dontwarn let me force the build, and it seems to work fine. Can you guide me for a better solution?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Android ProGuard settings for Facebook - java - Stack Overflow
Show activity on this post. I finally found out why my app crashes built for release. ProGuard was indeed stripping code from my...
Read more >Adding Flipper to Android apps with Gradle
To set up Flipper for Android, you need to add the necessary dependencies to your app, initialize the Flipper client and enable the...
Read more >Shrink, obfuscate, and optimize your app - Android Developers
R8 uses ProGuard rules files to modify its default behavior and better understand your app's structure, such as the classes that serve as...
Read more >set proguard rules in expo project : r/reactnative - Reddit
if i have a set of rules to append, how can i add with ... "extraProguardRules": "-keep class com.google.android.gms.internal.consent_sdk.
Read more >EncryptedSharedPreferences initialization fails on R8 builds ...
callActivityOnCreate(Instrumentation.java:1306) at android.app. ... The proguard rule is the only fix so far (for me): -keep class com.google.crypto.tink.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot for sharing your scenarios, this helps a lot! I’ll try to enable
minifyEnabled
on the debug sample app and see what it is still required to make this work. I definitely see the need for some more accessible documentation for this now.yeah, this is still an issue with latest version. if I have minifyEnabled and run the app, it crashes