question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Proguard rules for Flipper

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
passycommented, Oct 8, 2019

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.

5reactions
carlonzocommented, Jul 28, 2020

yeah, this is still an issue with latest version. if I have minifyEnabled and run the app, it crashes

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found