Added missing Android files
authorJerome St-Louis <jerome@ecere.com>
Fri, 30 Nov 2012 22:34:15 +0000 (17:34 -0500)
committerJerome St-Louis <jerome@ecere.com>
Fri, 30 Nov 2012 22:34:15 +0000 (17:34 -0500)
android/AndroidManifest.xml [new file with mode: 0644]
android/res/drawable-xhdpi/icon.png [new file with mode: 0644]
android/res/drawable/icon.png [new file with mode: 0644]
android/res/values/strings.xml [new file with mode: 0644]
chess.epj

diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..95da552
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- BEGIN_INCLUDE(manifest) -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+        package="com.ecere.Chess"
+        android:versionCode="1"
+        android:versionName="1.0">
+
+    <!-- This is the platform API where NativeActivity was introduced. -->
+    <uses-sdk android:minSdkVersion="9" />
+    <uses-permission android:name="android.permission.INTERNET" />
+
+    <!-- This .apk has no Java code itself, so set hasCode to false. -->
+    <application android:label="@string/app_name" android:hasCode="false" android:icon="@drawable/icon">
+
+        <!-- Our activity is the built-in NativeActivity framework class. This will take care of integrating with our NDK code. -->
+        <activity android:name="android.app.NativeActivity"
+                  android:label="@string/app_name"
+                  android:configChanges="orientation|keyboardHidden">
+            <!-- Tell NativeActivity the name of our .so -->
+            <meta-data android:name="android.app.lib_name"
+                       android:value="ecere" />
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity>
+    </application>
+
+</manifest> 
+<!-- END_INCLUDE(manifest) -->
diff --git a/android/res/drawable-xhdpi/icon.png b/android/res/drawable-xhdpi/icon.png
new file mode 100644 (file)
index 0000000..174a628
Binary files /dev/null and b/android/res/drawable-xhdpi/icon.png differ
diff --git a/android/res/drawable/icon.png b/android/res/drawable/icon.png
new file mode 100644 (file)
index 0000000..9c45155
Binary files /dev/null and b/android/res/drawable/icon.png differ
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
new file mode 100644 (file)
index 0000000..2504dd8
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="app_name">Ecere Chess</string>
+</resources>
index 111a84b..eababf9 100644 (file)
--- a/chess.epj
+++ b/chess.epj
@@ -39,8 +39,8 @@
             "PostbuildCommands" : [
                "$(call mkdirq,$(OBJ)apk/lib/x86)",
                "$(call mkdirq,$(OBJ)apk/lib/armeabi)",
-               "$(call cpq,/sdk/ecere/obj/android.linux.$(COMPILER)/libecere.so,$(OBJ)apk/lib/x86)",
-               "$(call cpq,$(TARGET),$(OBJ)apk/lib/x86)",
+               "$(call cpq,/sdk/ecere/obj/android.linux.$(COMPILER)/libecere.so,$(OBJ)apk/lib/armeabi)",
+               "$(call cpq,$(TARGET),$(OBJ)apk/lib/armeabi)",
                "aapt package -v -f -m -M android/AndroidManifest.xml -F $(OBJ)$(MODULE)-unsigned.apk -I C:/android-sdk/platforms/android-16/android.jar -S android/res $(OBJ)apk",
                "jarsigner -storepass mypassword -sigalg MD5withRSA -digestalg SHA1 $(OBJ)$(MODULE)-unsigned.apk mykey -signedjar $(OBJ)$(MODULE).apk",
                "adb uninstall com.ecere.$(MODULE)",