Преглед на файлове

Proguard Exception for NativeVorbisFile (https://hub.jmonkeyengine.org/t/solved-jni-exception-when-trying-to-use-ogg-files-on-android/39362/12)

MeFisto94 преди 7 години
родител
ревизия
f00da22500
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      JME3TestsTemplateAndroid/mobile/proguard-project.txt
  2. 1 0
      jme3-ios/ios-data/templates/ios.properties

+ 1 - 0
JME3TestsTemplateAndroid/mobile/proguard-project.txt

@@ -18,3 +18,4 @@
 #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
 #   public *;
 #}
+-keepclassmembers class com.jme3.audio.plugins.NativeVorbisFile{public *;}

+ 1 - 0
jme3-ios/ios-data/templates/ios.properties

@@ -44,6 +44,7 @@ ios.proguard.options=-keep public class com.jme3.system.ios.*{public *;} \
 -keep public class * implements com.jme3.asset.AssetLoader{public *;} \
 -keep public class * implements com.jme3.asset.AssetLocator{public *;} \
 -keep public class * implements de.lessvoid.nifty.screen.ScreenController{public *;} \
+-keepclassmembers class com.jme3.audio.plugins.NativeVorbisFile{public *;} \
 -keep public class * implements javax.xml.parsers.SAXParserFactory{public *;} \
 -keep public class com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \
 -keep public class com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl \