summaryrefslogtreecommitdiffstats
path: root/Tests/Android/TestApp/src
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2018-02-16 07:56:40 +0000
committerEgor <egor.yusov@gmail.com>2018-02-16 07:56:40 +0000
commitcd727c34f22d3ce63d0b130f300984649e34ec2c (patch)
treea7965579ab6f611416d635cab7e5e3c03994dd4a /Tests/Android/TestApp/src
parentUnified Android build (diff)
downloadDiligentEngine-cd727c34f22d3ce63d0b130f300984649e34ec2c.tar.gz
DiligentEngine-cd727c34f22d3ce63d0b130f300984649e34ec2c.zip
Enabled test app on Android
Diffstat (limited to 'Tests/Android/TestApp/src')
-rw-r--r--Tests/Android/TestApp/src/main/AndroidManifest.xml31
-rw-r--r--Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestApp.java22
-rw-r--r--Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestAppNativeActivity.java22
-rw-r--r--Tests/Android/TestApp/src/main/res/values/strings.xml5
4 files changed, 80 insertions, 0 deletions
diff --git a/Tests/Android/TestApp/src/main/AndroidManifest.xml b/Tests/Android/TestApp/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..4475bee
--- /dev/null
+++ b/Tests/Android/TestApp/src/main/AndroidManifest.xml
@@ -0,0 +1,31 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+package="com.diligentengine.testapp"
+android:versionCode="1"
+android:versionName="1.0" >
+
+<uses-feature android:glEsVersion="0x00030000" android:required="true"></uses-feature>
+<application
+ android:allowBackup="false"
+ android:fullBackupContent="false"
+ android:supportsRtl="true"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/app_name"
+ android:theme="@style/AppTheme"
+ android:name="com.diligentengine.testapp.TestApp"
+ >
+
+ <!-- Our activity is the built-in NativeActivity framework class.
+ This will take care of integrating with our NDK code. -->
+ <activity android:name="com.diligentengine.testapp.TestAppNativeActivity"
+ 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="TestApp" />
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+</application>
+</manifest>
diff --git a/Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestApp.java b/Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestApp.java
new file mode 100644
index 0000000..4da060e
--- /dev/null
+++ b/Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestApp.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.diligentengine.testapp;
+import com.diligentengine.android.common.DiligentApplicationBase;
+
+public class TestApp extends DiligentApplicationBase {
+
+}
diff --git a/Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestAppNativeActivity.java b/Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestAppNativeActivity.java
new file mode 100644
index 0000000..f29f0eb
--- /dev/null
+++ b/Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestAppNativeActivity.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.diligentengine.testapp;
+import com.diligentengine.android.common.NativeActivityBase;
+
+public class TestAppNativeActivity extends NativeActivityBase {
+
+}
diff --git a/Tests/Android/TestApp/src/main/res/values/strings.xml b/Tests/Android/TestApp/src/main/res/values/strings.xml
new file mode 100644
index 0000000..9c20773
--- /dev/null
+++ b/Tests/Android/TestApp/src/main/res/values/strings.xml
@@ -0,0 +1,5 @@
+<resources>
+
+ <string name="app_name">Test Application</string>
+
+</resources>