apply plugin: 'com.android.application' def setVersionName = { -> if (project.hasProperty("androidVersionName")) { println("Replacing versionName with supplied build parameter: " + "$androidVersionName") return androidVersionName } else { return "1.0" } } android { compileSdkVersion 28 defaultConfig { applicationId "com.google.ar.core.examples.java.helloar" // AR Optional apps must declare minSdkVersion >= 14. // AR Required apps must declare minSdkVersion >= 24. minSdkVersion 24 targetSdkVersion 28 versionCode 1 versionName setVersionName() } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { // ARCore library // Dependency version is rewritten at build time. implementation 'com.google.ar:core:1.13.0' // Obj - a simple Wavefront OBJ file loader // https://github.com/javagl/Obj implementation 'de.javagl:obj:0.2.1' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:design:28.0.0' }