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