Browse Source

Release 0.7.2.0

Aidan Follestad 10 years ago
parent
commit
407ee74033
3 changed files with 37 additions and 2 deletions
  1. 16 2
      sample/build.gradle
  2. 21 0
      sample/proguard-rules.pro
  3. BIN
      sample/sample.apk

+ 16 - 2
sample/build.gradle

@@ -4,6 +4,15 @@ android {
     compileSdkVersion 22
     buildToolsVersion "22.0.1"
 
+    signingConfigs {
+        production {
+            keyAlias 'afollestad'
+            keyPassword 'aidan1995'
+            storeFile file('./keystore.jks')
+            storePassword 'aidan1995'
+        }
+    }
+
     defaultConfig {
         applicationId "com.afollestad.materialdialogssample"
         minSdkVersion 9
@@ -15,9 +24,14 @@ android {
         abortOnError false
     }
     buildTypes {
+        debug {
+            signingConfig signingConfigs.production
+        }
         release {
-            minifyEnabled false
-            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+            signingConfig signingConfigs.production
+            minifyEnabled true
+            shrinkResources true
+            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
         }
     }
 }

+ 21 - 0
sample/proguard-rules.pro

@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/aidanfollestad/Documents/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 class !android.support.v7.internal.view.menu.**,** {*;}
+-dontwarn
+-ignorewarnings

BIN
sample/sample.apk