浏览代码

- add iOS distribution plugin (pre-alpha)

Former-commit-id: 7a17e69a84e8d7b977ac319dd2c2e11387d56f6d
normen667 13 年之前
当前提交
acdb39229d
共有 41 个文件被更改,包括 3032 次插入0 次删除
  1. 88 0
      build.xml
  2. 77 0
      ios-data/ios.properties
  3. 372 0
      ios-data/templates/project/jme-ios.xcodeproj/project.pbxproj
  4. 7 0
      ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  5. 二进制
      ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/UserInterfaceState.xcuserstate
  6. 10 0
      ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/WorkspaceSettings.xcsettings
  7. 86 0
      ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/hello.xcscheme
  8. 22 0
      ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/xcschememanagement.plist
  9. 2 0
      ios-data/templates/project/jme-ios/en.lproj/InfoPlist.strings
  10. 252 0
      ios-data/templates/project/jme-ios/iPad/en.lproj/MainWindow_iPad.xib
  11. 5 0
      ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.h
  12. 5 0
      ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.m
  13. 258 0
      ios-data/templates/project/jme-ios/iPhone/en.lproj/MainWindow_iPhone.xib
  14. 5 0
      ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.h
  15. 5 0
      ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.m
  16. 47 0
      ios-data/templates/project/jme-ios/jme-ios-Info.plist
  17. 14 0
      ios-data/templates/project/jme-ios/jme-ios-Prefix.pch
  18. 18 0
      ios-data/templates/project/jme-ios/jmeAppDelegate.h
  19. 195 0
      ios-data/templates/project/jme-ios/jmeAppDelegate.m
  20. 9 0
      ios-data/templates/project/jme-ios/main.m
  21. 46 0
      ios-data/templates/src/JmeAppHarness.java
  22. 23 0
      ios-data/templates/src/JmeAppHarness.m
  23. 41 0
      ios-data/templates/src/boot.c
  24. 402 0
      licenses.txt
  25. 6 0
      manifest.mf
  26. 45 0
      nbproject/build-impl.xml
  27. 8 0
      nbproject/genfiles.properties
  28. 10 0
      nbproject/project.properties
  29. 88 0
      nbproject/project.xml
  30. 1 0
      nbproject/suite.properties
  31. 6 0
      src/com/jme3/gde/ios/Bundle.properties
  32. 58 0
      src/com/jme3/gde/ios/IosImportantFiles.java
  33. 86 0
      src/com/jme3/gde/ios/IosTool.java
  34. 1 0
      src/com/jme3/gde/ios/avian-openjdk-mac.zip.REMOVED.git-id
  35. 二进制
      src/com/jme3/gde/ios/ios-data.zip
  36. 206 0
      src/com/jme3/gde/ios/ios-targets.xml
  37. 4 0
      src/com/jme3/gde/ios/layer.xml
  38. 9 0
      src/com/jme3/gde/ios/panel/Bundle.properties
  39. 179 0
      src/com/jme3/gde/ios/panel/IosCompositeProvider.java
  40. 143 0
      src/com/jme3/gde/ios/panel/IosCustomizerPanel.form
  41. 193 0
      src/com/jme3/gde/ios/panel/IosCustomizerPanel.java

+ 88 - 0
build.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
+<!-- for some information on what you could do (e.g. targets to override). -->
+<!-- If you delete this file and reopen the project it will be recreated. -->
+<project name="com.jme3.gde.ios" default="netbeans" basedir=".">
+    <description>Builds, tests, and runs the project com.jme3.gde.ios.</description>
+    <import file="nbproject/build-impl.xml"/>
+
+    <target name="init" depends="-zip-data,basic-init,files-init,build-init,-javac-init"/>
+    <target name="-zip-data" description="Zips mac stubs">
+        <delete file="src/com/jme3/gde/ios/ios-data.zip"/>
+        <zip destfile="src/com/jme3/gde/ios/ios-data.zip" update="false">
+            <zipfileset dir="ios-data" prefix=""/>
+        </zip>
+    </target>
+    
+    <target name="package-avian" depends="init" description="Builds and packages the avian library">
+        <delete file="src/com/jme3/gde/ios/avian-openjdk-mac.zip" failonerror="false"/>
+        <exec executable="make" dir="${avian.src.path}">
+            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
+            <arg line="clean"/>
+        </exec>
+        <exec executable="make" dir="${avian.src.path}" failonerror="true">
+            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
+            <arg line="arch=arm"/>
+            <arg line="platform=darwin"/>
+            <arg line="process=compile"/>
+            <arg line="openjdk=${avian.jdk.path}"/>
+            <arg line="openjdk-src=${avian.jdk.src.path}"/>
+            <arg line="bootimage=true"/>
+            <arg line="ios=true"/>
+            <arg line="vm-targets="/>
+            <arg line="build/darwin-arm-bootimage-openjdk-src/bootimage-generator"/>
+            <arg line="build/darwin-arm-bootimage-openjdk-src/binaryToObject/binaryToObject"/>
+            <arg line="build/darwin-arm-bootimage-openjdk-src/classpath.jar"/>
+            <arg line="build/darwin-arm-bootimage-openjdk-src/libavian.a"/>
+        </exec>
+        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip">
+            <zipfileset file="${avian.src.path}/build/darwin-arm-bootimage-openjdk-src/bootimage-generator" filemode="755" fullpath="avian-arm/bootimage-generator"/>
+            <zipfileset file="${avian.src.path}/build/darwin-arm-bootimage-openjdk-src/binaryToObject/binaryToObject" filemode="755" fullpath="avian-arm/binaryToObject"/>
+            <zipfileset file="${avian.src.path}/build/darwin-arm-bootimage-openjdk-src/libavian.a" fullpath="avian-arm/libavian.a"/>
+        </zip>
+        <exec executable="make" dir="${avian.src.path}">
+            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
+            <arg line="clean"/>
+        </exec>
+        <exec executable="make" dir="${avian.src.path}" failonerror="true">
+            <env key="JAVA_HOME" value="${avian.jdk.path}"/>
+            <arg line="arch=i386"/>
+            <arg line="platform=darwin"/>
+            <arg line="process=compile"/>
+            <arg line="openjdk=${avian.jdk.path}"/>
+            <arg line="openjdk-src=${avian.jdk.src.path}"/>
+            <arg line="bootimage=true"/>
+            <arg line="ios=true"/>
+            <arg line="vm-targets="/>
+            <arg line="build/darwin-i386-bootimage-openjdk-src/bootimage-generator"/>
+            <arg line="build/darwin-i386-bootimage-openjdk-src/binaryToObject/binaryToObject"/>
+            <arg line="build/darwin-i386-bootimage-openjdk-src/classpath.jar"/>
+            <arg line="build/darwin-i386-bootimage-openjdk-src/libavian.a"/>
+        </exec>
+        <zip destfile="src/com/jme3/gde/ios/avian-openjdk-mac.zip" update="true">
+            <zipfileset file="${avian.src.path}/build/darwin-i386-bootimage-openjdk-src/bootimage-generator" filemode="755" fullpath="avian-i386/bootimage-generator"/>
+            <zipfileset file="${avian.src.path}/build/darwin-i386-bootimage-openjdk-src/binaryToObject/binaryToObject" filemode="755" fullpath="avian-i386/binaryToObject"/>
+            <zipfileset file="${avian.src.path}/build/darwin-i386-bootimage-openjdk-src/libavian.a" fullpath="avian-i386/libavian.a"/>
+            <zipfileset file="${avian.src.path}/vm.pro" fullpath="vm.pro"/>
+            <zipfileset file="${avian.src.path}/vm.pro" fullpath="openjdk.pro"/>
+            <zipfileset dir="${avian.src.path}/build/darwin-i386-bootimage-openjdk-src/classpath" prefix="classpath/">
+                <exclude name="**/java/awt/**"/>
+                <exclude name="**/apple/**"/>
+                <exclude name="**/javax/swing/**"/>
+                <exclude name="**/javax/sound/**"/>
+                <exclude name="**/javax/smartcardio/**"/>
+                <exclude name="**/sun/applet/**"/>
+                <exclude name="**/sun/audio/**"/>
+                <exclude name="**/sun/awt/**"/>
+                <exclude name="**/sun/corba/**"/>
+                <exclude name="**/sun/font/**"/>
+                <exclude name="**/sun/java2d/**"/>
+                <exclude name="**/sun/lwawt/**"/>
+                <exclude name="**/sun/print/**"/>
+                <exclude name="**/sun/swing/**"/>
+                <exclude name="**/com/sun/**"/>
+                <exclude name="**/com/oracle/**"/>
+            </zipfileset>
+        </zip>
+    </target>
+</project>

+ 77 - 0
ios-data/ios.properties

@@ -0,0 +1,77 @@
+# Properties file for iOS cross-compilation with Avian / OpenJDK
+
+# private properties
+#ios.avian.path=/Users/normenhansen/Documents/Code/jme3/sdk/jme3-ios/avian-openjdk
+#ios.dev.root=/Applications/Xcode.app/Contents/Developer
+
+# global project properties
+#ios.version=5.0
+
+# these normally don't change
+ios.platform=darwin
+ios.arm.flag=armv7
+ios.i386.flag=i386
+
+# java build paths
+ios.build.classpath.dir=build/ios-classpath
+ios.build.classes.dir=${ios.build.classpath.dir}/classes
+ios.build.resources.jar=${ios.build.classpath.dir}/resources.jar
+ios.classpath.checkfile=${ios.build.classpath.dir}/.classpath.last
+ios.jar.excludes=jME3-desktop.jar, \
+jME3-blender.jar, \
+jME3-lwjgl.jar, \
+jME3-lwjgl-natives.jar, \
+jME3-bullet-natives.jar, \
+jME3-jbullet.jar, \
+jbullet.jar, \
+stack-alloc.jar, \
+vecmath.jar, \
+jinput.jar, \
+lwjgl.jar
+ios.classpath.excludes=**/de/lessvoid/nifty/ClipboardAWT.class
+
+# native build paths
+ios.build.arch.dir=build/ios-${ios.arch}
+ios.build.libs.dir=${ios.build.arch.dir}/libs
+ios.build.libs.file=${ios.build.arch.dir}/libs.list
+ios.build.resources.o=${ios.build.libs.dir}/resources-jar.o
+ios.build.bootimage.o=${ios.build.libs.dir}/bootimage-bin.o
+ios.build.codeimage.o=${ios.build.libs.dir}/codeimage-bin.o
+ios.images.checkfile=${ios.build.arch.dir}/.binaries.last
+
+# proguard properties
+ios.proguard.vm.path=${ios.avian.path}/vm.pro
+ios.proguard.openjdk.path=${ios.avian.path}/openjdk.pro
+ios.proguard.options=-keep public class com.jme3.system.ios.*{public *;} \
+-keep public class * extends com.jme3.app.Application{public *;} \
+-keep public class * extends com.jme3.system.JmeSystemDelegate{public *;} \
+-keep public class * implements com.jme3.renderer.Renderer{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 *;}
+
+# native compile
+ios.cc.source.dir=ios/src
+ios.cc.cache=${ios.build.arch.dir}/.nativebuild.cache
+
+ios.cc.cflags=-D__IPHONE_OS_VERSION_MIN_REQUIRED=30202 \
+-fobjc-abi-version=2 -fobjc-legacy-dispatch \
+-I/System/Library/Frameworks/JavaVM.framework/Headers
+
+# arm/i386 section, resolved in build file to ios.avian.bootimage-generator etc.
+ios.avian.path.arm=${ios.avian.path}/avian-arm
+ios.avian.path.i386=${ios.avian.path}/avian-i386
+ios.avian.arm.classpath=${ios.avian.path}/classpath
+ios.avian.i386.classpath=${ios.avian.path}/classpath
+
+ios.avian.arm.bootimage-generator=${ios.avian.path.arm}/bootimage-generator
+ios.avian.arm.generator=${ios.avian.path.arm}/generator
+ios.avian.arm.converter=${ios.avian.path.arm}/binaryToObject
+ios.avian.arm.binary=${ios.avian.path.arm}/libavian.a
+ios.avian.i386.bootimage-generator=${ios.avian.path.i386}/bootimage-generator
+ios.avian.i386.generator=${ios.avian.path.i386}/generator
+ios.avian.i386.converter=${ios.avian.path.i386}/binaryToObject
+ios.avian.i386.binary=${ios.avian.path.i386}/libavian.a
+
+# XCode project
+ios.xcode.project.dir=ios/project

+ 372 - 0
ios-data/templates/project/jme-ios.xcodeproj/project.pbxproj

