Smoothie Proguard config breaks Firebase
See original GitHub issueI use Firebase Dynamic Links in my project. Turning ProGuard on caused FirebaseDynamicLinks.getInstance()
to return null
. After some digging it turned out that smoothie module was the cause.
At first removing this line seemed to help:
-adaptclassstrings
But I didn’t want to remove smoothie from my project so I kept trying. After a while I came up with a rule that worked for me:
-keep class * { @javax.inject.Qualifier <init>(...); }
Btw, not being a ProGuard expert I would expect this to work instead:
-keep @javax.inject.Qualifier class *
But it doesn’t 🤷♂️.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Proguard configuration for Firebase-UI library - Stack Overflow
Solved this by moving the ViewHolder classes that are used by the FirebaseRecyclerAdapter to a dedicated package (e.g. com.mypackage.myapp.viewholders) and ...
Read more >ProGuard Manual: Usage - Guardsquare
ProGuard documentation about usage, configuration and options. ... This reduces the jar size, but it may break your program if the code tries...
Read more >ProGuard Manual: Examples - Guardsquare
The standard build processes of the Android SDK (with Ant, Gradle, Android Studio, and Eclipse) already integrate ProGuard with all the proper settings....
Read more >Android's Built-in ProGuard Rules: The Missing Guide
Let's break this down. -allowaccessmodification is the option to allow ProGuard to change access modification, which can help it in other ...
Read more >Practical ProGuard rules examples | by Wojtek Kaliciński
In my previous article I explained why you should use ProGuard. In this part, I'd like to talk about the practical examples of...
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
A clean project test has shown that
-adaptclassstrings
alone doesn’t break Firebase. I’ll investigate the issue further.The wiki has been updated. I close this oooolllddd ticket. Sorry about that @ultimate-deej