apply plugin: 'com.android.application'

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
        flatDir {
            dirs '../../../../GearVRf/GVRf/gearvrf-libs'
        }
    }
}

android {
    compileSdkVersion 19
    buildToolsVersion "26.0.3"

    defaultConfig {
        applicationId "com.samsung.android.gvr.sample"
        minSdkVersion 19
        targetSdkVersion 19
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }

    sourceSets.main {
        jni.srcDirs = [] // no auto generation of Android.mk
        jniLibs.srcDir 'libs' // pre-compiled libraries
    }

    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            output.outputFile = new File(
                    output.outputFile.parent,
                    rootProject.name + ".apk")
        }
    }
}

project.ext.jomlVersion = "1.9.3-SNAPSHOT"
project.ext.gsonVersion = '2.8.2'

dependencies {
    compile "org.joml:joml-android:${jomlVersion}"
    compile "com.google.code.gson:gson:$gsonVersion"
    debugCompile(name:'framework-debug', ext:'aar')
    debugCompile(name: 'backend_oculus-debug', ext: 'aar')
    releaseCompile(name:'framework-release', ext:'aar')
    releaseCompile(name: 'backend_oculus-release', ext: 'aar')
}
