From 9615db1e25e3b1ed12a71bff0384072c0c473ae8 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 17 Dec 2017 16:16:25 -0800 Subject: Added gradle build for Unity plugin; updated submodules --- unityplugin/Android/GhostCubeScene/build.gradle | 44 +++++++++++++++++++++ .../GhostCubeScene/src/main/AndroidManifest.xml | 31 +++++++++++++++ .../GhostCubeScene/src/main/res/layout/widgets.xml | 17 ++++++++ .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../src/main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../src/main/res/values-v11/styles.xml | 11 ++++++ .../src/main/res/values-v14/styles.xml | 12 ++++++ .../GhostCubeScene/src/main/res/values/strings.xml | 7 ++++ .../GhostCubeScene/src/main/res/values/styles.xml | 20 ++++++++++ 11 files changed, 142 insertions(+) create mode 100644 unityplugin/Android/GhostCubeScene/build.gradle create mode 100644 unityplugin/Android/GhostCubeScene/src/main/AndroidManifest.xml create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/layout/widgets.xml create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/values-v11/styles.xml create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/values-v14/styles.xml create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/values/strings.xml create mode 100644 unityplugin/Android/GhostCubeScene/src/main/res/values/styles.xml (limited to 'unityplugin/Android/GhostCubeScene') diff --git a/unityplugin/Android/GhostCubeScene/build.gradle b/unityplugin/Android/GhostCubeScene/build.gradle new file mode 100644 index 0000000..886985f --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/build.gradle @@ -0,0 +1,44 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion = 25 + + defaultConfig { + applicationId = 'com.DiligentGraphics.UnityEmulator.UnityEmulatorApplication' + minSdkVersion 21 + targetSdkVersion 25 + ndk { + abiFilters 'armeabi-v7a'//, 'armeabi', 'arm64-v8a','x86', 'x86_64' + } + externalNativeBuild { + cmake { + arguments '-DANDROID_PLATFORM=android-21', + '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=gnustl_static' + } + } + } + buildTypes { + release { + minifyEnabled = false + proguardFiles getDefaultProguardFile('proguard-android.txt'), + 'proguard-rules.pro' + } + } + externalNativeBuild { + cmake { + path '../../../CMakeLists.txt' + } + } + sourceSets { + main { + java.srcDirs = ['../Common/Java'] + assets.srcDirs = ['../../GhostCubeScene/build/assets'] + } + } +} + +dependencies { + 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/unityplugin/Android/GhostCubeScene/src/main/AndroidManifest.xml b/unityplugin/Android/GhostCubeScene/src/main/AndroidManifest.xml new file mode 100644 index 0000000..bc885c2 --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/src/main/AndroidManifest.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/layout/widgets.xml b/unityplugin/Android/GhostCubeScene/src/main/res/layout/widgets.xml new file mode 100644 index 0000000..b6e86e6 --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/src/main/res/layout/widgets.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-hdpi/ic_launcher.png b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..cde69bc Binary files /dev/null and b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-mdpi/ic_launcher.png b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c133a0c Binary files /dev/null and b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xhdpi/ic_launcher.png b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..bfa42f0 Binary files /dev/null and b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xxhdpi/ic_launcher.png b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..324e72c Binary files /dev/null and b/unityplugin/Android/GhostCubeScene/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/values-v11/styles.xml b/unityplugin/Android/GhostCubeScene/src/main/res/values-v11/styles.xml new file mode 100644 index 0000000..541752f --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/src/main/res/values-v11/styles.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/values-v14/styles.xml b/unityplugin/Android/GhostCubeScene/src/main/res/values-v14/styles.xml new file mode 100644 index 0000000..f20e015 --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/src/main/res/values-v14/styles.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/values/strings.xml b/unityplugin/Android/GhostCubeScene/src/main/res/values/strings.xml new file mode 100644 index 0000000..546c209 --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/src/main/res/values/strings.xml @@ -0,0 +1,7 @@ + + + Ghost Cube Scene Unity Emulator + GhostCubePlugin + 0.0 FPS + + \ No newline at end of file diff --git a/unityplugin/Android/GhostCubeScene/src/main/res/values/styles.xml b/unityplugin/Android/GhostCubeScene/src/main/res/values/styles.xml new file mode 100644 index 0000000..4a10ca4 --- /dev/null +++ b/unityplugin/Android/GhostCubeScene/src/main/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + \ No newline at end of file -- cgit v1.2.3