Last active
February 22, 2017 16:02
-
-
Save marceloinacio/0d790a9c31135e2a4f060ca7837d3ece to your computer and use it in GitHub Desktop.
ProGuard file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
signingConfigs { | |
config { | |
keyAlias 'PubNub' | |
keyPassword '123456' | |
storeFile file('C:/temp/pubnubKeyStore.jks') | |
storePassword '123456' | |
} | |
} | |
compileSdkVersion 25 | |
buildToolsVersion "25.0.1" | |
packagingOptions { | |
pickFirst 'META-INF/ASL2.0' | |
pickFirst 'META-INF/LICENSE' | |
pickFirst 'META-INF/NOTICE' | |
} | |
defaultConfig { | |
applicationId "com.example.pubnubandroid" | |
minSdkVersion 15 | |
targetSdkVersion 23 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
signingConfig signingConfigs.config | |
} | |
debug { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
productFlavors { | |
} | |
} | |
dependencies { | |
compile fileTree(include: ['*.jar'], dir: 'libs') | |
testCompile 'junit:junit:4.12' | |
compile 'com.android.support:appcompat-v7:25.0.1' | |
compile group: 'com.pubnub', name: 'pubnub-gson', version: '4.5.0' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-keepattributes Exceptions, InnerClasses, Signature, Deprecated, SourceFile, LineNumberTable, *Annotation*, EnclosingMethod | |
-keep class com.google.android.gms.ads.identifier.** { *; } | |
# joda time | |
-keep class org.joda.time.** { *; } | |
-dontwarn org.joda.time.** | |
# jackson | |
-keepnames class com.fasterxml.jackson.** { *; } | |
-dontwarn com.fasterxml.jackson.databind.** | |
-keep class org.codehaus.** | |
-keepclassmembers public final enum | |
org.codehaus.jackson.annotate.JsonAutoDetect$Visibility { public | |
static final org.codehaus.jackson.annotate.JsonAutoDetect$Visibility | |
*; } | |
# gson | |
-keep class sun.misc.Unsafe { *; } | |
-keep class com.google.gson.examples.android.model.** { *; } | |
-dontwarn okhttp3.** | |
-dontwarn okio.** | |
# Retrofit 2.X | |
## https://square.github.io/retrofit/ ## | |
-dontwarn retrofit2.** | |
-keep class retrofit2.** { *; } | |
-keepclasseswithmembers class * { | |
@retrofit2.http.* <methods>; | |
} | |
# Twilio Video SDK | |
-keep class org.webrtc.** { *; } | |
-keep class com.twilio.video.** { *; } | |
# Pubnub | |
#-dontwarn com.pubnub.** | |
#-keep class com.pubnub.** { *; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment