Skip to content

Commit

Permalink
混淆问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
hui.zhao committed Mar 24, 2020
1 parent d1097a6 commit f28c555
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
5 changes: 0 additions & 5 deletions android-godeye-sample/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-dontwarn leakcanary.**
-dontwarn okio.**
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.** { *; }
-keep interface com.squareup.okhttp3.** { *; }
-dontwarn javax.annotation.**
-dontwarn org.codehaus.**
-dontwarn org.conscrypt.**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-dontwarn leakcanary.**
-keep class leakcanary.**
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-dontwarn leakcanary.**
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-dontwarn okio.**
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.** { *; }
-keep interface com.squareup.okhttp3.** { *; }
1 change: 1 addition & 0 deletions android-godeye/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ android {
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
compileOptions {
targetCompatibility = "8"
Expand Down
3 changes: 3 additions & 0 deletions android-godeye/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-dontwarn leakcanary.**
-dontwarn okio.**
-keep class leakcanary.**
2 changes: 1 addition & 1 deletion android-godeye/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-dontwarn leakcanary.**

0 comments on commit f28c555

Please sign in to comment.