| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 26 |
| defaultConfig { |
| applicationId "com.google.vr.ndk.samples.treasurehunt" |
| minSdkVersion 19 |
| targetSdkVersion 24 |
| versionCode 1 |
| versionName "1.0" |
| externalNativeBuild { |
| cmake { |
| cppFlags "-std=gnu++11" |
| arguments "-DGVR_LIBPATH=${project.rootDir}/libraries/jni", |
| "-DGVR_INCLUDE=${project.rootDir}/libraries/headers" |
| } |
| } |
| buildTypes { |
| release { |
| minifyEnabled = true |
| proguardFiles.add(file("${project.rootDir}/proguard-gvr.txt")) |
| } |
| } |
| ndk { |
| // This sample builds all architectures by default. Note that if you |
| // only want to build for a specific architecture, you need to |
| // remove the appropriate lines below. You also need to remove the |
| // .so files from the apk using |
| // "packagingOptions {exclude('lib/armeabi-v7a/*')}" in the android |
| // section. |
| abiFilters "arm64-v8a" |
| abiFilters "armeabi-v7a" |
| abiFilters "x86" |
| } |
| } |
| externalNativeBuild { |
| cmake { |
| path "CMakeLists.txt" |
| } |
| } |
| } |
| |
| |
| dependencies { |
| compile 'com.google.vr:sdk-audio:1.160.0' |
| compile 'com.google.vr:sdk-base:1.160.0' |
| } |
| |
| build.dependsOn(':extractNdk') |