new proguard.rules.pro file, specific ProGuard rules for project
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 30 Aug 2016 16:09:46 +0000 (18:09 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 30 Aug 2016 16:09:46 +0000 (18:09 +0200)
proguard-android.txt can be found in this path: android-sdk-linux/tools/proguard/proguard-android.txt
proguard-android.txt contains general rules which apply to every project

app/build.gradle
app/proguard-rules.pro [new file with mode: 0644]

index 4ccb636..dfd6749 100644 (file)
@@ -25,7 +25,7 @@ android {
     buildTypes {
         release {
             minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
             buildConfigField "boolean", "DEBUG_MODE", "false"
             debuggable false
             signingConfig signingConfigs.releaseSigning
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644 (file)
index 0000000..126bebd
--- /dev/null
@@ -0,0 +1,15 @@
+# Add project specific ProGuard rules here.
+# 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 *;
+#}
\ No newline at end of file