@@ -0,0 +1,372 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 46;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		08914C09142A826B00991C80 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08914C08142A826B00991C80 /* UIKit.framework */; };
+		08914C0B142A826B00991C80 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08914C0A142A826B00991C80 /* Foundation.framework */; };
+		08914C0D142A826B00991C80 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08914C0C142A826B00991C80 /* CoreGraphics.framework */; };
+		08914C13142A826B00991C80 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 08914C11142A826B00991C80 /* InfoPlist.strings */; };
+		08914C15142A826B00991C80 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C14142A826B00991C80 /* main.m */; };
+		08914C19142A826B00991C80 /* jmeAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C18142A826B00991C80 /* jmeAppDelegate.m */; };
+		08914C1D142A826B00991C80 /* jmeAppDelegate_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C1C142A826B00991C80 /* jmeAppDelegate_iPhone.m */; };
+		08914C20142A826B00991C80 /* MainWindow_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 08914C1E142A826B00991C80 /* MainWindow_iPhone.xib */; };
+		08914C24142A826B00991C80 /* jmeAppDelegate_iPad.m in Sources */ = {isa = PBXBuildFile; fileRef = 08914C23142A826B00991C80 /* jmeAppDelegate_iPad.m */; };
+		08914C27142A826B00991C80 /* MainWindow_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 08914C25142A826B00991C80 /* MainWindow_iPad.xib */; };
+		CC69FB0F16374681009585B5 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC69FB0E16374681009585B5 /* OpenGLES.framework */; };
+		CCFD653F163755D80020EFDD /* GLKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CCFD653E163755D80020EFDD /* GLKit.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+		08914C04142A826B00991C80 /* jme-ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "jme-ios.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+		08914C08142A826B00991C80 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+		08914C0A142A826B00991C80 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+		08914C0C142A826B00991C80 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+		08914C10142A826B00991C80 /* jme-ios-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "jme-ios-Info.plist"; sourceTree = "<group>"; };
+		08914C12142A826B00991C80 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+		08914C14142A826B00991C80 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		08914C16142A826B00991C80 /* jme-ios-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "jme-ios-Prefix.pch"; sourceTree = "<group>"; };
+		08914C17142A826B00991C80 /* jmeAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = jmeAppDelegate.h; sourceTree = "<group>"; };
+		08914C18142A826B00991C80 /* jmeAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = jmeAppDelegate.m; sourceTree = "<group>"; };
+		08914C1B142A826B00991C80 /* jmeAppDelegate_iPhone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = jmeAppDelegate_iPhone.h; path = iPhone/jmeAppDelegate_iPhone.h; sourceTree = "<group>"; };
+		08914C1C142A826B00991C80 /* jmeAppDelegate_iPhone.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = jmeAppDelegate_iPhone.m; path = iPhone/jmeAppDelegate_iPhone.m; sourceTree = "<group>"; };
+		08914C1F142A826B00991C80 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPhone/en.lproj/MainWindow_iPhone.xib; sourceTree = "<group>"; };
+		08914C22142A826B00991C80 /* jmeAppDelegate_iPad.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = jmeAppDelegate_iPad.h; path = iPad/jmeAppDelegate_iPad.h; sourceTree = "<group>"; };
+		08914C23142A826B00991C80 /* jmeAppDelegate_iPad.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = jmeAppDelegate_iPad.m; path = iPad/jmeAppDelegate_iPad.m; sourceTree = "<group>"; };
+		08914C26142A826B00991C80 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = iPad/en.lproj/MainWindow_iPad.xib; sourceTree = "<group>"; };
+		CC69FB0E16374681009585B5 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
+		CCFD653E163755D80020EFDD /* GLKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GLKit.framework; path = System/Library/Frameworks/GLKit.framework; sourceTree = SDKROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		08914C01142A826B00991C80 /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				08914C09142A826B00991C80 /* UIKit.framework in Frameworks */,
+				08914C0B142A826B00991C80 /* Foundation.framework in Frameworks */,
+				08914C0D142A826B00991C80 /* CoreGraphics.framework in Frameworks */,
+				CC69FB0F16374681009585B5 /* OpenGLES.framework in Frameworks */,
+				CCFD653F163755D80020EFDD /* GLKit.framework in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		08914BF9142A826B00991C80 = {
+			isa = PBXGroup;
+			children = (
+				08914C0E142A826B00991C80 /* jme-ios */,
+				08914C07142A826B00991C80 /* Frameworks */,
+				08914C05142A826B00991C80 /* Products */,
+			);
+			sourceTree = "<group>";
+		};
+		08914C05142A826B00991C80 /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				08914C04142A826B00991C80 /* jme-ios.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		08914C07142A826B00991C80 /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				CCFD653E163755D80020EFDD /* GLKit.framework */,
+				CC69FB0E16374681009585B5 /* OpenGLES.framework */,
+				08914C08142A826B00991C80 /* UIKit.framework */,
+				08914C0A142A826B00991C80 /* Foundation.framework */,
+				08914C0C142A826B00991C80 /* CoreGraphics.framework */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
+		08914C0E142A826B00991C80 /* jme-ios */ = {
+			isa = PBXGroup;
+			children = (
+				08914C17142A826B00991C80 /* jmeAppDelegate.h */,
+				08914C18142A826B00991C80 /* jmeAppDelegate.m */,
+				08914C1A142A826B00991C80 /* iPhone */,
+				08914C21142A826B00991C80 /* iPad */,
+				08914C0F142A826B00991C80 /* Supporting Files */,
+			);
+			path = "jme-ios";
+			sourceTree = "<group>";
+		};
+		08914C0F142A826B00991C80 /* Supporting Files */ = {
+			isa = PBXGroup;
+			children = (
+				08914C10142A826B00991C80 /* jme-ios-Info.plist */,
+				08914C11142A826B00991C80 /* InfoPlist.strings */,
+				08914C14142A826B00991C80 /* main.m */,
+				08914C16142A826B00991C80 /* jme-ios-Prefix.pch */,
+			);
+			name = "Supporting Files";
+			sourceTree = "<group>";
+		};
+		08914C1A142A826B00991C80 /* iPhone */ = {
+			isa = PBXGroup;
+			children = (
+				08914C1B142A826B00991C80 /* jmeAppDelegate_iPhone.h */,
+				08914C1C142A826B00991C80 /* jmeAppDelegate_iPhone.m */,
+				08914C1E142A826B00991C80 /* MainWindow_iPhone.xib */,
+			);
+			name = iPhone;
+			sourceTree = "<group>";
+		};
+		08914C21142A826B00991C80 /* iPad */ = {
+			isa = PBXGroup;
+			children = (
+				08914C22142A826B00991C80 /* jmeAppDelegate_iPad.h */,
+				08914C23142A826B00991C80 /* jmeAppDelegate_iPad.m */,
+				08914C25142A826B00991C80 /* MainWindow_iPad.xib */,
+			);
+			name = iPad;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		08914C03142A826B00991C80 /* jme-ios */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = 08914C2A142A826B00991C80 /* Build configuration list for PBXNativeTarget "jme-ios" */;
+			buildPhases = (
+				08914C00142A826B00991C80 /* Sources */,
+				08914C01142A826B00991C80 /* Frameworks */,
+				08914C02142A826B00991C80 /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = "jme-ios";
+			productName = hello;
+			productReference = 08914C04142A826B00991C80 /* jme-ios.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		08914BFB142A826B00991C80 /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				ORGANIZATIONNAME = "ECOVATE INC, d.b.a. ReadyTalk";
+			};
+			buildConfigurationList = 08914BFE142A826B00991C80 /* Build configuration list for PBXProject "jme-ios" */;
+			compatibilityVersion = "Xcode 3.2";
+			developmentRegion = English;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+			);
+			mainGroup = 08914BF9142A826B00991C80;
+			productRefGroup = 08914C05142A826B00991C80 /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				08914C03142A826B00991C80 /* jme-ios */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		08914C02142A826B00991C80 /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				08914C13142A826B00991C80 /* InfoPlist.strings in Resources */,
+				08914C20142A826B00991C80 /* MainWindow_iPhone.xib in Resources */,
+				08914C27142A826B00991C80 /* MainWindow_iPad.xib in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		08914C00142A826B00991C80 /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				08914C15142A826B00991C80 /* main.m in Sources */,
+				08914C19142A826B00991C80 /* jmeAppDelegate.m in Sources */,
+				08914C1D142A826B00991C80 /* jmeAppDelegate_iPhone.m in Sources */,
+				08914C24142A826B00991C80 /* jmeAppDelegate_iPad.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+		08914C11142A826B00991C80 /* InfoPlist.strings */ = {
+			isa = PBXVariantGroup;
+			children = (
+				08914C12142A826B00991C80 /* en */,
+			);
+			name = InfoPlist.strings;
+			sourceTree = "<group>";
+		};
+		08914C1E142A826B00991C80 /* MainWindow_iPhone.xib */ = {
+			isa = PBXVariantGroup;
+			children = (
+				08914C1F142A826B00991C80 /* en */,
+			);
+			name = MainWindow_iPhone.xib;
+			sourceTree = "<group>";
+		};
+		08914C25142A826B00991C80 /* MainWindow_iPad.xib */ = {
+			isa = PBXVariantGroup;
+			children = (
+				08914C26142A826B00991C80 /* en */,
+			);
+			name = MainWindow_iPad.xib;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		08914C28142A826B00991C80 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = NO;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+				GCC_VERSION = com.apple.compilers.llvmgcc42;
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				HEADER_SEARCH_PATHS = (
+					/System/Library/Frameworks/JavaVM.framework/Headers,
+					"\"$(SRCROOT)/../../gluegen/make/stub_includes/platform\"",
+					"\"$(SRCROOT)/../../gluegen/make/stub_includes/macosx\"",
+					"\"$(SRCROOT)/../../gluegen/build/gensrc/native\"",
+					"\"$(SRCROOT)/../../gluegen/build/gensrc/native/MacOSX\"",
+					"\"$(SRCROOT)/../../jogl/make/stub_includes\"/**",
+					"\"$(SRCROOT)/../../jogl/src/jogl/native\"",
+					"\"$(SRCROOT)/../../jogl/build/jogl/gensrc/native/jogl/es1\"",
+					"\"$(SRCROOT)/../../jogl/build/jogl/gensrc/native/jogl/es2\"",
+					"\"$(SRCROOT)/../../jogl/build/jogl/gensrc/native/jogl\"",
+				);
+				IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+				OTHER_LDFLAGS = (
+					"-filelist",
+					"../../build/ios-arm/libs.list",
+					"-filelist",
+					"../../build/ios-i386/libs.list",
+					"-lz",
+				);
+				SDKROOT = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Debug;
+		};
+		08914C29142A826B00991C80 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+				COPY_PHASE_STRIP = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu99;
+				GCC_VERSION = com.apple.compilers.llvmgcc42;
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				HEADER_SEARCH_PATHS = (
+					/System/Library/Frameworks/JavaVM.framework/Headers,
+					"\"$(SRCROOT)/../../gluegen/make/stub_includes/platform\"",
+					"\"$(SRCROOT)/../../gluegen/make/stub_includes/macosx\"",
+					"\"$(SRCROOT)/../../gluegen/build/gensrc/native\"",
+					"\"$(SRCROOT)/../../gluegen/build/gensrc/native/MacOSX\"",
+					"\"$(SRCROOT)/../../jogl/make/stub_includes\"/**",
+					"\"$(SRCROOT)/../../jogl/src/jogl/native\"",
+					"\"$(SRCROOT)/../../jogl/build/jogl/gensrc/native/jogl/es1\"",
+					"\"$(SRCROOT)/../../jogl/build/jogl/gensrc/native/jogl/es2\"",
+					"\"$(SRCROOT)/../../jogl/build/jogl/gensrc/native/jogl\"",
+				);
+				IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+				OTHER_LDFLAGS = (
+					"-filelist",
+					"../../build/ios-arm/libs.list",
+					"-filelist",
+					"../../build/ios-i386/libs.list",
+					"-lz",
+				);
+				SDKROOT = iphoneos;
+				TARGETED_DEVICE_FAMILY = "1,2";
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		08914C2B142A826B00991C80 /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ARCHS = (
+					armv7,
+					i386,
+				);
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+				GCC_PREFIX_HEADER = "jme-ios/jme-ios-Prefix.pch";
+				INFOPLIST_FILE = "jme-ios/jme-ios-Info.plist";
+				IPHONEOS_DEPLOYMENT_TARGET = 4.2;
+				PRODUCT_NAME = "jme-ios";
+				WRAPPER_EXTENSION = app;
+			};
+			name = Debug;
+		};
+		08914C2C142A826B00991C80 /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ARCHS = (
+					armv7,
+					i386,
+				);
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+				GCC_PREFIX_HEADER = "jme-ios/jme-ios-Prefix.pch";
+				INFOPLIST_FILE = "jme-ios/jme-ios-Info.plist";
+				IPHONEOS_DEPLOYMENT_TARGET = 4.2;
+				PRODUCT_NAME = "jme-ios";
+				WRAPPER_EXTENSION = app;
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		08914BFE142A826B00991C80 /* Build configuration list for PBXProject "jme-ios" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				08914C28142A826B00991C80 /* Debug */,
+				08914C29142A826B00991C80 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		08914C2A142A826B00991C80 /* Build configuration list for PBXNativeTarget "jme-ios" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				08914C2B142A826B00991C80 /* Debug */,
+				08914C2C142A826B00991C80 /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = 08914BFB142A826B00991C80 /* Project object */;
+}

+ 7 - 0
ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:jme-ios.xcodeproj">
+   </FileRef>
+</Workspace>

二进制
ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/UserInterfaceState.xcuserstate


+ 10 - 0
ios-data/templates/project/jme-ios.xcodeproj/project.xcworkspace/xcuserdata/normenhansen.xcuserdatad/WorkspaceSettings.xcsettings

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges</key>
+	<true/>
+	<key>SnapshotAutomaticallyBeforeSignificantChanges</key>
+	<true/>
+</dict>
+</plist>

