diff options
| author | Egor <egor.yusov@gmail.com> | 2018-02-16 07:56:40 +0000 |
|---|---|---|
| committer | Egor <egor.yusov@gmail.com> | 2018-02-16 07:56:40 +0000 |
| commit | cd727c34f22d3ce63d0b130f300984649e34ec2c (patch) | |
| tree | a7965579ab6f611416d635cab7e5e3c03994dd4a /Tests/Android/TestApp | |
| parent | Unified Android build (diff) | |
| download | DiligentEngine-cd727c34f22d3ce63d0b130f300984649e34ec2c.tar.gz DiligentEngine-cd727c34f22d3ce63d0b130f300984649e34ec2c.zip | |
Enabled test app on Android
Diffstat (limited to 'Tests/Android/TestApp')
5 files changed, 112 insertions, 0 deletions
diff --git a/Tests/Android/TestApp/build.gradle b/Tests/Android/TestApp/build.gradle new file mode 100644 index 0000000..41ffac1 --- /dev/null +++ b/Tests/Android/TestApp/build.gradle @@ -0,0 +1,32 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion=27 + + defaultConfig { + applicationId = 'com.diligentengine.testapp' + minSdkVersion 21 + targetSdkVersion 25 + } + buildTypes { + release { + minifyEnabled = false + proguardFiles getDefaultProguardFile('proguard-android.txt'), + 'proguard-rules.pro' + } + } + sourceSets { + main { + assets.srcDirs = ['../../TestApp/assets'] + } + } +} + +buildDir '../build/TestApp' + +dependencies { + implementation project(":Common") + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'com.android.support:appcompat-v7:25.4.0' + implementation 'com.android.support.constraint:constraint-layout:1.0.1' +} 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> |
