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.

Smoothie Proguard config breaks Firebase

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
ultimate-deejcommented, May 7, 2019

A clean project test has shown that -adaptclassstrings alone doesn’t break Firebase. I’ll investigate the issue further.

0reactions
stephanenicolascommented, Sep 24, 2019

The wiki has been updated. I close this oooolllddd ticket. Sorry about that @ultimate-deej

Read more comments on GitHub >

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

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