+ 86 - 0
ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/hello.xcscheme

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+   LastUpgradeVersion = "0450"
+   version = "1.3">
+   <BuildAction
+      parallelizeBuildables = "YES"
+      buildImplicitDependencies = "YES">
+      <BuildActionEntries>
+         <BuildActionEntry
+            buildForTesting = "YES"
+            buildForRunning = "YES"
+            buildForProfiling = "YES"
+            buildForArchiving = "YES"
+            buildForAnalyzing = "YES">
+            <BuildableReference
+               BuildableIdentifier = "primary"
+               BlueprintIdentifier = "08914C03142A826B00991C80"
+               BuildableName = "jme-ios.app"
+               BlueprintName = "jme-ios"
+               ReferencedContainer = "container:jme-ios.xcodeproj">
+            </BuildableReference>
+         </BuildActionEntry>
+      </BuildActionEntries>
+   </BuildAction>
+   <TestAction
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      buildConfiguration = "Debug">
+      <Testables>
+      </Testables>
+      <MacroExpansion>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "08914C03142A826B00991C80"
+            BuildableName = "jme-ios.app"
+            BlueprintName = "jme-ios"
+            ReferencedContainer = "container:jme-ios.xcodeproj">
+         </BuildableReference>
+      </MacroExpansion>
+   </TestAction>
+   <LaunchAction
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+      launchStyle = "0"
+      useCustomWorkingDirectory = "NO"
+      buildConfiguration = "Debug"
+      ignoresPersistentStateOnLaunch = "NO"
+      debugDocumentVersioning = "YES"
+      allowLocationSimulation = "YES">
+      <BuildableProductRunnable>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "08914C03142A826B00991C80"
+            BuildableName = "jme-ios.app"
+            BlueprintName = "jme-ios"
+            ReferencedContainer = "container:jme-ios.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+      <AdditionalOptions>
+      </AdditionalOptions>
+   </LaunchAction>
+   <ProfileAction
+      shouldUseLaunchSchemeArgsEnv = "YES"
+      savedToolIdentifier = ""
+      useCustomWorkingDirectory = "NO"
+      buildConfiguration = "Release"
+      debugDocumentVersioning = "YES">
+      <BuildableProductRunnable>
+         <BuildableReference
+            BuildableIdentifier = "primary"
+            BlueprintIdentifier = "08914C03142A826B00991C80"
+            BuildableName = "jme-ios.app"
+            BlueprintName = "jme-ios"
+            ReferencedContainer = "container:jme-ios.xcodeproj">
+         </BuildableReference>
+      </BuildableProductRunnable>
+   </ProfileAction>
+   <AnalyzeAction
+      buildConfiguration = "Debug">
+   </AnalyzeAction>
+   <ArchiveAction
+      buildConfiguration = "Release"
+      revealArchiveInOrganizer = "YES">
+   </ArchiveAction>
+</Scheme>

+ 22 - 0
ios-data/templates/project/jme-ios.xcodeproj/xcuserdata/normenhansen.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>SchemeUserState</key>
+	<dict>
+		<key>hello.xcscheme</key>
+		<dict>
+			<key>orderHint</key>
+			<integer>0</integer>
+		</dict>
+	</dict>
+	<key>SuppressBuildableAutocreation</key>
+	<dict>
+		<key>08914C03142A826B00991C80</key>
+		<dict>
+			<key>primary</key>
+			<true/>
+		</dict>
+	</dict>
+</dict>
+</plist>

+ 2 - 0
ios-data/templates/project/jme-ios/en.lproj/InfoPlist.strings

@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+

+ 252 - 0
ios-data/templates/project/jme-ios/iPad/en.lproj/MainWindow_iPad.xib

@@ -0,0 +1,252 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="7.10">
+	<data>
+		<int key="IBDocument.SystemTarget">1536</int>
+		<string key="IBDocument.SystemVersion">12C60</string>
+		<string key="IBDocument.InterfaceBuilderVersion">2843</string>
+		<string key="IBDocument.AppKitVersion">1187.34</string>
+		<string key="IBDocument.HIToolboxVersion">625.00</string>
+		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+			<string key="NS.object.0">1929</string>
+		</object>
+		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+			<bool key="EncodedWithXMLCoder">YES</bool>
+			<string>IBGLKView</string>
+			<string>IBProxyObject</string>
+			<string>IBUICustomObject</string>
+			<string>IBUIWindow</string>
+		</object>
+		<object class="NSArray" key="IBDocument.PluginDependencies">
+			<bool key="EncodedWithXMLCoder">YES</bool>
+			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+		</object>
+		<object class="NSMutableDictionary" key="IBDocument.Metadata">
+			<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+			<integer value="1" key="NS.object.0"/>
+		</object>
+		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+			<bool key="EncodedWithXMLCoder">YES</bool>
+			<object class="IBProxyObject" id="841351856">
+				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
+			</object>
+			<object class="IBProxyObject" id="606714003">
+				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
+			</object>
+			<object class="IBUIWindow" id="62075450">
+				<reference key="NSNextResponder"/>
+				<int key="NSvFlags">292</int>
+				<object class="NSMutableArray" key="NSSubviews">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<object class="IBGLKView" id="599209716">
+						<reference key="NSNextResponder" ref="62075450"/>
+						<int key="NSvFlags">274</int>
+						<string key="NSFrame">{{0, 20}, {768, 1004}}</string>
+						<reference key="NSSuperview" ref="62075450"/>
+						<reference key="NSWindow"/>
+						<reference key="NSNextKeyView"/>
+						<string key="NSReuseIdentifierKey">_NS:9</string>
+						<bool key="IBUIOpaque">NO</bool>
+						<bool key="IBUIClipsSubviews">YES</bool>
+						<int key="IBUIContentMode">4</int>
+						<bool key="IBUIMultipleTouchEnabled">YES</bool>
+						<string key="targetRuntimeIdentifier">IBIPadFramework</string>
+						<bool key="IBGLKEnableSetNeedsDisplay">NO</bool>
+					</object>
+				</object>
+				<string key="NSFrameSize">{768, 1024}</string>
+				<reference key="NSSuperview"/>
+				<reference key="NSWindow"/>
+				<reference key="NSNextKeyView" ref="599209716"/>
+				<object class="NSColor" key="IBUIBackgroundColor">
+					<int key="NSColorSpace">1</int>
+					<bytes key="NSRGB">MSAxIDEAA</bytes>
+				</object>
+				<bool key="IBUIOpaque">NO</bool>
+				<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
+					<int key="IBUIStatusBarStyle">2</int>
+				</object>
+				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
+				<bool key="IBUIResizesToFullScreen">YES</bool>
+			</object>
+			<object class="IBUICustomObject" id="250404236">
+				<string key="targetRuntimeIdentifier">IBIPadFramework</string>
+			</object>
+		</object>
+		<object class="IBObjectContainer" key="IBDocument.Objects">
+			<object class="NSMutableArray" key="connectionRecords">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="IBConnectionRecord">
+					<object class="IBCocoaTouchOutletConnection" key="connection">
+						<string key="label">delegate</string>
+						<reference key="source" ref="841351856"/>
+						<reference key="destination" ref="250404236"/>
+					</object>
+					<int key="connectionID">8</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBCocoaTouchOutletConnection" key="connection">
+						<string key="label">window</string>
+						<reference key="source" ref="250404236"/>
+						<reference key="destination" ref="62075450"/>
+					</object>
+					<int key="connectionID">7</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBCocoaTouchOutletConnection" key="connection">
+						<string key="label">glview</string>
+						<reference key="source" ref="250404236"/>
+						<reference key="destination" ref="599209716"/>
+					</object>
+					<int key="connectionID">16</int>
+				</object>
+			</object>
+			<object class="IBMutableOrderedSet" key="objectRecords">
+				<object class="NSArray" key="orderedObjects">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<object class="IBObjectRecord">
+						<int key="objectID">0</int>
+						<object class="NSArray" key="object" id="0">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+						</object>
+						<reference key="children" ref="1000"/>
+						<nil key="parent"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">-1</int>
+						<reference key="object" ref="841351856"/>
+						<reference key="parent" ref="0"/>
+						<string key="objectName">File's Owner</string>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">-2</int>
+						<reference key="object" ref="606714003"/>
+						<reference key="parent" ref="0"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">2</int>
+						<reference key="object" ref="62075450"/>
+						<object class="NSMutableArray" key="children">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<reference ref="599209716"/>
+						</object>
+						<reference key="parent" ref="0"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">6</int>
+						<reference key="object" ref="250404236"/>
+						<reference key="parent" ref="0"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">12</int>
+						<reference key="object" ref="599209716"/>
+						<reference key="parent" ref="62075450"/>
+					</object>
+				</object>
+			</object>
+			<object class="NSMutableDictionary" key="flattenedProperties">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="NSArray" key="dict.sortedKeys">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<string>-1.CustomClassName</string>
+					<string>-1.IBPluginDependency</string>
+					<string>-2.CustomClassName</string>
+					<string>-2.IBPluginDependency</string>
+					<string>12.IBPluginDependency</string>
+					<string>2.IBPluginDependency</string>
+					<string>6.CustomClassName</string>
+					<string>6.IBPluginDependency</string>
+				</object>
+				<object class="NSArray" key="dict.values">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<string>UIApplication</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>UIResponder</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>jmeAppDelegate_iPad</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+				</object>
+			</object>
+			<object class="NSMutableDictionary" key="unlocalizedProperties">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<reference key="dict.sortedKeys" ref="0"/>
+				<reference key="dict.values" ref="0"/>
+			</object>
+			<nil key="activeLocalization"/>
+			<object class="NSMutableDictionary" key="localizations">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<reference key="dict.sortedKeys" ref="0"/>
+				<reference key="dict.values" ref="0"/>
+			</object>
+			<nil key="sourceID"/>
+			<int key="maxID">16</int>
+		</object>
+		<object class="IBClassDescriber" key="IBDocument.Classes">
+			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="IBPartialClassDescription">
+					<string key="className">jmeAppDelegate</string>
+					<string key="superclassName">NSObject</string>
+					<object class="NSMutableDictionary" key="outlets">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>glview</string>
+							<string>window</string>
+						</object>
+						<object class="NSArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>GLKView</string>
+							<string>UIWindow</string>
+						</object>
+					</object>
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>glview</string>
+							<string>window</string>
+						</object>
+						<object class="NSArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<object class="IBToOneOutletInfo">
+								<string key="name">glview</string>
+								<string key="candidateClassName">GLKView</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">window</string>
+								<string key="candidateClassName">UIWindow</string>
+							</object>
+						</object>
+					</object>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">./Classes/jmeAppDelegate.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
+					<string key="className">jmeAppDelegate_iPad</string>
+					<string key="superclassName">jmeAppDelegate</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">./Classes/jmeAppDelegate_iPad.h</string>
+					</object>
+				</object>
+			</object>
+		</object>
+		<int key="IBDocument.localizationMode">0</int>
+		<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
+		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+			<integer value="3100" key="NS.object.0"/>
+		</object>
+		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+		<int key="IBDocument.defaultPropertyAccessControl">3</int>
+		<string key="IBCocoaTouchPluginVersion">1929</string>
+	</data>
+</archive>

+ 5 - 0
ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.h

@@ -0,0 +1,5 @@
+#import "jmeAppDelegate.h"
+
+@interface jmeAppDelegate_iPad : jmeAppDelegate
+
+@end

+ 5 - 0
ios-data/templates/project/jme-ios/iPad/jmeAppDelegate_iPad.m

@@ -0,0 +1,5 @@
+#import "jmeAppDelegate_iPad.h"
+
+@implementation jmeAppDelegate_iPad
+
+@end

+ 258 - 0
ios-data/templates/project/jme-ios/iPhone/en.lproj/MainWindow_iPhone.xib

