package {{package}};

import clojure.lang.RT;
import clojure.lang.Symbol;

import com.badlogic.gdx.backends.iosrobovm.IOSApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration;
import com.badlogic.gdx.Game;

import org.robovm.cocoatouch.foundation.NSAutoreleasePool;
import org.robovm.cocoatouch.uikit.UIApplication;

public class {{ios-class-name}} extends IOSApplication.Delegate {
	protected IOSApplication createApplication() {
		IOSApplicationConfiguration config = new IOSApplicationConfiguration();
          RT.var("clojure.core", "require").invoke(Symbol.intern("{{namespace}}"));
		try {
			Game game = (Game) RT.var("{{namespace}}", "{{app-name}}").deref();
			return new IOSApplication(game, config);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	public static void main(String[] argv) {
		NSAutoreleasePool pool = new NSAutoreleasePool();
		UIApplication.main(argv, null, {{ios-class-name}}.class);
		pool.drain();
	}
}

@@ -96,41 +96,9 @@
 gdx.
-backends.iosrobovm.IOSApplication
+*
 ;%0Aim
@@ -142,65 +142,9 @@
 ovm.
-IOSApplicationConfiguration;%0Aimport com.badlogic.gdx.Game
+*
 ;%0A%0Ai
@@ -160,26 +160,21 @@
 .robovm.
-cocoatouch
+apple
 .foundat
@@ -177,33 +177,17 @@
 ndation.
-NSAutoreleasePool
+*
 ;%0Aimport
@@ -202,38 +202,21 @@
 ovm.
-cocoatouch.uikit.UIApplication
+apple.uikit.*
 ;%0A%0Ap
@@ -406,18 +406,10 @@
 ();%0A
-          
+%09%09
 RT.v
@@ -839,13 +839,13 @@
 ool.
-drain
+close
 ();%0A

Update template for RoboVM 0.0.11