-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Summary
The file proguard.txt exported by the published AAR includes the following line:
-renamesourcefileattribute SourceFile
This is a global ProGuard/R8 option and should not be used in library consumer rules. Such rules are merged into the consuming app's configuration, and global options like this can interfere with the consumer's build or stacktraces.
Impact
- Developers using the SDK see warnings in Android Studio or during Gradle builds:
The consumer keep rules at android-sdk-3.10.0/proguard.txt (from ch.datatrans:android-sdk:3.10.0) contains a global option which should not be specified in library consumer rules: -renamesourcefileattribute
- The attribute affects the naming of SourceFile in all classes of the main app, which should be under the application developer's control.
- In future versions of the Android Gradle Plugin, this may result in build failures.
Recommendation
Please remove -renamesourcefileattribute ... from proguard.txt (consumer rules) and, if necessary, only apply it in internal obfuscation for the library, not as a consumer rule.
Thank you!
Metadata
Metadata
Assignees
Labels
No labels