1plugins { 2 id 'com.android.application' 3} 4 5android { 6 compileSdk 30 7 buildToolsVersion "30.0.2" 8 ndkVersion "21.4.7075529" 9 10 defaultConfig { 11 applicationId "com.google.amber" 12 minSdkVersion 24 13 targetSdkVersion 30 14 versionCode 1 15 versionName "1.0" 16 17 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 18 19 externalNativeBuild { 20 cmake { 21 arguments "-DAMBER_USE_LOCAL_VULKAN=1" 22 targets "amber_ndk" 23 } 24 } 25 } 26 27 externalNativeBuild { 28 cmake { 29 path "../../CMakeLists.txt" 30 } 31 } 32 33 sourceSets { 34 androidTest.manifest.srcFile "src/androidTest/AndroidManifest.xml" 35 } 36 37 buildTypes { 38 release { 39 minifyEnabled false 40 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') 41 } 42 } 43 compileOptions { 44 sourceCompatibility JavaVersion.VERSION_1_8 45 targetCompatibility JavaVersion.VERSION_1_8 46 } 47 48 sourceSets { 49 main { 50 jniLibs.srcDirs = ["jniLibs"] 51 } 52 } 53 54} 55 56dependencies { 57 implementation fileTree(dir: 'libs', include: ['*.jar']) 58 59 implementation 'androidx.appcompat:appcompat:1.3.1' 60 implementation 'com.google.android.material:material:1.4.0' 61 implementation 'androidx.constraintlayout:constraintlayout:2.1.1' 62 testImplementation 'junit:junit:4.13.2' 63 androidTestImplementation 'androidx.test.ext:junit:1.1.3' 64 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 65} 66