[Android] Build: second try to fix NoClassDefFoundError with android support v23

Thomas Guillem git at videolan.org
Mon Oct 12 15:46:20 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 12 14:32:24 2015 +0200| [890510c053324a1a2aecd137c529138cd6451aab] | committer: Jean-Baptiste Kempf

Build: second try to fix NoClassDefFoundError with android support v23

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=890510c053324a1a2aecd137c529138cd6451aab
---

 vlc-android/proguard.cfg |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlc-android/proguard.cfg b/vlc-android/proguard.cfg
index 8d03f6f..8a22fbd 100644
--- a/vlc-android/proguard.cfg
+++ b/vlc-android/proguard.cfg
@@ -1,4 +1,3 @@
--optimizationpasses 5
 -dontusemixedcaseclassnames
 -dontskipnonpubliclibraryclasses
 -dontobfuscate
@@ -22,7 +21,10 @@
 # see https://code.google.com/p/android/issues/detail?id=78377#c160
 -keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod
 -dontoptimize
--keep class !android.support.v7.internal.view.menu.**, ** { *; }
+-keep class android.support.v4.app.** { *; }
+-keep interface android.support.v4.app.** { *; }
+-keep class android.support.v7.app.** { *; }
+-keep interface android.support.v7.app.** { *; }
 
 -keepclasseswithmembernames class * {
     native <methods>;



More information about the Android mailing list