@@ -0,0 +1,258 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
+	<data>
+		<int key="IBDocument.SystemTarget">1536</int>
+		<string key="IBDocument.SystemVersion">12C60</string>
+		<string key="IBDocument.InterfaceBuilderVersion">2843</string>
+		<string key="IBDocument.AppKitVersion">1187.34</string>
+		<string key="IBDocument.HIToolboxVersion">625.00</string>
+		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+			<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+			<string key="NS.object.0">1929</string>
+		</object>
+		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+			<bool key="EncodedWithXMLCoder">YES</bool>
+			<string>IBGLKView</string>
+			<string>IBProxyObject</string>
+			<string>IBUICustomObject</string>
+			<string>IBUIWindow</string>
+		</object>
+		<object class="NSArray" key="IBDocument.PluginDependencies">
+			<bool key="EncodedWithXMLCoder">YES</bool>
+			<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+		</object>
+		<object class="NSMutableDictionary" key="IBDocument.Metadata">
+			<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+			<integer value="1" key="NS.object.0"/>
+		</object>
+		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+			<bool key="EncodedWithXMLCoder">YES</bool>
+			<object class="IBProxyObject" id="841351856">
+				<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+			</object>
+			<object class="IBProxyObject" id="450319686">
+				<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+			</object>
+			<object class="IBUICustomObject" id="987256611">
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+			</object>
+			<object class="IBUIWindow" id="380026005">
+				<reference key="NSNextResponder"/>
+				<int key="NSvFlags">1316</int>
+				<object class="NSMutableArray" key="NSSubviews">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<object class="IBGLKView" id="97650301">
+						<reference key="NSNextResponder" ref="380026005"/>
+						<int key="NSvFlags">1298</int>
+						<string key="NSFrame">{{0, 20}, {320, 460}}</string>
+						<reference key="NSSuperview" ref="380026005"/>
+						<reference key="NSWindow"/>
+						<reference key="NSNextKeyView"/>
+						<string key="NSReuseIdentifierKey">_NS:9</string>
+						<bool key="IBUIOpaque">NO</bool>
+						<bool key="IBUIClipsSubviews">YES</bool>
+						<int key="IBUIContentMode">4</int>
+						<bool key="IBUIMultipleTouchEnabled">YES</bool>
+						<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+						<bool key="IBGLKEnableSetNeedsDisplay">NO</bool>
+					</object>
+				</object>
+				<object class="NSPSMatrix" key="NSFrameMatrix"/>
+				<string key="NSFrameSize">{320, 480}</string>
+				<reference key="NSSuperview"/>
+				<reference key="NSWindow"/>
+				<reference key="NSNextKeyView" ref="97650301"/>
+				<object class="NSColor" key="IBUIBackgroundColor">
+					<int key="NSColorSpace">1</int>
+					<bytes key="NSRGB">MSAxIDEAA</bytes>
+				</object>
+				<bool key="IBUIOpaque">NO</bool>
+				<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+				<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+				<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+				<bool key="IBUIResizesToFullScreen">YES</bool>
+			</object>
+		</object>
+		<object class="IBObjectContainer" key="IBDocument.Objects">
+			<object class="NSMutableArray" key="connectionRecords">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="IBConnectionRecord">
+					<object class="IBCocoaTouchOutletConnection" key="connection">
+						<string key="label">delegate</string>
+						<reference key="source" ref="841351856"/>
+						<reference key="destination" ref="987256611"/>
+					</object>
+					<int key="connectionID">5</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBCocoaTouchOutletConnection" key="connection">
+						<string key="label">window</string>
+						<reference key="source" ref="987256611"/>
+						<reference key="destination" ref="380026005"/>
+					</object>
+					<int key="connectionID">6</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBCocoaTouchOutletConnection" key="connection">
+						<string key="label">glview</string>
+						<reference key="source" ref="987256611"/>
+						<reference key="destination" ref="97650301"/>
+					</object>
+					<int key="connectionID">10</int>
+				</object>
+			</object>
+			<object class="IBMutableOrderedSet" key="objectRecords">
+				<object class="NSArray" key="orderedObjects">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<object class="IBObjectRecord">
+						<int key="objectID">0</int>
+						<object class="NSArray" key="object" id="0">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+						</object>
+						<reference key="children" ref="1000"/>
+						<nil key="parent"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">2</int>
+						<reference key="object" ref="380026005"/>
+						<object class="NSMutableArray" key="children">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<reference ref="97650301"/>
+						</object>
+						<reference key="parent" ref="0"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">-1</int>
+						<reference key="object" ref="841351856"/>
+						<reference key="parent" ref="0"/>
+						<string key="objectName">File's Owner</string>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">4</int>
+						<reference key="object" ref="987256611"/>
+						<reference key="parent" ref="0"/>
+						<string key="objectName">App Delegate</string>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">-2</int>
+						<reference key="object" ref="450319686"/>
+						<reference key="parent" ref="0"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">9</int>
+						<reference key="object" ref="97650301"/>
+						<reference key="parent" ref="380026005"/>
+					</object>
+				</object>
+			</object>
+			<object class="NSMutableDictionary" key="flattenedProperties">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="NSArray" key="dict.sortedKeys">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<string>-1.CustomClassName</string>
+					<string>-1.IBPluginDependency</string>
+					<string>-2.CustomClassName</string>
+					<string>-2.IBPluginDependency</string>
+					<string>2.IBAttributePlaceholdersKey</string>
+					<string>2.IBPluginDependency</string>
+					<string>4.CustomClassName</string>
+					<string>4.IBPluginDependency</string>
+					<string>9.IBPluginDependency</string>
+				</object>
+				<object class="NSArray" key="dict.values">
+					<bool key="EncodedWithXMLCoder">YES</bool>
+					<string>UIApplication</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>UIResponder</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<object class="NSMutableDictionary">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<reference key="dict.sortedKeys" ref="0"/>
+						<reference key="dict.values" ref="0"/>
+					</object>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>jmeAppDelegate_iPhone</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+					<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+				</object>
+			</object>
+			<object class="NSMutableDictionary" key="unlocalizedProperties">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<reference key="dict.sortedKeys" ref="0"/>
+				<reference key="dict.values" ref="0"/>
+			</object>
+			<nil key="activeLocalization"/>
+			<object class="NSMutableDictionary" key="localizations">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<reference key="dict.sortedKeys" ref="0"/>
+				<reference key="dict.values" ref="0"/>
+			</object>
+			<nil key="sourceID"/>
+			<int key="maxID">10</int>
+		</object>
+		<object class="IBClassDescriber" key="IBDocument.Classes">
+			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
+				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="IBPartialClassDescription">
+					<string key="className">jmeAppDelegate</string>
+					<string key="superclassName">NSObject</string>
+					<object class="NSMutableDictionary" key="outlets">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>glview</string>
+							<string>window</string>
+						</object>
+						<object class="NSArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>GLKView</string>
+							<string>UIWindow</string>
+						</object>
+					</object>
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
+						<bool key="EncodedWithXMLCoder">YES</bool>
+						<object class="NSArray" key="dict.sortedKeys">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<string>glview</string>
+							<string>window</string>
+						</object>
+						<object class="NSArray" key="dict.values">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+							<object class="IBToOneOutletInfo">
+								<string key="name">glview</string>
+								<string key="candidateClassName">GLKView</string>
+							</object>
+							<object class="IBToOneOutletInfo">
+								<string key="name">window</string>
+								<string key="candidateClassName">UIWindow</string>
+							</object>
+						</object>
+					</object>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">./Classes/jmeAppDelegate.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
+					<string key="className">jmeAppDelegate_iPhone</string>
+					<string key="superclassName">jmeAppDelegate</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">./Classes/jmeAppDelegate_iPhone.h</string>
+					</object>
+				</object>
+			</object>
+		</object>
+		<int key="IBDocument.localizationMode">0</int>
+		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+			<integer value="3100" key="NS.object.0"/>
+		</object>
+		<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+		<int key="IBDocument.defaultPropertyAccessControl">3</int>
+		<string key="IBCocoaTouchPluginVersion">1929</string>
+	</data>
+</archive>

+ 5 - 0
ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.h

@@ -0,0 +1,5 @@
+#import "jmeAppDelegate.h"
+
+@interface jmeAppDelegate_iPhone : jmeAppDelegate
+
+@end

+ 5 - 0
ios-data/templates/project/jme-ios/iPhone/jmeAppDelegate_iPhone.m

@@ -0,0 +1,5 @@
+#import "jmeAppDelegate_iPhone.h"
+
+@implementation jmeAppDelegate_iPhone
+
+@end

+ 47 - 0
ios-data/templates/project/jme-ios/jme-ios-Info.plist

@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>en</string>
+	<key>CFBundleDisplayName</key>
+	<string>${PRODUCT_NAME}</string>
+	<key>CFBundleExecutable</key>
+	<string>${EXECUTABLE_NAME}</string>
+	<key>CFBundleIconFile</key>
+	<string></string>
+	<key>CFBundleIdentifier</key>
+	<string>com.jmonkeyengine.${PRODUCT_NAME:rfc1034identifier}</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>${PRODUCT_NAME}</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleVersion</key>
+	<string>1.0</string>
+	<key>LSRequiresIPhoneOS</key>
+	<true/>
+	<key>NSMainNibFile</key>
+	<string>MainWindow_iPhone</string>
+	<key>NSMainNibFile~ipad</key>
+	<string>MainWindow_iPad</string>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UISupportedInterfaceOrientations~ipad</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+</dict>
+</plist>

+ 14 - 0
ios-data/templates/project/jme-ios/jme-ios-Prefix.pch

@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'hello' target in the 'hello' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_3_0
+#warning "This project uses features only available in iPhone SDK 3.0 and later."
+#endif
+
+#ifdef __OBJC__
+    #import <UIKit/UIKit.h>
+    #import <Foundation/Foundation.h>
+#endif

+ 18 - 0
ios-data/templates/project/jme-ios/jmeAppDelegate.h

@@ -0,0 +1,18 @@
+#import <UIKit/UIKit.h>
+#import <OpenGLES/ES2/gl.h>
+#import <GLKit/GLKit.h>
+#include <jni.h>
+
+@interface jmeAppDelegate : NSObject <UIApplicationDelegate>
+
+@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) IBOutlet GLKView *glview;
+@property (nonatomic, retain) EAGLContext *ctx;
+@property JavaVM* vm;
+@property jobject app;
+@property jobject harness;
+@property jmethodID pauseMethod;
+@property jmethodID reactivateMethod;
+@property jmethodID closeMethod;
+
+@end

+ 195 - 0
ios-data/templates/project/jme-ios/jmeAppDelegate.m

@@ -0,0 +1,195 @@
+#include <stdint.h>
+#import "jmeAppDelegate.h"
+
+static JNIEnv*
+getEnv(JavaVM* vm)
+{
+    void* env;
+    if ((*vm)->GetEnv(vm, &env, JNI_VERSION_1_4) == JNI_OK) {
+        return (JNIEnv*) env;
+    } else {
+        return 0;
+    }
+}
+
+@implementation jmeAppDelegate
+
+@synthesize window = _window;
+@synthesize vm = _vm;
+@synthesize app = _app;
+@synthesize harness = _harness;
+@synthesize pauseMethod = _pauseMethod;
+@synthesize reactivateMethod = _reactivateMethod;
+@synthesize closeMethod = _closeMethod;
+@synthesize ctx = _ctx;
+@synthesize glview = _glview;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+    /**
+     * GLES Context initialization
+     **/
+    _ctx = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
+    _glview.context = self.ctx;
+    
+    /**
+     * Java initilization.
+     * Note that though it looks like a JVM is created, in fact only the JNI api is being used here,
+     * the whole application and java classpath has been precompiled.
+     **/
+    JavaVMInitArgs vmArgs;
+    vmArgs.version = JNI_VERSION_1_4;
+    vmArgs.nOptions = 3;
+    vmArgs.ignoreUnrecognized = JNI_TRUE;
+    
+    JavaVMOption options[vmArgs.nOptions];
+    vmArgs.options = options;
+    
+    options[0].optionString = (char*) "-Davian.bootimage=bootimageBin";
+    options[1].optionString = (char*) "-Davian.codeimage=codeimageBin";
+    options[2].optionString = (char*) "-Xbootclasspath:[bootJar]:[resourcesJar]";
+    
+    JavaVM* vm;
+    void* env;
+    JNI_CreateJavaVM(&vm, &env, &vmArgs);
+    JNIEnv* e = (JNIEnv*) env;
+    
+    /**
+     * jME Application initilization.
+     **/
+    jclass mainClass = (*e)->FindClass(e, "mygame.Main");
+    if (! (*e)->ExceptionCheck(e)) {
+        jmethodID mainConstructor = (*e)->GetMethodID(e, mainClass, "<init>", "()V");
+        if (! (*e)->ExceptionCheck(e)) {
+            jobject mainObject = (*e)->NewObject(e, mainClass, mainConstructor);
+            if (! (*e)->ExceptionCheck(e)) {
+                self.app = mainObject;
+                (*e)->NewGlobalRef(e, mainObject);
+            }else{
+                NSLog(@"Could not create new Application object");
+                (*e)->ExceptionDescribe(e);
+                (*e)->ExceptionClear(e);
+                return NO;
+            }
+        }else{
+            NSLog(@"Could not find Application constructor");
+            (*e)->ExceptionDescribe(e);
+            (*e)->ExceptionClear(e);
+            return NO;
+        }
+    }else{
+        NSLog(@"Could not find Application main class");
+        (*e)->ExceptionDescribe(e);
+        (*e)->ExceptionClear(e);
+        return NO;
+    }
+    
+    /**
+     * iOS Harness initilization.
+     * The harness is being called after creating the application.
+     **/
+    jclass harnessClass = (*e)->FindClass(e, "JmeAppHarness");
+    if (! (*e)->ExceptionCheck(e)) {
+        jmethodID harnessConstructor = (*e)->GetMethodID(e, harnessClass, "<init>", "(Lcom/jme3/app/Application;)V");
+        if (! (*e)->ExceptionCheck(e)) {
+            jobject harnessObject = (*e)->NewObject(e, harnessClass, harnessConstructor, self.app);
+            if (! (*e)->ExceptionCheck(e)) {
+                self.harness = harnessObject;
+                (*e)->NewGlobalRef(e, harnessObject);
+                self.pauseMethod = (*e)->GetMethodID(e, harnessClass, "appPaused", "()V");
+                (*e)->ExceptionCheck(e);
+                self.reactivateMethod = (*e)->GetMethodID(e, harnessClass, "appReactivated", "()V");
+                (*e)->ExceptionCheck(e);
+                self.closeMethod = (*e)->GetMethodID(e, harnessClass, "appClosed", "()V");
+                (*e)->ExceptionCheck(e);
+            }else{
+                NSLog(@"Could not create new iOS Harness object");
+                (*e)->ExceptionDescribe(e);
+                (*e)->ExceptionClear(e);
+                return NO;
+            }
+        }else{
+            NSLog(@"Could not find iOS Harness constructor");
+            (*e)->ExceptionDescribe(e);
+            (*e)->ExceptionClear(e);
+            return NO;
+        }
+    }else{
+        (*e)->ExceptionDescribe(e);
+        (*e)->ExceptionClear(e);
+        NSLog(@"Could not find iOS Harness class");
+        return NO;
+    }
+
+    self.vm = vm;
+    
+    //return (*e)->ExceptionCheck(e) ? NO : YES;
+    return YES;
+}
+
+- (void)applicationWillResignActive:(UIApplication *)application
+{
+    /*
+     Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+     Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+     */
+    JNIEnv* e = getEnv(self.vm);
+    if (e) {
+        (*e)->CallVoidMethod(e, self.harness, self.pauseMethod);
+    }
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application
+{
+    /*
+     Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+     If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+     */
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application
+{
+    /*
+     Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
+     */
+    JNIEnv* e = getEnv(self.vm);
+    if (e) {
+        (*e)->CallVoidMethod(e, self.harness, self.reactivateMethod);
+    }
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application
+{
+    /*
+     Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+     */
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application
+{
+    JNIEnv* e = getEnv(self.vm);
+    if (e) {
+        (*e)->CallVoidMethod(e, self.harness, self.closeMethod);
+    }
+}
+
+- (void)dealloc
+{
+    JNIEnv* e = getEnv(self.vm);
+    if (e) {
+        if(self.app!=nil){
+            (*e)->DeleteGlobalRef(e, self.app);
+        }
+        if(self.harness!=nil){
+            (*e)->DeleteGlobalRef(e, self.harness);
+        }
+    }
+    (*self.vm)->DestroyJavaVM(self.vm);
+    [_window release];
+    _glview.context = nil;
+    [_glview release];
+    [_ctx release];
+    [super dealloc];
+}
+
+@end

+ 9 - 0
ios-data/templates/project/jme-ios/main.m

@@ -0,0 +1,9 @@
+#import <UIKit/UIKit.h>
+
+int main(int argc, char *argv[])
+{
+    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+    int retVal = UIApplicationMain(argc, argv, nil, nil);
+    [pool release];
+    return retVal;
+}

+ 46 - 0
ios-data/templates/src/JmeAppHarness.java

@@ -0,0 +1,46 @@
+import com.jme3.app.Application;
+import com.jme3.system.ios.IosHarness;
+
+/**
+ * You can extend this class to perform iOS-only operations from java,
+ * native methods can reside either in .c/.m files in this directory
+ * or in the XCode project itself.
+ * @author normenhansen
+ */
+public class JmeAppHarness extends IosHarness{
+
+    /**
+     * An instance of this object is created when your application
+     * has started on the iOS side.
+     * You can e.g. attach special AppStates or do similar things here. You can
+     * access classes from this source directory as well as your main projects
+     * sources and classpath.
+     * @param app The application object that has been created
+     */
+    public JmeAppHarness(Application app) {
+        super(app);
+    }
+
+    @Override
+    public void appPaused() {
+        super.appPaused();
+    }
+
+    @Override
+    public void appReactivated() {
+        super.appReactivated();
+    }
+
+    @Override
+    public void appClosed() {
+        super.appClosed();
+    }
+    
+    /**
+     * Example of a native method calling iOS code.
+     * See the native code in IosHarness.m
+     * @param text The message to display
+     */
+    public native void showDialog(String text);
+
+}

+ 23 - 0
ios-data/templates/src/JmeAppHarness.m

@@ -0,0 +1,23 @@
+#include <jni.h>
+#import <UIKit/UIKit.h>
+
+#define JNIEXPORT __attribute__ ((visibility("default"))) \
+  __attribute__ ((used))
+
+#ifndef _Included_JmeAppHarness
+#define _Included_JmeAppHarness
+#endif
+
+JNIEXPORT void JNICALL
+Java_JmeAppHarness_showDialog(JNIEnv* e, jobject c, jstring text) {
+    const char* chars = (*e)->GetStringUTFChars(e, text, 0);
+    NSString* string = [[NSString alloc] initWithUTF8String : chars];
+    (*e)->ReleaseStringUTFChars(e, text, chars);
+    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
+            message : string
+            delegate : nil
+            cancelButtonTitle : @"OK"
+            otherButtonTitles : nil];
+    [alert show];
+    [alert release];
+}

+ 41 - 0
ios-data/templates/src/boot.c

@@ -0,0 +1,41 @@
+#include <stdint.h>
+#include <stdlib.h>
+
+void __cxa_pure_virtual(void) { abort(); }
+
+#define EXPORT __attribute__ ((visibility("default"))) __attribute__ ((used))
+
+#define BOOTIMAGE_BIN(x) _binary_bootimage_bin_##x
+#define CODEIMAGE_BIN(x) _binary_codeimage_bin_##x
+
+extern const uint8_t BOOTIMAGE_BIN(start)[];
+extern const uint8_t BOOTIMAGE_BIN(end)[];
+
+EXPORT const uint8_t*
+bootimageBin(unsigned* size)
+{
+  *size = BOOTIMAGE_BIN(end) - BOOTIMAGE_BIN(start);
+  return BOOTIMAGE_BIN(start);
+}
+
+extern const uint8_t CODEIMAGE_BIN(start)[];
+extern const uint8_t CODEIMAGE_BIN(end)[];
+
+EXPORT const uint8_t*
+codeimageBin(unsigned* size)
+{
+  *size = CODEIMAGE_BIN(end) - CODEIMAGE_BIN(start);
+  return CODEIMAGE_BIN(start);
+}
+
+#define RESOURCES_JAR(x) _binary_resources_jar_##x
+
+extern const uint8_t RESOURCES_JAR(start)[];
+extern const uint8_t RESOURCES_JAR(end)[];
+
+EXPORT const uint8_t*
+resourcesJar(unsigned* size)
+{
+  *size = RESOURCES_JAR(end) - RESOURCES_JAR(start);
+  return RESOURCES_JAR(start);
+}

+ 402 - 0
licenses.txt

@@ -0,0 +1,402 @@
+*********************
+*LICENSE FOR OPENJDK*
+*********************
+The GNU General Public License (GPL)
+
+Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Everyone is permitted to copy and distribute verbatim copies of this license
+document, but changing it is not allowed.
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to share
+and change it.  By contrast, the GNU General Public License is intended to
+guarantee your freedom to share and change free software--to make sure the
+software is free for all its users.  This General Public License applies to
+most of the Free Software Foundation's software and to any other program whose
+authors commit to using it.  (Some other Free Software Foundation software is
+covered by the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+When we speak of free software, we are referring to freedom, not price.  Our
+General Public Licenses are designed to make sure that you have the freedom to
+distribute copies of free software (and charge for this service if you wish),
+that you receive source code or can get it if you want it, that you can change
+the software or use pieces of it in new free programs; and that you know you
+can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to deny
+you these rights or to ask you to surrender the rights.  These restrictions
+translate to certain responsibilities for you if you distribute copies of the
+software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or for
+a fee, you must give the recipients all the rights that you have.  You must
+make sure that they, too, receive or can get the source code.  And you must
+show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2)
+offer you this license which gives you legal permission to copy, distribute
+and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that
+everyone understands that there is no warranty for this free software.  If the
+software is modified by someone else and passed on, we want its recipients to
+know that what they have is not the original, so that any problems introduced
+by others will not reflect on the original authors' reputations.
+
+Finally, any free program is threatened constantly by software patents.  We
+wish to avoid the danger that redistributors of a free program will
+individually obtain patent licenses, in effect making the program proprietary.
+To prevent this, we have made it clear that any patent must be licensed for
+everyone's free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification
+follow.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License applies to any program or other work which contains a notice
+placed by the copyright holder saying it may be distributed under the terms of
+this General Public License.  The "Program", below, refers to any such program
+or work, and a "work based on the Program" means either the Program or any
+derivative work under copyright law: that is to say, a work containing the
+Program or a portion of it, either verbatim or with modifications and/or
+translated into another language.  (Hereinafter, translation is included
+without limitation in the term "modification".) Each licensee is addressed as
+"you".
+
+Activities other than copying, distribution and modification are not covered by
+this License; they are outside its scope.  The act of running the Program is
+not restricted, and the output from the Program is covered only if its contents
+constitute a work based on the Program (independent of having been made by
+running the Program).  Whether that is true depends on what the Program does.
+
+1. You may copy and distribute verbatim copies of the Program's source code as
+you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this License
+and to the absence of any warranty; and give any other recipients of the
+Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you may
+at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of it, thus
+forming a work based on the Program, and copy and distribute such modifications
+or work under the terms of Section 1 above, provided that you also meet all of
+these conditions:
+
+    a) You must cause the modified files to carry prominent notices stating
+    that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in whole or
+    in part contains or is derived from the Program or any part thereof, to be
+    licensed as a whole at no charge to all third parties under the terms of
+    this License.
+
+    c) If the modified program normally reads commands interactively when run,
+    you must cause it, when started running for such interactive use in the
+    most ordinary way, to print or display an announcement including an
+    appropriate copyright notice and a notice that there is no warranty (or
+    else, saying that you provide a warranty) and that users may redistribute
+    the program under these conditions, and telling the user how to view a copy
+    of this License.  (Exception: if the Program itself is interactive but does
+    not normally print such an announcement, your work based on the Program is
+    not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If identifiable
+sections of that work are not derived from the Program, and can be reasonably
+considered independent and separate works in themselves, then this License, and
+its terms, do not apply to those sections when you distribute them as separate
+works.  But when you distribute the same sections as part of a whole which is a
+work based on the Program, the distribution of the whole must be on the terms
+of this License, whose permissions for other licensees extend to the entire
+whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your
+rights to work written entirely by you; rather, the intent is to exercise the
+right to control the distribution of derivative or collective works based on
+the Program.
+
+In addition, mere aggregation of another work not based on the Program with the
+Program (or with a work based on the Program) on a volume of a storage or
+distribution medium does not bring the other work under the scope of this
+License.
+
+3. You may copy and distribute the Program (or a work based on it, under
+Section 2) in object code or executable form under the terms of Sections 1 and
+2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable source
+    code, which must be distributed under the terms of Sections 1 and 2 above
+    on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three years, to
+    give any third party, for a charge no more than your cost of physically
+    performing source distribution, a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of Sections 1
+    and 2 above on a medium customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer to
+    distribute corresponding source code.  (This alternative is allowed only
+    for noncommercial distribution and only if you received the program in
+    object code or executable form with such an offer, in accord with
+    Subsection b above.)
+
+The source code for a work means the preferred form of the work for making
+modifications to it.  For an executable work, complete source code means all
+the source code for all modules it contains, plus any associated interface
+definition files, plus the scripts used to control compilation and installation
+of the executable.  However, as a special exception, the source code
+distributed need not include anything that is normally distributed (in either
+source or binary form) with the major components (compiler, kernel, and so on)
+of the operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the source
+code from the same place counts as distribution of the source code, even though
+third parties are not compelled to copy the source along with the object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program except as
+expressly provided under this License.  Any attempt otherwise to copy, modify,
+sublicense or distribute the Program is void, and will automatically terminate
+your rights under this License.  However, parties who have received copies, or
+rights, from you under this License will not have their licenses terminated so
+long as such parties remain in full compliance.
+
+5. You are not required to accept this License, since you have not signed it.
+However, nothing else grants you permission to modify or distribute the Program
+or its derivative works.  These actions are prohibited by law if you do not
+accept this License.  Therefore, by modifying or distributing the Program (or
+any work based on the Program), you indicate your acceptance of this License to
+do so, and all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the Program),
+the recipient automatically receives a license from the original licensor to
+copy, distribute or modify the Program subject to these terms and conditions.
+You may not impose any further restrictions on the recipients' exercise of the
+rights granted herein.  You are not responsible for enforcing compliance by
+third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues), conditions
+are imposed on you (whether by court order, agreement or otherwise) that
+contradict the conditions of this License, they do not excuse you from the
+conditions of this License.  If you cannot distribute so as to satisfy
+simultaneously your obligations under this License and any other pertinent
+obligations, then as a consequence you may not distribute the Program at all.
+For example, if a patent license would not permit royalty-free redistribution
+of the Program by all those who receive copies directly or indirectly through
+you, then the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply and
+the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or
+other property right claims or to contest validity of any such claims; this
+section has the sole purpose of protecting the integrity of the free software
+distribution system, which is implemented by public license practices.  Many
+people have made generous contributions to the wide range of software
+distributed through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing to
+distribute software through any other system and a licensee cannot impose that
+choice.
+
+This section is intended to make thoroughly clear what is believed to be a
+consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in certain
+countries either by patents or by copyrighted interfaces, the original
+copyright holder who places the Program under this License may add an explicit
+geographical distribution limitation excluding those countries, so that
+distribution is permitted only in or among countries not thus excluded.  In
+such case, this License incorporates the limitation as if written in the body
+of this License.
+
+9. The Free Software Foundation may publish revised and/or new versions of the
+General Public License from time to time.  Such new versions will be similar in
+spirit to the present version, but may differ in detail to address new problems
+or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any later
+version", you have the option of following the terms and conditions either of
+that version or of any later version published by the Free Software Foundation.
+If the Program does not specify a version number of this License, you may
+choose any version ever published by the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free programs
+whose distribution conditions are different, write to the author to ask for
+permission.  For software which is copyrighted by the Free Software Foundation,
+write to the Free Software Foundation; we sometimes make exceptions for this.
+Our decision will be guided by the two goals of preserving the free status of
+all derivatives of our free software and of promoting the sharing and reuse of
+software generally.
+
+NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
+THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN OTHERWISE
+STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE
+PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND
+PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE,
+YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
+ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE
+PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
+INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
+BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER
+OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible
+use to the public, the best way to achieve this is to make it free software
+which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program.  It is safest to attach
+them to the start of each source file to most effectively convey the exclusion
+of warranty; and each file should have at least the "copyright" line and a
+pointer to where the full notice is found.
+
+    One line to give the program's name and a brief idea of what it does.
+
+    Copyright (C) <year> <name of author>
+
+    This program is free software; you can redistribute it and/or modify it
+    under the terms of the GNU General Public License as published by the Free
+    Software Foundation; either version 2 of the License, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful, but WITHOUT
+    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+    more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc., 59
+    Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this when it
+starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author Gnomovision comes
+    with ABSOLUTELY NO WARRANTY; for details type 'show w'.  This is free
+    software, and you are welcome to redistribute it under certain conditions;
+    type 'show c' for details.
+
+The hypothetical commands 'show w' and 'show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may be
+called something other than 'show w' and 'show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.  Here
+is a sample; alter the names:
+
+    Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+    'Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+    signature of Ty Coon, 1 April 1989
+
+    Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General Public
+License instead of this License.
+
+
+"CLASSPATH" EXCEPTION TO THE GPL
+
+Certain source files distributed by Oracle America and/or its affiliates are
+subject to the following clarification and special exception to the GPL, but
+only where Oracle has expressly included in the particular source file's header
+the words "Oracle designates this particular file as subject to the "Classpath"
+exception as provided by Oracle in the LICENSE file that accompanied this code."
+
+    Linking this library statically or dynamically with other modules is making
+    a combined work based on this library.  Thus, the terms and conditions of
+    the GNU General Public License cover the whole combination.
+
+    As a special exception, the copyright holders of this library give you
+    permission to link this library with independent modules to produce an
+    executable, regardless of the license terms of these independent modules,
+    and to copy and distribute the resulting executable under terms of your
+    choice, provided that you also meet, for each linked independent module,
+    the terms and conditions of the license of that module.  An independent
+    module is a module which is not derived from or based on this library.  If
+    you modify this library, you may extend this exception to your version of
+    the library, but you are not obligated to do so.  If you do not wish to do
+    so, delete this exception statement from your version.
+
+
+*******************
+*LICENSE FOR AVIAN*
+*******************
+Copyright (c) 2008-2012, Avian Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+
+*************
+*JME LICENSE*
+*************
+Copyright (c) 2003-2012 jMonkeyEngine
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+  notice, this list of conditions and the following disclaimer in the
+  documentation and/or other materials provided with the distribution.
+
+* Neither the name of 'jMonkeyEngine' nor the names of its contributors
+  may be used to endorse or promote products derived from this software
+  without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 6 - 0
manifest.mf

@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+OpenIDE-Module: com.jme3.gde.ios
+OpenIDE-Module-Implementation-Version: 0
+OpenIDE-Module-Layer: com/jme3/gde/ios/layer.xml
+OpenIDE-Module-Localizing-Bundle: com/jme3/gde/ios/Bundle.properties
+

+ 45 - 0
nbproject/build-impl.xml

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+*** GENERATED FROM project.xml - DO NOT EDIT  ***
+***         EDIT ../build.xml INSTEAD         ***
+-->
+<project name="com.jme3.gde.ios-impl" basedir="..">
+    <fail message="Please build using Ant 1.7.1 or higher.">
+        <condition>
+            <not>
+                <antversion atleast="1.7.1"/>
+            </not>
+        </condition>
+    </fail>
+    <property file="nbproject/private/suite-private.properties"/>
+    <property file="nbproject/suite.properties"/>
+    <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
+    <property file="${suite.dir}/nbproject/private/platform-private.properties"/>
+    <property file="${suite.dir}/nbproject/platform.properties"/>
+    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
+        <attribute name="name"/>
+        <attribute name="value"/>
+        <sequential>
+            <property name="@{name}" value="${@{value}}"/>
+        </sequential>
+    </macrodef>
+    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
+        <attribute name="property"/>
+        <attribute name="value"/>
+        <sequential>
+            <property name="@{property}" value="@{value}"/>
+        </sequential>
+    </macrodef>
+    <property file="${user.properties.file}"/>
+    <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
+    <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
+    <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
+    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
+        <condition>
+            <not>
+                <contains string="${cluster.path.evaluated}" substring="platform"/>
+            </not>
+        </condition>
+    </fail>
+    <import file="${harness.dir}/build.xml"/>
+</project>

+ 8 - 0
nbproject/genfiles.properties

@@ -0,0 +1,8 @@
+build.xml.data.CRC32=8d2930b7
+build.xml.script.CRC32=4596b2c2
[email protected]
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=96566772
+nbproject/build-impl.xml.script.CRC32=b4f92cf6
+nbproject/[email protected]

+ 10 - 0
nbproject/project.properties

@@ -0,0 +1,10 @@
+javac.source=1.6
+javac.compilerargs=-Xlint -Xlint:-serial
+# avian compile locations
+avian.jdk.path=/Users/normenhansen/Documents/Code-Import/avian-ios/1.7.0u4.jdk/Contents/Home/
+avian.jdk.src.path=/Users/normenhansen/Documents/Code-Import/avian-ios/jdk7u4/jdk/src/
+avian.src.path=/Users/normenhansen/Documents/Code-Import/avian-ios/avian/
+license.file=licenses.txt
+nbm.homepage=http://www.jmonkeyengine.org/
+nbm.module.author=Normen Hansen
+spec.version.base=3.0.0

+ 88 - 0
nbproject/project.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.apisupport.project</type>
+    <configuration>
+        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
+            <code-name-base>com.jme3.gde.ios</code-name-base>
+            <suite-component/>
+            <module-dependencies>
+                <dependency>
+                    <code-name-base>com.jme3.gde.core</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <release-version>1</release-version>
+                        <specification-version>3.0.0</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.netbeans.modules.projectapi</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <release-version>1</release-version>
+                        <specification-version>1.46.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <release-version>1</release-version>
+                        <specification-version>1.57.1.8</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.openide.dialogs</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <specification-version>7.25.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.openide.filesystems</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <specification-version>7.62.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.openide.loaders</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <specification-version>7.37.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.openide.nodes</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <specification-version>7.28.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.openide.util</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <specification-version>8.25.1</specification-version>
+                    </run-dependency>
+                </dependency>
+                <dependency>
+                    <code-name-base>org.openide.util.lookup</code-name-base>
+                    <build-prerequisite/>
+                    <compile-dependency/>
+                    <run-dependency>
+                        <specification-version>8.15.1</specification-version>
+                    </run-dependency>
+                </dependency>
+            </module-dependencies>
+            <public-packages/>
+        </data>
+    </configuration>
+</project>

+ 1 - 0
nbproject/suite.properties

@@ -0,0 +1 @@
+suite.dir=${basedir}/..

+ 6 - 0
src/com/jme3/gde/ios/Bundle.properties

@@ -0,0 +1,6 @@
+avian-data=avian-data
+OpenIDE-Module-Display-Category=jMonkeyEngine
+OpenIDE-Module-Long-Description=\
+    This pre-alpha version of iOS deployment requires MacOSX, XCode and the nightly version of jMonkeyEngine3 SDK RC2.
+OpenIDE-Module-Name=iOS Support
+OpenIDE-Module-Short-Description=Support for iOS distribution (pre-alpha)

+ 58 - 0
src/com/jme3/gde/ios/IosImportantFiles.java

@@ -0,0 +1,58 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+package com.jme3.gde.ios;
+
+import com.jme3.gde.core.importantfiles.ImportantFiles;
+import java.util.ArrayList;
+import org.netbeans.api.project.Project;
+import org.openide.filesystems.FileObject;
+import org.openide.loaders.DataObject;
+import org.openide.loaders.DataObjectNotFoundException;
+import org.openide.nodes.Node;
+import org.openide.util.Exceptions;
+
+/**
+ *
+ * @author normenhansen
+ */
[email protected](service = ImportantFiles.class)
+public class IosImportantFiles implements ImportantFiles {
+
+    @Override
+    public Node[] getNodes(Project project) {
+        ArrayList<Node> list = new ArrayList<Node>();
+        try {
+            FileObject mainAct = project.getProjectDirectory().getFileObject("resources/ios/ios.properties");
+            if (mainAct != null) {
+                Node node = DataObject.find(mainAct).getNodeDelegate();
+                node.setDisplayName("iOS Properties");
+                list.add(node);
+            }
+            FileObject manif = project.getProjectDirectory().getFileObject("ios/src/JmeAppHarness.java");
+            if (manif != null) {
+                Node node = DataObject.find(manif).getNodeDelegate();
+                node.setDisplayName("iOS Harness (java)");
+                list.add(node);
+            }
+            FileObject buildProp = project.getProjectDirectory().getFileObject("ios/src/JmeAppHarness.m");
+            if (buildProp != null) {
+                Node node = DataObject.find(buildProp).getNodeDelegate();
+                node.setDisplayName("iOS Harness (native)");
+                list.add(node);
+            }
+        } catch (DataObjectNotFoundException ex) {
+            Exceptions.printStackTrace(ex);
+        }
+        return list.toArray(new Node[list.size()]);
+    }
+
+    @Override
+    public boolean hasFiles(Project proj) {
+        if (proj.getProjectDirectory().getFileObject("resources/ios/ios.properties") != null) {
+            return true;
+        }
+        return false;
+    }
+}

+ 86 - 0
src/com/jme3/gde/ios/IosTool.java

@@ -0,0 +1,86 @@
+/*
+ *  Copyright (c) 2009-2012 jMonkeyEngine
+ *  All rights reserved.
+ * 
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are
+ *  met:
+ * 
+ *  * Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 
+ *  * Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 
+ *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ * 
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package com.jme3.gde.ios;
+
+import com.jme3.gde.core.util.ZipExtensionTool;
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+import org.openide.filesystems.FileObject;
+import org.openide.filesystems.FileUtil;
+
+/**
+ * Various tools for iOS deployment, discovers XCode and SDK locations, SDK
+ * versions and installs the avian resource files.
+ *
+ * @author normenhansen
+ */
+public class IosTool {
+
+    public static String getIosDeveloperRootName() {
+        FileObject devRoot = getIosDeveloperRoot();
+        if (devRoot != null) {
+            return devRoot.getPath();
+        }
+        return null;
+    }
+
+    public static FileObject getIosDeveloperRoot() {
+        File oldDevRoot = new File("/Developer");
+        File newDevRoot = new File("/Applications/Xcode.app/Contents/Developer");
+        if (newDevRoot.exists() && newDevRoot.isDirectory()) {
+            return FileUtil.toFileObject(newDevRoot);
+        } else if (oldDevRoot.exists() && oldDevRoot.isDirectory()) {
+            return FileUtil.toFileObject(oldDevRoot);
+        }
+        return null;
+    }
+
+    public static List<String> getIosSdkVersions(String target) {
+        ArrayList<String> sdkList = new ArrayList<String>();
+        FileObject devRoot = getIosDeveloperRoot();
+        if (devRoot == null) {
+            return sdkList;
+        }
+        FileObject sdkRoot = devRoot.getFileObject("Platforms/" + target + ".platform/Developer/SDKs");
+        FileObject[] sdks = sdkRoot.getChildren();
+        for (FileObject fileObject : sdks) {
+            if (fileObject.isFolder()) {
+                if (fileObject.getName().startsWith(target)) {
+                    sdkList.add(fileObject.getName().substring(target.length(), fileObject.getName().length()));
+                }
+            }
+        }
+        return sdkList;
+    }
+
+}

+ 1 - 0
src/com/jme3/gde/ios/avian-openjdk-mac.zip.REMOVED.git-id

@@ -0,0 +1 @@
+2910486dff74b3640e38df35c0be7fe4d08381a2

二进制
src/com/jme3/gde/ios/ios-data.zip


+ 206 - 0
src/com/jme3/gde/ios/ios-targets.xml

