Merge branch 'connyduck-proguard-config'
This commit is contained in:
commit
9b8eec947e
2 changed files with 39 additions and 2 deletions
|
@ -14,8 +14,9 @@ android {
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
shrinkResources true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
36
app/proguard-rules.pro
vendored
36
app/proguard-rules.pro
vendored
|
@ -15,3 +15,39 @@
|
||||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||||
# public *;
|
# public *;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
## for okhttp
|
||||||
|
-dontwarn okio.**
|
||||||
|
|
||||||
|
## for picasso
|
||||||
|
-dontwarn com.squareup.okhttp.**
|
||||||
|
|
||||||
|
## for retrofit
|
||||||
|
-dontwarn retrofit2.**
|
||||||
|
-keep class retrofit2.** { *; }
|
||||||
|
-keepattributes Signature
|
||||||
|
-keepattributes Exceptions
|
||||||
|
-keepattributes *Annotation*
|
||||||
|
|
||||||
|
-keepclasseswithmembers class * {
|
||||||
|
@retrofit2.http.* <methods>;
|
||||||
|
}
|
||||||
|
|
||||||
|
-keep class com.keylesspalace.tusky.entity.** { *; }
|
||||||
|
|
||||||
|
-keep public enum com.keylesspalace.tusky.entity.*$** {
|
||||||
|
**[] $VALUES;
|
||||||
|
public *;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# preserve line numbers for crash reporting
|
||||||
|
-keepattributes SourceFile,LineNumberTable
|
||||||
|
|
||||||
|
# remove all logging from production apk
|
||||||
|
-assumenosideeffects class android.util.Log {
|
||||||
|
public static *** d(...);
|
||||||
|
public static *** w(...);
|
||||||
|
public static *** v(...);
|
||||||
|
public static *** i(...);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue