Skip to content

Commit 036b0cb

Browse files
committed
Merge pull request #414 from Allsimon/master
Fix #343: Add proguard consumer file
2 parents f439b3d + 95aa512 commit 036b0cb

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed

Parse/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ android {
2525
targetSdkVersion rootProject.ext.targetSdkVersion
2626
versionCode 1
2727
versionName project.version
28+
consumerProguardFiles 'release-proguard.pro'
2829
}
2930

3031
lintOptions {

Parse/release-proguard.pro

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /usr/local/opt/android-sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Keep source file names, line numbers, and Parse class/method names for easier debugging
20+
-keepattributes SourceFile,LineNumberTable
21+
-keepnames class com.parse.** { *; }
22+
23+
# Required for Parse
24+
-keepattributes *Annotation*
25+
-keepattributes Signature
26+
-dontwarn android.net.SSLCertificateSocketFactory
27+
-dontwarn android.app.Notification
28+
-dontwarn com.squareup.**
29+
-dontwarn okio.**

ParseStarterProject/proguard-rules.pro

-11
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,3 @@
1616
# public *;
1717
#}
1818

19-
# Keep source file names, line numbers, and Parse class/method names for easier debugging
20-
-keepattributes SourceFile,LineNumberTable
21-
-keepnames class com.parse.** { *; }
22-
23-
# Required for Parse
24-
-keepattributes *Annotation*
25-
-keepattributes Signature
26-
-dontwarn android.net.SSLCertificateSocketFactory
27-
-dontwarn android.app.Notification
28-
-dontwarn com.squareup.**
29-
-dontwarn okio.**

0 commit comments

Comments
 (0)