@@ -0,0 +1,206 @@
+    <target name="build-ios">
+        <antcall target="build-ios-arm" inheritall="false" inheritrefs="false"/>
+        <antcall target="build-ios-i386" inheritall="false" inheritrefs="false"/>
+        <echo>The needed native iOS libraries have been built, open the XCode project at ios/project to run the application on iOS.</echo>
+    </target>
+
+    <target name="build-ios-arm" depends="init, -init-platform-arm, -create-properties, -build-ios" description="Builds iOS libraries for device"/>
+    
+    <target name="build-ios-i386" depends="init, -init-platform-i386, -create-properties, -build-ios" description="Builds iOS libraries for simulator"/>
+
+    <target name="-init-platform-arm" description="Initialize for i386 platform">
+        <property name="ios.arch" value="arm"/>
+        <property file="resources/ios/ios.properties"/>
+    </target>
+    
+    <target name="-init-platform-i386" description="Initialize for arm platform">
+        <property name="ios.arch" value="i386"/>
+        <property file="resources/ios/ios.properties"/>
+    </target>
+    
+    <target name="-check-properties-platform" description="Checks the used platform (arm/i386)">
+        <taskdef resource="proguard/ant/task.properties"
+             classpath="${libs.pro-guard.classpath}"/>
+        <condition property="ios.do.arm">
+            <equals arg1="${ios.arch}" arg2="arm"/>
+        </condition>
+    </target>
+    
+    <target name="-create-properties-arm" if="ios.do.arm" description="Sets properties for arm build">
+        <property name="ios.target" value="iPhoneOS"/>
+        <property name="ios.arch.flag" value="${ios.arm.flag}"/>
+        
+        <property name="ios.avian.classpath" value="${ios.avian.arm.classpath}"/>
+        <property name="ios.avian.bootimage-generator" value="${ios.avian.arm.bootimage-generator}"/>
+        <property name="ios.avian.generator" value="${ios.avian.arm.generator}"/>
+        <property name="ios.avian.converter" value="${ios.avian.arm.converter}"/>
+        <property name="ios.avian.binary" value="${ios.avian.arm.binary}"/>
+    </target>
+
+    <target name="-create-properties-i386" unless="ios.do.arm" description="Sets properties for i386 build">
+        <property name="ios.target" value="iPhoneSimulator"/>
+        <property name="ios.arch.flag" value="${ios.i386.flag}"/>
+        
+        <property name="ios.avian.classpath" value="${ios.avian.i386.classpath}"/>
+        <property name="ios.avian.bootimage-generator" value="${ios.avian.i386.bootimage-generator}"/>
+        <property name="ios.avian.generator" value="${ios.avian.i386.generator}"/>
+        <property name="ios.avian.converter" value="${ios.avian.i386.converter}"/>
+        <property name="ios.avian.binary" value="${ios.avian.i386.binary}"/>
+    </target>
+    
+    <target name="-create-properties" depends="-check-properties-platform, -create-properties-arm, -create-properties-i386" description="Sets global properties based on platform">
+        <property name="ios.sdk.sysroot" value="${ios.dev.root}/Platforms/${ios.target}.platform/Developer/SDKs/${ios.target}${ios.version}.sdk"/>
+        <property name="ios.cc.compiler.path" value="${ios.dev.root}/Platforms/${ios.target}.platform/Developer/usr/bin/llvm-gcc-4.2"/>
+        <property name="ios.cc.flags" value="-isysroot ${ios.sdk.sysroot} -arch ${ios.arch.flag}"/>
+    </target>
+    
+    <target name="-build-ios" depends="-compile-ios-java,
+                                     -package-ios-classpath,
+                                     -make-ios-resourceimage,
+                                     -make-ios-bootimage,
+                                     -compile-ios-native,
+                                     -expand-ios-binary,
+                                     -create-ios-library-list"/>
+    
+    <target name="-compile-ios-java" description="Compiles the java classes for iOS">
+        <mkdir dir="${ios.build.classes.dir}"/>
+        <javac
+            destdir="${ios.build.classes.dir}"
+            srcdir="${ios.cc.source.dir}"
+            classpath="${run.classpath}:${libs.ios-base.classpath}"/>
+        <copy todir="${ios.build.classes.dir}">
+            <fileset dir="${ios.cc.source.dir}" excludes="${build.classes.excludes},${excludes},**/*.c,**/*.m" includes="${includes}"/>
+        </copy>
+    </target>
+    
+    <target name="-check-classpath-uptodate" description="Checks if the iOS classpath needs to be rebuilt">
+        <!--TODO: not very safe check for changes-->
+        <uptodate property="ios.classpath.uptodate" targetfile="${ios.classpath.checkfile}">
+            <srcfiles dir="${build.classes.dir}" includes="**/*.class"/>
+            <srcfiles file="${build.dir}/${assets.jar.name}"/>
+            <srcfiles dir="${ios.cc.source.dir}" includes="**/*.java"/>
+        </uptodate>
+    </target>
+    
+    <target name="-package-ios-classpath" unless="ios.classpath.uptodate" depends="-check-classpath-uptodate" description="Packages the iOS classpath using proguard">
+        <mkdir dir="${ios.build.classes.dir}"/>
+        <echo>Packaging iOS classpath and resources</echo>
+        <!--TODO: use internal references instead of dist/lib output-->
+        <pathconvert pathsep="${path.separator}" property="ios.avian.project.classpath">
+            <path>
+                <fileset dir="${dist.dir}/lib" 
+                        includes="*.jar"
+                        excludes="${ios.jar.excludes}"/>
+                <fileset file="${dist.jar}"/>
+            </path>
+        </pathconvert>
+        <proguard>
+            -injars  ${libs.ios-base.classpath}:${ios.avian.classpath}:${ios.avian.project.classpath}(!META-INF/MANIFEST.MF)
+            -outjars ${ios.build.classes.dir}(**.class)
+            -outjars ${ios.build.resources.jar}
+            -include ${ios.proguard.vm.path}
+            -include ${ios.proguard.openjdk.path}
+            -dontusemixedcaseclassnames
+            -dontwarn
+            -dontnote
+            -dontobfuscate
+            -dontoptimize
+            -allowaccessmodification
+            -dontpreverify
+            ${ios.proguard.options}
+        </proguard>
+        <unzip dest="${ios.build.classes.dir}" overwrite="true">
+            <fileset dir="${ios.build.classes.dir}" includes="**/*.jar"/>
+        </unzip>
+        <delete quiet="true">
+            <fileset dir="${ios.build.classes.dir}" includes="**/*.jar"/>
+        </delete>
+        <delete failonerror="false">
+            <fileset dir="${ios.build.classes.dir}" includes="${ios.classpath.excludes}"/>
+        </delete>
+        <touch file="${ios.classpath.checkfile}" verbose="false"/>
+    </target>
+    
+    <target name="-check-images-uptodate" description="Checks if the binary images for iOS are up to date">
+        <uptodate property="ios.images.uptodate" targetfile="${ios.images.checkfile}">
+            <srcfiles dir="${ios.build.classes.dir}" includes="**/*.class"/>
+            <srcfiles file="${ios.build.resources.jar}"/>
+        </uptodate>
+    </target>
+    
+    <target name="-make-ios-resourceimage" unless="ios.images.uptodate" depends="-check-images-uptodate" description="Creates the iOS resources image">
+        <mkdir dir="${ios.build.libs.dir}"/>
+        <delete file="${ios.build.resources.o}"/>
+        <echo>Creating iOS resources object file for ${ios.arch}</echo>
+        <exec executable="${ios.avian.converter}" failonerror="true">
+            <arg line="${ios.build.resources.jar}"/>
+            <arg line="${ios.build.resources.o}"/>
+            <arg line="_binary_resources_jar_start _binary_resources_jar_end"/>
+            <arg line="${ios.platform}"/>
+            <arg line="${ios.arch}"/>
+            <arg line="1"/>
+        </exec>
+    </target>
+    
+    <target name="-make-ios-bootimage" unless="ios.images.uptodate" depends="-check-images-uptodate" description="Creates the iOS boot image and code image">
+        <mkdir dir="${ios.build.libs.dir}"/>
+        <delete file="${ios.build.bootimage.o}"/>
+        <delete file="${ios.build.codeimage.o}"/>
+        <echo>Creating iOS bootimage and codeimage for ${ios.arch}</echo>
+        <exec executable="${ios.avian.bootimage-generator}" failonerror="true">
+            <arg line="-cp ${ios.build.classes.dir}"/>
+            <arg line="-bootimage ${ios.build.bootimage.o}"/>
+            <arg line="-codeimage ${ios.build.codeimage.o}"/>
+        </exec>
+        <touch file="${ios.images.checkfile}" verbose="false"/>
+    </target>
+    
+    <target name="-compile-ios-native" description="Compiles the native classes from ios/src for the iOS project">
+        <mkdir dir="${ios.build.libs.dir}"/>
+        <apply executable="${ios.cc.compiler.path}" failonerror="true" dir="${ios.build.libs.dir}">
+            <arg value="-c"/>
+            <fileset dir="${ios.cc.source.dir}">
+                <include name="*.c"/>
+                <include name="*.m"/>
+                <modified update="true"
+                        seldirs="true"
+                        cache="propertyfile"
+                        algorithm="digest"
+                        comparator="equal">
+                    <param name="cache.cachefile"     value="${ios.cc.cache}"/>
+                    <param name="algorithm.algorithm" value="MD5"/>
+                </modified>
+            </fileset>
+            <arg line="${ios.cc.flags} ${ios.cc.cflags}"/>
+        </apply>
+    </target>
+
+    <target name="-expand-ios-binary" unless="ios.images.uptodate" description="Expands libavian.a to .o files for the iOS project">
+        <mkdir dir="${ios.build.libs.dir}"/>
+        <echo>Expanding libavian.h for ${ios.arch}</echo>
+        <exec executable="ar" dir="${ios.build.libs.dir}">
+            <arg line="x"/>
+            <arg line="${ios.avian.binary}"/>
+        </exec>
+        <delete file="${ios.build.libs.dir}/__.SYMDEF" failonerror="false" quiet="true"/>
+    </target>
+    
+    <target name="-check-libs-uptodate" description="Checks if the .o library list is up to date">
+        <uptodate property="ios.libs.uptodate" targetfile="${ios.build.libs.file}">
+            <srcfiles dir="${ios.build.libs.dir}" includes="**/*.o"/>
+        </uptodate>
+    </target>
+    
+    <target name="-create-ios-library-list" unless="ios.libs.uptodate" depends="-check-libs-uptodate" description="Creates the .o library list">
+        <echo>Create library list for ${ios.arch}</echo>
+        <pathconvert property="ios.build.arch.dir.resolved">
+            <path path="${basedir}"/>
+        </pathconvert>
+        <fileset id="ios.build.libs.fileset" dir="${ios.build.libs.dir}">
+            <include name="*.o"/>
+        </fileset>
+        <pathconvert pathsep="${line.separator}" property="ios.build.libs.list" refid="ios.build.libs.fileset">
+            <map from="${ios.build.arch.dir.resolved}/" to="../../"/>
+        </pathconvert>
+        <echo file="${ios.build.libs.file}" force="true">${ios.build.libs.list}</echo>
+    </target>

+ 4 - 0
src/com/jme3/gde/ios/layer.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
+<filesystem>
+</filesystem>

+ 9 - 0
src/com/jme3/gde/ios/panel/Bundle.properties

@@ -0,0 +1,9 @@
+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+LBL_Category_iOS=iOS
+IosCustomizerPanel.jCheckBox1.text=Enable iOS deployment
+IosCustomizerPanel.jLabel1.text=iOS SDK Version
+IosCustomizerPanel.jCheckBox2.text=delete ios folder when disabling deployment
+IosCustomizerPanel.jTextField1.text=com.mycompany.mygame
+IosCustomizerPanel.jLabel2.text=App ID
+IosCustomizerPanel.jTextArea1.text=Note that iOS deployment only works on MacOSX with XCode installed!\n\nWhen building your project the native binaries for iOS will be created and imported in a normal XCode project. After building the project, open the XCode project at ios/project/jme-ios.xcodeproj to configure, run, deploy or send the application to the App Store.\n\nYou can call native Obj-C code by using or adding .java and .m source files located at ios/src.

+ 179 - 0
src/com/jme3/gde/ios/panel/IosCompositeProvider.java

