- add change to android build script to unpack assets to android assets folder (thanks @iwgeric)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9868 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 4bff5fd829
commit 8430864ce6
  1. 2
      sdk/jme3-android/src/com/jme3/gde/android/MobileCompositeProvider.java
  2. 10
      sdk/jme3-android/src/com/jme3/gde/android/mobile-targets.xml

@ -57,7 +57,7 @@ public class MobileCompositeProvider implements ProjectCustomizer.CompositeCateg
private class SavePropsListener implements ActionListener {
private String extensionName = "mobile";
private String extensionVersion = "v0.18";
private String extensionVersion = "v0.19";
private String[] extensionDependencies = new String[]{"jar", "-mobile-deployment"};
private ProjectExtensionManager manager = new ProjectExtensionManager(extensionName, extensionVersion, extensionDependencies);
private ProjectExtensionProperties properties;

@ -29,6 +29,7 @@
<mkdir dir="mobile/libs"/>
<copy todir="mobile/libs" verbose="false" flatten="true">
<fileset dir="dist/lib/">
<exclude name="${assets.jar.name}"/>
<exclude name="jME3-desktop.jar"/>
<exclude name="jME3-blender.jar"/>
<exclude name="jME3-lwjgl.jar"/>
@ -51,6 +52,7 @@
</path>
</copy>
<antcall target="-unzip-bullet-libs"/>
<antcall target="-unzip-assets"/>
<copy file="${dist.jar}" todir="mobile/libs/" verbose="false"/>
</target>
@ -66,6 +68,14 @@
<delete file="mobile/libs/jME3-bullet-natives-android.jar"/>
</target>
<target name="-unzip-assets">
<echo>Unzipping Assets to Android Directories</echo>
<delete dir="mobile/assets" failonerror="false"/>
<mkdir dir="mobile/assets"/>
<unzip src="dist/lib/${assets.jar.name}" dest="mobile/assets"/>
<delete file="mobile/libs/${assets.jar.name}" failonerror="true"/>
</target>
<target name="-test-bullet-included">
<condition property="bulletIsIncluded">
<contains string="${javac.classpath}" substring="bullet.jar"/>

Loading…
Cancel
Save