add focus project, fix recovery save on ui thread, fix grid commit, wave_sdk submodule, use PlatformActivity as base for android/quest/focus and extend VRActivity on focus.

This commit is contained in:
2019-07-29 22:54:50 +02:00
parent 73485cde01
commit f2d2ef1067
31 changed files with 1206 additions and 36 deletions

View File

@@ -0,0 +1,55 @@
def jniDir = "src/main/jni"
def aarFilename = "wvr_client"
// unzip aar
def unzipDir = file("${buildDir}/${aarFilename}")
def aarFile = file("${projectDir}/libs/${aarFilename}.aar")
if (aarFile != null) {
copy {
println 'unzip ' + aarFile
from zipTree(aarFile)
into unzipDir
}
}
android {
defaultConfig {
externalNativeBuild { ndkBuild {
def VR_SDK_ROOT = "${buildDir}/${aarFilename}"
arguments "VR_SDK_ROOT=$VR_SDK_ROOT"
}}
ndk {
abiFilters 'armeabi-v7a'
}
}
externalNativeBuild {
ndkBuild {
path "${jniDir}/Android.mk"
}
}
buildTypes {
release {
externalNativeBuild { ndkBuild {
arguments "NDK_DEBUG=0"
}}
}
debug {
externalNativeBuild { ndkBuild {
arguments "NDK_DEBUG=1"
}}
}
}
}
repositories {
flatDir{
dirs 'libs'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.htc.vr.aar:${aarFilename}@aar"
}