1plugins { 2 id 'com.android.application' 3 id 'org.jetbrains.kotlin.android' 4} 5 6android { 7 compileSdk 33 8 9 defaultConfig { 10 applicationId "com.example.minimaloboe" 11 minSdk 21 12 targetSdk 32 13 versionCode 1 14 versionName "1.0" 15 16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 17 vectorDrawables { 18 useSupportLibrary true 19 } 20 } 21 22 buildTypes { 23 release { 24 minifyEnabled false 25 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 26 } 27 } 28 compileOptions { 29 sourceCompatibility JavaVersion.VERSION_1_8 30 targetCompatibility JavaVersion.VERSION_1_8 31 } 32 kotlinOptions { 33 jvmTarget = '1.8' 34 } 35 buildFeatures { 36 compose true 37 } 38 composeOptions { 39 kotlinCompilerExtensionVersion compose_version 40 } 41 42 externalNativeBuild { 43 cmake { 44 path 'src/main/cpp/CMakeLists.txt' 45 } 46 } 47 packagingOptions { 48 resources { 49 excludes += '/META-INF/{AL2.0,LGPL2.1}' 50 } 51 } 52} 53 54dependencies { 55 implementation "androidx.core:core-ktx:$kotlin_version" 56 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" 57 implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" 58 implementation "androidx.activity:activity-ktx:1.6.0" 59 def lifecycle_version = "2.6.0-alpha02" 60 implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version" 61 implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version" 62 implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version" 63 implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" 64 implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version" 65 implementation "androidx.compose.ui:ui:$compose_version" 66 implementation "androidx.compose.material:material:$compose_version" 67 implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" 68 implementation 'androidx.activity:activity-compose:1.3.1' 69 implementation 'androidx.appcompat:appcompat:1.6.0-rc01' 70 testImplementation 'junit:junit:4.13.2' 71 androidTestImplementation 'androidx.test.ext:junit:1.1.3' 72 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 73 androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" 74 debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" 75 debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" 76} 77