1apply plugin: 'com.android.application' 2apply plugin: 'kotlin-android' 3 4android { 5 compileSdkVersion 35 6 defaultConfig { 7 applicationId 'com.google.oboe.samples.hellooboe' 8 minSdkVersion 21 9 targetSdkVersion 35 10 compileSdkVersion 35 11 versionCode 1 12 versionName '1.0' 13 externalNativeBuild { 14 cmake { 15 cppFlags "-std=c++17" 16 arguments '-DANDROID_STL=c++_static' 17 // armeabi and mips are deprecated in NDK r16 so we don't want to build for them 18 abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' 19 } 20 } 21 } 22 buildTypes { 23 release { 24 minifyEnabled false 25 proguardFiles getDefaultProguardFile('proguard-android.txt'), 26 'proguard-rules.pro' 27 } 28 } 29 compileOptions { 30 sourceCompatibility JavaVersion.VERSION_18 31 targetCompatibility JavaVersion.VERSION_18 32 } 33 externalNativeBuild { 34 cmake { 35 path 'src/main/cpp/CMakeLists.txt' 36 } 37 } 38 namespace 'com.google.oboe.samples.hellooboe' 39} 40 41dependencies { 42 implementation fileTree(include: ['*.jar'], dir: 'libs') 43 implementation project(':audio-device') 44 implementation 'androidx.appcompat:appcompat:1.7.0' 45 implementation 'androidx.constraintlayout:constraintlayout:2.2.1' 46} 47