apply plugin: 'com.android.model.application'

model {
    android {
        compileSdkVersion = 23
        buildToolsVersion = '23.0.3'

        defaultConfig.with {
            applicationId = 'com.babysource.vrdroid.malivr'
            minSdkVersion.apiLevel = 16
            targetSdkVersion.apiLevel = 23
        }
    }

    android.ndk {
        platformVersion = '19'
        moduleName = 'Native'
        stl = 'stlport_static'
        abiFilters.add('armeabi-v7a')
        CFlags.add('-Werror')
        ldLibs.addAll(['log', 'GLESv3', 'EGL', 'm'])
    }

    android.sources {
        main {
            jni {
                source {
                    exclude 'armvr.cpp'
                    exclude 'loader.cpp'
                }
            }
        }
    }

    android.buildTypes {
        debug {
            debuggable = true
            minifyEnabled = false
            multiDexEnabled = false
            shrinkResources = false
            zipAlignEnabled = true
        }
        release {
            debuggable = false
            minifyEnabled = false
            multiDexEnabled = false
            shrinkResources = true
            zipAlignEnabled = true
            proguardFiles.add(file('proguard-rules.pro'))
        }
    }

    android.packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
    }

    android.lintOptions {
        abortOnError = false
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:23.2.1'
}
