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.

[Feat] - consumer proguard rules

See original GitHub issue

Since this a android library and you publish an aar artifact, you can include proguard rules in the final artifact and remove the burden from end user. See here

android {
    defaultConfig {
        consumerProguardFiles("lib-proguard-rules.txt")
    }
    ...
}

By the way, is it necessary to keep all of -keep class androidx.appcompat.widget.** { *; } classes or could it be more narrowed?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Canatocommented, Nov 4, 2021

No issue, take your time to make it good, just keep this thread update!

If you need any help let me know and I will review the code with you before merge =)

0reactions
Canatocommented, Nov 9, 2021

Perfect! Feel free to drop the PR @Alireza-Farahani

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the difference between consumer-rules.pro and ...
proguard -rules.pro of the library is the place where you declare rules for 3rd party dependencies of your library (which is considered a ......
Read more >
Android : What is the difference between consumer-rules.pro ...
Android : What is the difference between consumer -rules.pro and proguard - rules.pro in Android?
Read more >
android-client-sdk/consumer-proguard-rules.pro at main
# - Any class that is referenced in Gson serialization-related annotations. -keep class com.launchdarkly.sdk.AttributeRef { <fields>; }. - ...
Read more >
Proguard/R8 in the world of modularity | by Saurabh Arora
A consumer proguard rules file is like any other proguard rules files with the caveat that the rules inside it are automatically applied...
Read more >
Files · develop · eyeo / crumbs / crumbs-core
During development, when it is required to share a feature between repositories depending on each other, consider using feat/shared/branch_name ...
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