1apply plugin: 'com.android.application' 2 3apply from: 'profiling.gradle' 4 5android { 6 compileSdkVersion 25 7 buildToolsVersion '26.0.2' 8 defaultConfig { 9 applicationId "com.example.simpleperf.simpleperfexamplewithnative" 10 minSdkVersion 15 11 targetSdkVersion 25 12 versionCode 1 13 versionName "1.0" 14 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 15 externalNativeBuild { 16 cmake { 17 cppFlags "-std=c++11" 18 } 19 } 20 } 21 buildTypes { 22 release { 23 minifyEnabled false 24 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 25 } 26 } 27 externalNativeBuild { 28 cmake { 29 path "CMakeLists.txt" 30 } 31 } 32} 33 34dependencies { 35 implementation 'com.android.support.constraint:constraint-layout:1.0.2' 36 implementation fileTree(dir: 'libs', include: ['*.jar']) 37 androidTestImplementation('androidx.test.espresso:espresso-core:3.1.1', { 38 exclude group: 'com.android.support', module: 'support-annotations' 39 }) 40 implementation 'com.android.support:appcompat-v7:25.3.1' 41 implementation 'com.android.support.constraint:constraint-layout:1.0.2' 42 testImplementation 'junit:junit:4.12' 43} 44