Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

95 lines
2.5 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
}
android {
compileSdk 33
defaultConfig {
applicationId "com.developersbreach.composeactors"
minSdk 24
targetSdk 33
versionCode 3
versionName "0.3.0"
vectorDrawables {
useSupportLibrary true
}
// signingConfig signingConfigs.debug
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
useIR = true
// To mark experimental features api
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.6.1'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "androidx.compose.ui:ui-tooling:$compose_version"
implementation 'androidx.activity:activity-compose:1.5.1'
// Observe state and livedata
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
// Constraint Layout
implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
// Navigation
implementation "androidx.navigation:navigation-compose:2.5.1"
// Timber for logging
implementation "com.jakewharton.timber:timber:4.7.1"
// Coil for image loading
implementation "io.coil-kt:coil-compose:1.4.0"
// Palette
implementation "androidx.palette:palette-ktx:1.0.0"
// Koin - Jetpack Compose
implementation "io.insert-koin:koin-androidx-compose:3.2.0-beta-1"
// Room
implementation "androidx.room:room-runtime:2.4.3"
implementation "androidx.room:room-ktx:2.4.3"
kapt "androidx.room:room-compiler:2.4.3"
}