kopia lustrzana https://github.com/vitorpamplona/amethyst
63 wiersze
1.7 KiB
Groovy
63 wiersze
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.14"
|
|
}
|
|
}
|
|
|
|
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 platform(libs.androidx.compose.bom)
|
|
androidTestImplementation libs.androidx.junit
|
|
androidTestImplementation libs.androidx.espresso.core
|
|
} |