• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1plugins {
2    id 'com.android.application'
3}
4
5android {
6
7    defaultConfig {
8        applicationId "simpleperf.example.cpp"
9        minSdkVersion 24
10        targetSdkVersion 33
11        versionCode 1
12        versionName "1.0"
13
14        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15        externalNativeBuild {
16            cmake {
17                cppFlags '-std=c++17'
18                // Cmake Debug build type uses -O0, which makes the code slow. So use release build.
19                arguments "-DCMAKE_BUILD_TYPE=Release"
20            }
21        }
22    }
23
24    buildTypes {
25        release {
26            minifyEnabled false
27            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
28        }
29    }
30    compileOptions {
31        sourceCompatibility JavaVersion.VERSION_1_8
32        targetCompatibility JavaVersion.VERSION_1_8
33    }
34    externalNativeBuild {
35        cmake {
36            path file('src/main/cpp/CMakeLists.txt')
37            version '3.18.1'
38        }
39    }
40    buildFeatures {
41        viewBinding true
42    }
43    compileSdk 34
44    ndkVersion '27.1.12297006'
45    namespace 'simpleperf.example.cpp'
46}
47
48dependencies {
49
50    implementation 'androidx.appcompat:appcompat:1.3.1'
51    implementation 'com.google.android.material:material:1.2.1'
52    implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
53    implementation 'androidx.navigation:navigation-fragment:2.3.0'
54    implementation 'androidx.navigation:navigation-ui:2.3.0'
55    testImplementation 'junit:junit:4.+'
56    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
57    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
58}