@@ -0,0 +1,179 @@
+/*
+ *  Copyright (c) 2009-2012 jMonkeyEngine
+ *  All rights reserved.
+ * 
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are
+ *  met:
+ * 
+ *  * Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 
+ *  * Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 
+ *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ * 
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package com.jme3.gde.ios.panel;
+
+import com.jme3.gde.ios.IosTool;
+import com.jme3.gde.core.j2seproject.ProjectExtensionManager;
+import com.jme3.gde.core.j2seproject.ProjectExtensionProperties;
+import com.jme3.gde.core.util.ZipExtensionTool;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.io.IOException;
+import javax.swing.JComponent;
+
+import org.netbeans.api.project.Project;
+import org.netbeans.spi.project.ui.support.ProjectCustomizer;
+import org.openide.DialogDisplayer;
+import org.openide.NotifyDescriptor;
+import org.openide.filesystems.FileObject;
+import org.openide.util.Exceptions;
+import org.openide.util.Lookup;
+import org.openide.util.NbBundle;
+
+/**
+ *
+ * @author normenhansen
+ */
[email protected](projectType = "org-netbeans-modules-java-j2seproject", category = "Application", position = 410)
+public class IosCompositeProvider implements ProjectCustomizer.CompositeCategoryProvider {
+
+    private static final String CAT_MOBILE = "iOSDeployment"; // NOI18N
+    private static ProjectExtensionProperties jwsProps = null;
+    private String[] keyList = new String[]{
+        "application.title",
+        "main.class",
+        "ios.enabled",
+        "ios.version"
+    };
+    private String[] privateKeyList = new String[]{
+        "ios.avian.path",
+        "ios.dev.root"
+    };
+
+    public IosCompositeProvider() {
+    }
+
+    @Override
+    public ProjectCustomizer.Category createCategory(Lookup context) {
+        return ProjectCustomizer.Category.create(CAT_MOBILE,
+                NbBundle.getMessage(IosCompositeProvider.class, "LBL_Category_iOS"), null);
+    }
+
+    @Override
+    public JComponent createComponent(ProjectCustomizer.Category category, Lookup context) {
+        jwsProps = new ProjectExtensionProperties(context.lookup(Project.class), keyList);
+        IosCustomizerPanel panel = new IosCustomizerPanel(jwsProps);
+        category.setStoreListener(new SavePropsListener(jwsProps, context.lookup(Project.class)));
+        category.setOkButtonListener(panel);
+        return panel;
+    }
+
+    private class SavePropsListener implements ActionListener {
+
+        private String extensionName = "ios";
+        private String extensionVersion = "v0.1";
+        private String avianVersion = "v0.2";
+        private String[] extensionDependencies = new String[]{"jar", "build-ios"};
+        private ProjectExtensionManager manager = new ProjectExtensionManager(extensionName, extensionVersion, extensionDependencies);
+        private ProjectExtensionProperties properties;
+        private Project project;
+
+        public SavePropsListener(ProjectExtensionProperties props, Project project) {
+            this.properties = props;
+            this.project = project;
+            manager.setAntTaskLibrary("ios-base");
+        }
+
+        public void actionPerformed(ActionEvent e) {
+            if (IosTool.getIosSdkVersions("iPhoneOS").isEmpty()) {
+                showError("No XCode SDK could be found!\nPlease install XCode before proceeding.", null);
+                return;
+            }
+            ProjectExtensionProperties privateProps = new ProjectExtensionProperties(project, privateKeyList, true);
+            manager.setDataZip("nbres:/com/jme3/gde/ios/ios-data.zip");
+            manager.setAntTaskLibrary("pro-guard");
+            ZipExtensionTool zipExt = new ZipExtensionTool(IosTool.class.getPackage().getName(), "avian-openjdk", avianVersion);
+            //zipExt.SUFFIX_LINUX = "mac";
+            //zipExt.SUFFIX_WIN = "mac";
+
+            if ("true".equals(properties.getProperty("ios.enabled"))) {
+                zipExt.install(true);
+                privateProps.setProperty("ios.avian.path", zipExt.getPath());
+                privateProps.setProperty("ios.dev.root", IosTool.getIosDeveloperRootName());
+                manager.loadTargets("nbres:/com/jme3/gde/ios/ios-targets.xml");
+                manager.checkExtension(project);
+                //manager.addRunConfiguration(project, "run-android", "Android Device", "run-android", "run-android", "clean clean-android");
+                FileObject resFolder = project.getProjectDirectory().getFileObject("resources/ios");
+                FileObject projFolder = resFolder.getFileObject("templates/project");
+                FileObject srcFolder = resFolder.getFileObject("templates/src");
+                FileObject propsFile = resFolder.getFileObject("ios.properties");
+                FileObject iosFolder = project.getProjectDirectory().getFileObject("ios");
+                if (iosFolder == null) {
+                    try {
+                        iosFolder = project.getProjectDirectory().createFolder("ios");
+                        projFolder.copy(iosFolder, projFolder.getName(), null);
+                        srcFolder.copy(iosFolder, srcFolder.getName(), null);
+                        propsFile.copy(iosFolder, propsFile.getName(), propsFile.getExt());
+                    } catch (IOException ex) {
+                        showError("Error creating iOS folders", ex);
+                        return;
+                    }
+                }
+            } else {
+                manager.removeExtension(project);
+                if ("true".equals(properties.getProperty("delete.folder"))) {
+                    FileObject iosFolder = project.getProjectDirectory().getFileObject("ios");
+                    if (iosFolder != null) {
+                        try {
+                            iosFolder.delete();
+                        } catch (IOException ex) {
+                            showError("Error deleting iosfolder", ex);
+                            Exceptions.printStackTrace(ex);
+                        }
+                    }
+                }
+                project.getProjectDirectory().refresh();
+            }
+            try {
+                properties.store();
+                privateProps.store();
+            } catch (IOException ioe) {
+                showError("Error storing properties", ioe);
+                Exceptions.printStackTrace(ioe);
+            }
+        }
+    }
+
+    private void showError(String message, Exception ex) {
+        String mesg = message;
+        if (ex != null) {
+            Exceptions.printStackTrace(ex);
+            mesg = mesg + "\n" + ex.getMessage();
+        }
+        NotifyDescriptor.Confirmation msg = new NotifyDescriptor.Confirmation(
+                mesg,
+                NotifyDescriptor.DEFAULT_OPTION,
+                NotifyDescriptor.ERROR_MESSAGE);
+        DialogDisplayer.getDefault().notify(msg);
+
+    }
+}

+ 143 - 0
src/com/jme3/gde/ios/panel/IosCustomizerPanel.form

@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+  <AuxValues>
+    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
+    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
+    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
+    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
+    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
+    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
+  </AuxValues>
+
+  <Layout>
+    <DimensionLayout dim="0">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="0" attributes="0">
+              <EmptySpace max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="0" attributes="0">
+                  <Component id="jScrollPane1" max="32767" attributes="0"/>
+                  <Component id="jCheckBox1" max="32767" attributes="0"/>
+                  <Group type="102" alignment="0" attributes="0">
+                      <Group type="103" groupAlignment="0" attributes="0">
+                          <Component id="jLabel1" min="-2" pref="113" max="-2" attributes="0"/>
+                          <Component id="jLabel2" min="-2" pref="75" max="-2" attributes="0"/>
+                      </Group>
+                      <EmptySpace max="-2" attributes="0"/>
+                      <Group type="103" groupAlignment="0" attributes="0">
+                          <Group type="102" attributes="0">
+                              <Component id="jComboBox1" min="-2" pref="117" max="-2" attributes="0"/>
+                              <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
+                          </Group>
+                          <Component id="jTextField1" max="32767" attributes="0"/>
+                      </Group>
+                  </Group>
+                  <Component id="jCheckBox2" alignment="0" pref="500" max="32767" attributes="0"/>
+              </Group>
+              <EmptySpace max="-2" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+    <DimensionLayout dim="1">
+      <Group type="103" groupAlignment="0" attributes="0">
+          <Group type="102" alignment="1" attributes="0">
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="jCheckBox1" min="-2" max="-2" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="jCheckBox2" min="-2" max="-2" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="jComboBox1" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
+              </Group>
+              <EmptySpace type="unrelated" max="-2" attributes="0"/>
+              <Group type="103" groupAlignment="3" attributes="0">
+                  <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
+                  <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/>
+              </Group>
+              <EmptySpace max="-2" attributes="0"/>
+              <Component id="jScrollPane1" pref="171" max="32767" attributes="0"/>
+              <EmptySpace max="-2" attributes="0"/>
+          </Group>
+      </Group>
+    </DimensionLayout>
+  </Layout>
+  <SubComponents>
+    <Component class="javax.swing.JCheckBox" name="jCheckBox1">
+      <Properties>
+        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jCheckBox1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+        </Property>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JComboBox" name="jComboBox1">
+      <Properties>
+        <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
+          <StringArray count="4">
+            <StringItem index="0" value="Item 1"/>
+            <StringItem index="1" value="Item 2"/>
+            <StringItem index="2" value="Item 3"/>
+            <StringItem index="3" value="Item 4"/>
+          </StringArray>
+        </Property>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JLabel" name="jLabel1">
+      <Properties>
+        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+        </Property>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JCheckBox" name="jCheckBox2">
+      <Properties>
+        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jCheckBox2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+        </Property>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JTextField" name="jTextField1">
+      <Properties>
+        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jTextField1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+        </Property>
+      </Properties>
+    </Component>
+    <Component class="javax.swing.JLabel" name="jLabel2">
+      <Properties>
+        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+          <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jLabel2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+        </Property>
+      </Properties>
+    </Component>
+    <Container class="javax.swing.JScrollPane" name="jScrollPane1">
+      <Properties>
+        <Property name="enabled" type="boolean" value="false"/>
+      </Properties>
+      <AuxValues>
+        <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
+      </AuxValues>
+
+      <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
+      <SubComponents>
+        <Component class="javax.swing.JTextArea" name="jTextArea1">
+          <Properties>
+            <Property name="columns" type="int" value="20"/>
+            <Property name="lineWrap" type="boolean" value="true"/>
+            <Property name="rows" type="int" value="5"/>
+            <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+              <ResourceString bundle="com/jme3/gde/ios/panel/Bundle.properties" key="IosCustomizerPanel.jTextArea1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+            </Property>
+            <Property name="wrapStyleWord" type="boolean" value="true"/>
+            <Property name="disabledTextColor" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
+              <Color blue="0" green="0" red="0" type="rgb"/>
+            </Property>
+          </Properties>
+        </Component>
+      </SubComponents>
+    </Container>
+  </SubComponents>
+</Form>

+ 193 - 0
src/com/jme3/gde/ios/panel/IosCustomizerPanel.java

@@ -0,0 +1,193 @@
+/*
+ *  Copyright (c) 2009-2012 jMonkeyEngine
+ *  All rights reserved.
+ * 
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are
+ *  met:
+ * 
+ *  * Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 
+ *  * Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 
+ *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ * 
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ *  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ *  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * LwjglAppletCustomizerPanel.java
+ *
+ * Created on 11.11.2010, 16:56:53
+ */
+package com.jme3.gde.ios.panel;
+
+import com.jme3.gde.core.j2seproject.ProjectExtensionProperties;
+import com.jme3.gde.ios.IosTool;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.util.List;
+import org.openide.util.HelpCtx;
+
+/**
+ *
+ * @author normenhansen
+ */
+public class IosCustomizerPanel extends javax.swing.JPanel implements ActionListener {
+
+    private ProjectExtensionProperties properties;
+
+    /**
+     * Creates new form LwjglAppletCustomizerPanel
+     */
+    public IosCustomizerPanel(ProjectExtensionProperties properties) {
+        this.properties = properties;
+        initComponents();
+        HelpCtx.setHelpIDString(this, "jme3.ios");
+        jComboBox1.removeAllItems();
+        List<String> versions = IosTool.getIosSdkVersions("iPhoneOS");
+        for (String string : versions) {
+            jComboBox1.addItem(string);
+        }
+        loadProperties();
+    }
+
+    private void loadProperties() {
+        boolean enabled = "true".equals(properties.getProperty("ios.enabled"));
+        String version = properties.getProperty("ios.version");
+        if (version != null) {
+            setSelected(version);
+        }
+        jCheckBox1.setSelected(enabled);
+    }
+
+    private void saveProperties() {
+        //TODO: check properties
+        properties.setProperty("ios.enabled", "" + jCheckBox1.isSelected());
+        String version = (String) jComboBox1.getSelectedItem();
+        properties.setProperty("ios.version", version);
+        properties.setProperty("delete.folder", "" + jCheckBox2.isSelected());
+    }
+
+    private void setSelected(String name) {
+        for (int i = 0; i < jComboBox1.getItemCount(); i++) {
+            String target = (String) jComboBox1.getItemAt(i);
+            if (target.equals(name)) {
+                jComboBox1.setSelectedIndex(i);
+                return;
+            }
+        }
+    }
+
+    public void actionPerformed(ActionEvent e) {
+        saveProperties();
+    }
+
+    /**
+     * This method is called from within the constructor to initialize the form.
+     * WARNING: Do NOT modify this code. The content of this method is always
+     * regenerated by the Form Editor.
+     */
+    @SuppressWarnings("unchecked")
+    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
+    private void initComponents() {
+
+        jCheckBox1 = new javax.swing.JCheckBox();
+        jComboBox1 = new javax.swing.JComboBox();
+        jLabel1 = new javax.swing.JLabel();
+        jCheckBox2 = new javax.swing.JCheckBox();
+        jTextField1 = new javax.swing.JTextField();
+        jLabel2 = new javax.swing.JLabel();
+        jScrollPane1 = new javax.swing.JScrollPane();
+        jTextArea1 = new javax.swing.JTextArea();
+
+        jCheckBox1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jCheckBox1.text")); // NOI18N
+
+        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
+
+        jLabel1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jLabel1.text")); // NOI18N
+
+        jCheckBox2.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jCheckBox2.text")); // NOI18N
+
+        jTextField1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jTextField1.text")); // NOI18N
+
+        jLabel2.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jLabel2.text")); // NOI18N
+
+        jScrollPane1.setEnabled(false);
+
+        jTextArea1.setColumns(20);
+        jTextArea1.setLineWrap(true);
+        jTextArea1.setRows(5);
+        jTextArea1.setText(org.openide.util.NbBundle.getMessage(IosCustomizerPanel.class, "IosCustomizerPanel.jTextArea1.text")); // NOI18N
+        jTextArea1.setWrapStyleWord(true);
+        jTextArea1.setDisabledTextColor(new java.awt.Color(0, 0, 0));
+        jScrollPane1.setViewportView(jTextArea1);
+
+        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
+        this.setLayout(layout);
+        layout.setHorizontalGroup(
+            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(layout.createSequentialGroup()
+                .addContainerGap()
+                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                    .addComponent(jScrollPane1)
+                    .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+                    .addGroup(layout.createSequentialGroup()
+                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
+                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
+                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                            .addGroup(layout.createSequentialGroup()
+                                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
+                                .addGap(0, 0, Short.MAX_VALUE))
+                            .addComponent(jTextField1)))
+                    .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE))
+                .addContainerGap())
+        );
+        layout.setVerticalGroup(
+            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
+                .addContainerGap()
+                .addComponent(jCheckBox1)
+                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addComponent(jCheckBox2)
+                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+                    .addComponent(jLabel1))
+                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(jLabel2)
+                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
+                .addContainerGap())
+        );
+    }// </editor-fold>//GEN-END:initComponents
+    // Variables declaration - do not modify//GEN-BEGIN:variables
+    private javax.swing.JCheckBox jCheckBox1;
+    private javax.swing.JCheckBox jCheckBox2;
+    private javax.swing.JComboBox jComboBox1;
+    private javax.swing.JLabel jLabel1;
+    private javax.swing.JLabel jLabel2;
+    private javax.swing.JScrollPane jScrollPane1;
+    private javax.swing.JTextArea jTextArea1;
+    private javax.swing.JTextField jTextField1;
+    // End of variables declaration//GEN-END:variables
+}