Android Studio performs code obfuscation in projects that integrate ShardSDK

1. The default obfuscation rule is used here, so as long as the value of minifyEnabled in build.gradle in the app is set to true, this parameter is to allow code obfuscation.
2. To ensure that the classes in the ShardSDK module are not confused, add two lines of code to proguard-rules.pro under the app
(1) -keep class cn.sharesdk.**{*;}
This code is to ensure that the classes under the cn.shardsdk package name are not confused
( 2) dontwarn cn.sharesdk.**
This code is for the compiler not to prompt a warning. Without this sentence, the compiler will prompt an error, resulting in failure to compile successfully.
3. After the signature is released, it is enough. What I want to explain here is that you should not confuse third-party .jar packages and modules in general.

Guess you like

Origin blog.csdn.net/skateboard1/article/details/47164579