Commit 019f56c2 authored by Geoffrey Métais's avatar Geoffrey Métais

Minify app and repackage support libs

This will be needed to avoid crash on samsung devices
parent 75e6b3a6
......@@ -72,6 +72,9 @@ android {
release {
signingConfig signingConfigs.release
tasks.assembleRelease.dependsOn buildRelease
minifyEnabled true
shrinkResources true
proguardFile 'proguard.cfg'
}
debug {
tasks.assembleDebug.dependsOn buildDebug
......
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontobfuscate
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
# Do not optimize/shrink LibVLC, because of native code
-keep class org.videolan.libvlc.** { *; }
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
......@@ -14,6 +18,11 @@
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService
# Samsung shit workaround
-repackageclasses "android.support.v7"
-keep class android.support.v7.widget.** { *; }
-keep interface android.support.v7.widget.** { *; }
-keepclasseswithmembernames class * {
native <methods>;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment