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