Fix support for Android

This commit is contained in:
Joshua Granick
2014-09-23 19:00:57 -07:00
parent d0f3f46bae
commit 921466d6e1
2 changed files with 13 additions and 12 deletions

View File

@@ -8,25 +8,22 @@
<ndll name="regexp" haxelib="hxcpp" if="cpp" />
<ndll name="zlib" haxelib="hxcpp" if="cpp" />
<ndll name="openal" register="false" if="android" />
<ndll name="openal" dir="legacy/ndll" register="false" if="android" />
<ndll name="lime" dir="legacy/ndll" />
<ndll name="libfreetype" register="false" if="emscripten" />
<ndll name="libfreetype" dir="legacy/ndll" register="false" if="emscripten" />
<ndll name="curl_ssl" register="false" if="ios" />
<ndll name="png" register="false" if="ios" />
<ndll name="jpeg" register="false" if="ios" />
<ndll name="freetype" register="false" if="ios" />
<ndll name="ogg" register="false" if="ios" />
<ndll name="vorbis" register="false" if="ios" />
<ndll name="curl_ssl" dir="legacy/ndll" register="false" if="ios" />
<ndll name="png" dir="legacy/ndll" register="false" if="ios" />
<ndll name="jpeg" dir="legacy/ndll" register="false" if="ios" />
<ndll name="freetype" dir="legacy/ndll" register="false" if="ios" />
<ndll name="ogg" dir="legacy/ndll" register="false" if="ios" />
<ndll name="vorbis" dir="legacy/ndll" register="false" if="ios" />
<dependency name="extension-api" path="dependencies/extension-api" if="android" />
<architecture name="armv7" if="android" />
<include haxelib="lime-tools" unless="openfl" />
<haxelib name="lime-tools" if="setup" />
<haxelib name="nme" if="dev setup" />
<haxelib name="nme-dev" if="dev setup" />

View File

@@ -206,7 +206,11 @@ class MainView extends GLSurfaceView {
setRenderMode (GLSurfaceView.RENDERMODE_WHEN_DIRTY);
::if (ANDROID_TARGET_SDK_VERSION > 11)::
setPreserveEGLContextOnPause(true);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
setPreserveEGLContextOnPause (true);
}
::end::
}