Skip to content
Snippets Groups Projects
Commit 68ab4491 authored by John Carlson's avatar John Carlson
Browse files

Better Proguard rules

parent 58d5b744
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -70,8 +70,10 @@ dependencies {
testCompile 'junit:junit:4.12'
//Don't update this unless you can confirm the tests still pass!
testCompile 'org.robolectric:robolectric:3.0'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
 
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
Loading
Loading
Loading
Loading
@@ -26,30 +26,23 @@
 
# Picasso rules
-dontwarn com.squareup.okhttp.**
-dontwarn okhttp3.**
 
# Retrofit rules
-keep class okhttp3.** { *; }
-keep class retrofit2.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn com.squareup.okhttp.**
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn retrofit2.**
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}
# If in your rest service interface you use methods with Callback argument.
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
# Platform used when running on RoboVM on iOS. Will not be used at runtime.
-dontnote retrofit2.Platform$IOS$MainThreadExecutor
# Platform used when running on Java 8 VMs. Will not be used at runtime.
-dontwarn retrofit2.Platform$Java8
# Retain generic type information for use by reflection by converters and adapters.
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
 
# If your rest service methods throw custom exceptions, because you've defined an ErrorHandler.
-keepattributes Signature
# Okio
-dontwarn okio.**
 
# Simple-Xml Proguard Config
# Keep public classes and methods.
-dontwarn com.bea.xml.stream.**
-keep class org.simpleframework.xml.**{ *; }
Loading
Loading
@@ -60,13 +53,6 @@
-dontwarn javax.xml.stream.events.**
-dontwarn javax.xml.**
 
# OkHttp
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**
# EventBus
-keepattributes *Annotation*
-keepclassmembers class ** {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment