xref: /aosp_15_r20/system/extras/simpleperf/demo/SimpleperfExampleKotlin/app/build.gradle (revision 288bf5226967eb3dac5cce6c939ccc2a7f2b4fe5)
1*288bf522SAndroid Build Coastguard Workerplugins {
2*288bf522SAndroid Build Coastguard Worker    id 'com.android.application'
3*288bf522SAndroid Build Coastguard Worker    id 'org.jetbrains.kotlin.android'
4*288bf522SAndroid Build Coastguard Worker}
5*288bf522SAndroid Build Coastguard Worker
6*288bf522SAndroid Build Coastguard Workerandroid {
7*288bf522SAndroid Build Coastguard Worker    namespace 'simpleperf.example.kotlin'
8*288bf522SAndroid Build Coastguard Worker    compileSdk 32
9*288bf522SAndroid Build Coastguard Worker
10*288bf522SAndroid Build Coastguard Worker    defaultConfig {
11*288bf522SAndroid Build Coastguard Worker        applicationId "simpleperf.example.kotlin"
12*288bf522SAndroid Build Coastguard Worker        minSdk 24
13*288bf522SAndroid Build Coastguard Worker        targetSdk 32
14*288bf522SAndroid Build Coastguard Worker        versionCode 1
15*288bf522SAndroid Build Coastguard Worker        versionName "1.0"
16*288bf522SAndroid Build Coastguard Worker
17*288bf522SAndroid Build Coastguard Worker        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18*288bf522SAndroid Build Coastguard Worker    }
19*288bf522SAndroid Build Coastguard Worker
20*288bf522SAndroid Build Coastguard Worker    buildTypes {
21*288bf522SAndroid Build Coastguard Worker        release {
22*288bf522SAndroid Build Coastguard Worker            minifyEnabled false
23*288bf522SAndroid Build Coastguard Worker            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24*288bf522SAndroid Build Coastguard Worker        }
25*288bf522SAndroid Build Coastguard Worker    }
26*288bf522SAndroid Build Coastguard Worker    compileOptions {
27*288bf522SAndroid Build Coastguard Worker        sourceCompatibility JavaVersion.VERSION_1_8
28*288bf522SAndroid Build Coastguard Worker        targetCompatibility JavaVersion.VERSION_1_8
29*288bf522SAndroid Build Coastguard Worker    }
30*288bf522SAndroid Build Coastguard Worker    kotlinOptions {
31*288bf522SAndroid Build Coastguard Worker        jvmTarget = '1.8'
32*288bf522SAndroid Build Coastguard Worker    }
33*288bf522SAndroid Build Coastguard Worker}
34*288bf522SAndroid Build Coastguard Worker
35*288bf522SAndroid Build Coastguard Workerdependencies {
36*288bf522SAndroid Build Coastguard Worker
37*288bf522SAndroid Build Coastguard Worker    implementation 'androidx.core:core-ktx:1.7.0'
38*288bf522SAndroid Build Coastguard Worker    implementation 'androidx.appcompat:appcompat:1.4.1'
39*288bf522SAndroid Build Coastguard Worker    implementation 'com.google.android.material:material:1.5.0'
40*288bf522SAndroid Build Coastguard Worker    implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
41*288bf522SAndroid Build Coastguard Worker    testImplementation 'junit:junit:4.13.2'
42*288bf522SAndroid Build Coastguard Worker    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
43*288bf522SAndroid Build Coastguard Worker    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
44*288bf522SAndroid Build Coastguard Worker}