[Feat] - consumer proguard rules
See original GitHub issueSince 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:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top 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 >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
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 =)
Perfect! Feel free to drop the PR @Alireza-Farahani