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