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