1*288bf522SAndroid Build Coastguard Workerapply plugin: 'com.android.application' 2*288bf522SAndroid Build Coastguard Worker 3*288bf522SAndroid Build Coastguard Workerandroid { 4*288bf522SAndroid Build Coastguard Worker compileSdkVersion 30 5*288bf522SAndroid Build Coastguard Worker defaultConfig { 6*288bf522SAndroid Build Coastguard Worker applicationId "simpleperf.demo.cpp_api" 7*288bf522SAndroid Build Coastguard Worker // Simpleperf suggests running on Android >= N. 8*288bf522SAndroid Build Coastguard Worker // (https://android.googlesource.com/platform/system/extras/+/master/simpleperf/doc/README.md#why-we-suggest-profiling-on-android-n-devices) 9*288bf522SAndroid Build Coastguard Worker minSdkVersion 24 10*288bf522SAndroid Build Coastguard Worker targetSdkVersion 30 11*288bf522SAndroid Build Coastguard Worker versionCode 1 12*288bf522SAndroid Build Coastguard Worker versionName "1.0" 13*288bf522SAndroid Build Coastguard Worker externalNativeBuild { 14*288bf522SAndroid Build Coastguard Worker cmake { 15*288bf522SAndroid Build Coastguard Worker cppFlags "-std=c++14" 16*288bf522SAndroid Build Coastguard Worker } 17*288bf522SAndroid Build Coastguard Worker } 18*288bf522SAndroid Build Coastguard Worker } 19*288bf522SAndroid Build Coastguard Worker buildTypes { 20*288bf522SAndroid Build Coastguard Worker release { 21*288bf522SAndroid Build Coastguard Worker minifyEnabled false 22*288bf522SAndroid Build Coastguard Worker proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 23*288bf522SAndroid Build Coastguard Worker } 24*288bf522SAndroid Build Coastguard Worker } 25*288bf522SAndroid Build Coastguard Worker externalNativeBuild { 26*288bf522SAndroid Build Coastguard Worker cmake { 27*288bf522SAndroid Build Coastguard Worker path "src/main/cpp/CMakeLists.txt" 28*288bf522SAndroid Build Coastguard Worker } 29*288bf522SAndroid Build Coastguard Worker } 30*288bf522SAndroid Build Coastguard Worker} 31*288bf522SAndroid Build Coastguard Worker 32*288bf522SAndroid Build Coastguard Workerdependencies { 33*288bf522SAndroid Build Coastguard Worker implementation fileTree(dir: 'libs', include: ['*.jar']) 34*288bf522SAndroid Build Coastguard Worker implementation 'com.android.support:appcompat-v7:27.1.1' 35*288bf522SAndroid Build Coastguard Worker implementation 'com.android.support.constraint:constraint-layout:1.1.3' 36*288bf522SAndroid Build Coastguard Worker testImplementation 'junit:junit:4.12' 37*288bf522SAndroid Build Coastguard Worker androidTestImplementation 'com.android.support.test:runner:1.0.2' 38*288bf522SAndroid Build Coastguard Worker androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 39*288bf522SAndroid Build Coastguard Worker} 40