diff --git a/Parse/build.gradle b/Parse/build.gradle index 68e8191cb..7a3353b37 100644 --- a/Parse/build.gradle +++ b/Parse/build.gradle @@ -25,6 +25,7 @@ android { targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName project.version + consumerProguardFiles 'release-proguard.pro' } lintOptions { diff --git a/Parse/release-proguard.pro b/Parse/release-proguard.pro new file mode 100644 index 000000000..fcd0a5df4 --- /dev/null +++ b/Parse/release-proguard.pro @@ -0,0 +1,29 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /usr/local/opt/android-sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Keep source file names, line numbers, and Parse class/method names for easier debugging +-keepattributes SourceFile,LineNumberTable +-keepnames class com.parse.** { *; } + +# Required for Parse +-keepattributes *Annotation* +-keepattributes Signature +-dontwarn android.net.SSLCertificateSocketFactory +-dontwarn android.app.Notification +-dontwarn com.squareup.** +-dontwarn okio.** diff --git a/ParseStarterProject/proguard-rules.pro b/ParseStarterProject/proguard-rules.pro index fcd0a5df4..b748a4c2f 100644 --- a/ParseStarterProject/proguard-rules.pro +++ b/ParseStarterProject/proguard-rules.pro @@ -16,14 +16,3 @@ # public *; #} -# Keep source file names, line numbers, and Parse class/method names for easier debugging --keepattributes SourceFile,LineNumberTable --keepnames class com.parse.** { *; } - -# Required for Parse --keepattributes *Annotation* --keepattributes Signature --dontwarn android.net.SSLCertificateSocketFactory --dontwarn android.app.Notification --dontwarn com.squareup.** --dontwarn okio.**