68 lines
1.7 KiB
Groovy
68 lines
1.7 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
alias libs.plugins.spotless
|
|
}
|
|
|
|
android {
|
|
namespace = "de.charlex.compose.revealswipe.sample"
|
|
compileSdk libs.versions.compileSdk.get().toInteger()
|
|
|
|
defaultConfig {
|
|
minSdk libs.versions.minSdk.get().toInteger()
|
|
targetSdk libs.versions.targetSdk.get().toInteger()
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = false
|
|
compose true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion libs.versions.composeCompiler.get()
|
|
}
|
|
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':revealswipe')
|
|
|
|
/**
|
|
* Compose
|
|
*/
|
|
implementation(platform(libs.compose.bom))
|
|
androidTestImplementation(platform(libs.compose.bom))
|
|
|
|
implementation(libs.compose.ui.ui)
|
|
implementation(libs.compose.foundation.foundation)
|
|
implementation(libs.compose.ui.util)
|
|
debugImplementation(libs.compose.ui.tooling)
|
|
implementation(libs.compose.ui.tooling.preview)
|
|
implementation(libs.compose.material3.material3)
|
|
|
|
implementation libs.lifecycle.runtime.ktx
|
|
implementation libs.activity.compose
|
|
} |