apply plugin: 'com.android.application'

allprojects {
    repositories {
        jcenter()
        flatDir {
            dirs '../../../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 'jniLibs' // pre-compiled libraries
    }

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

dependencies {
    compile(name:'framework-debug', ext:'aar')
    //compile files('src/main/libs/bulletjniframework.jar');
}
