From cd727c34f22d3ce63d0b130f300984649e34ec2c Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 15 Feb 2018 23:56:40 -0800 Subject: Enabled test app on Android --- Tests/Android/TestApp/build.gradle | 32 ++++++++++++++++++++++ Tests/Android/TestApp/src/main/AndroidManifest.xml | 31 +++++++++++++++++++++ .../java/com/diligentengine/testapp/TestApp.java | 22 +++++++++++++++ .../testapp/TestAppNativeActivity.java | 22 +++++++++++++++ .../TestApp/src/main/res/values/strings.xml | 5 ++++ 5 files changed, 112 insertions(+) create mode 100644 Tests/Android/TestApp/build.gradle create mode 100644 Tests/Android/TestApp/src/main/AndroidManifest.xml create mode 100644 Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestApp.java create mode 100644 Tests/Android/TestApp/src/main/java/com/diligentengine/testapp/TestAppNativeActivity.java create mode 100644 Tests/Android/TestApp/src/main/res/values/strings.xml (limited to 'Tests/Android/TestApp') 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 @@ + + + + + + + + + + + + + + + + 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 @@ + + + Test Application + + -- cgit v1.2.3