mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-29 11:11:44 +01:00
62 lines
1.7 KiB
Groovy
62 lines
1.7 KiB
Groovy
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
alias(libs.plugins.jetbrainsKotlinAndroid)
|
|
}
|
|
|
|
android {
|
|
namespace 'com.vitorpamplona.amethyst.commons'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
minSdk 26
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
create("benchmark") {
|
|
initWith(getByName("release"))
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
freeCompilerArgs += "-Xstring-concat=inline"
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
// Should match compose version : https://developer.android.com/jetpack/androidx/releases/compose-kotlin
|
|
kotlinCompilerExtensionVersion "1.5.8"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':quartz')
|
|
|
|
// Import @Immutable and @Stable
|
|
implementation platform(libs.androidx.compose.bom)
|
|
implementation libs.androidx.ui
|
|
implementation libs.androidx.compose.foundation
|
|
|
|
debugImplementation libs.androidx.ui.tooling
|
|
implementation libs.androidx.ui.tooling.preview
|
|
|
|
// immutable collections to avoid recomposition
|
|
api libs.kotlinx.collections.immutable
|
|
|
|
testImplementation libs.junit
|
|
androidTestImplementation libs.androidx.junit
|
|
androidTestImplementation libs.androidx.espresso.core
|
|
} |