Merge branch 'connyduck-prod-build-fixes'
This commit is contained in:
commit
4150bad765
|
@ -26,6 +26,11 @@ android {
|
||||||
lintOptions {
|
lintOptions {
|
||||||
disable 'MissingTranslation'
|
disable 'MissingTranslation'
|
||||||
}
|
}
|
||||||
|
packagingOptions { //remove metadata files of jsoup library from final build
|
||||||
|
exclude 'META-INF/CHANGES'
|
||||||
|
exclude 'META-INF/LICENSE'
|
||||||
|
exclude 'META-INF/README.md'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.supportLibraryVersion = '26.0.0'
|
ext.supportLibraryVersion = '26.0.0'
|
||||||
|
|
|
@ -18,10 +18,16 @@
|
||||||
|
|
||||||
## for okhttp
|
## for okhttp
|
||||||
-dontwarn okio.**
|
-dontwarn okio.**
|
||||||
|
-dontwarn javax.annotation.Nullable
|
||||||
|
-dontwarn javax.annotation.ParametersAreNonnullByDefault
|
||||||
|
|
||||||
## for picasso
|
## for picasso
|
||||||
-dontwarn com.squareup.okhttp.**
|
-dontwarn com.squareup.okhttp.**
|
||||||
|
|
||||||
|
##for keep
|
||||||
|
-dontwarn android.arch.util.paging.CountedDataSource
|
||||||
|
-dontwarn android.arch.persistence.room.paging.LimitOffsetDataSource
|
||||||
|
|
||||||
## for retrofit
|
## for retrofit
|
||||||
-dontwarn retrofit2.**
|
-dontwarn retrofit2.**
|
||||||
-keep class retrofit2.** { *; }
|
-keep class retrofit2.** { *; }
|
||||||
|
@ -45,13 +51,13 @@
|
||||||
-keepattributes SourceFile,LineNumberTable
|
-keepattributes SourceFile,LineNumberTable
|
||||||
|
|
||||||
# remove all logging from production apk
|
# remove all logging from production apk
|
||||||
#-assumenosideeffects class android.util.Log {
|
-assumenosideeffects class android.util.Log {
|
||||||
# public static *** getStackTraceString(...);
|
public static *** getStackTraceString(...);
|
||||||
# public static *** d(...);
|
public static *** d(...);
|
||||||
# public static *** w(...);
|
public static *** w(...);
|
||||||
# public static *** v(...);
|
public static *** v(...);
|
||||||
# public static *** i(...);
|
public static *** i(...);
|
||||||
#}
|
}
|
||||||
|
|
||||||
# for jsoup
|
# for jsoup
|
||||||
-keep public class org.jsoup.** {
|
-keep public class org.jsoup.** {
|
||||||
|
|
Loading…
Reference in New Issue