77 lines
2.9 KiB
Kotlin
77 lines
2.9 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
id("org.jetbrains.kotlin.plugin.serialization")
|
|
id("com.google.devtools.ksp")
|
|
id("io.github.takahirom.roborazzi")
|
|
}
|
|
|
|
android {
|
|
namespace = "app.wetter"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "app.wetter"
|
|
minSdk = 29
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "0.1.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
buildFeatures { compose = true }
|
|
testOptions { unitTests { isIncludeAndroidResources = true } }
|
|
}
|
|
|
|
kotlin { compilerOptions { jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) } }
|
|
|
|
ksp { arg("room.schemaLocation", "$projectDir/schemas") }
|
|
|
|
dependencies {
|
|
val composeBom = platform("androidx.compose:compose-bom:2025.10.01")
|
|
implementation(composeBom)
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.foundation:foundation")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
|
|
implementation("androidx.activity:activity-compose:1.11.0")
|
|
implementation("androidx.core:core-ktx:1.17.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.9.4")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.4")
|
|
implementation("androidx.graphics:graphics-shapes:1.0.1")
|
|
|
|
implementation("androidx.room:room-runtime:2.7.0")
|
|
implementation("androidx.room:room-ktx:2.7.0")
|
|
ksp("androidx.room:room-compiler:2.7.0")
|
|
implementation("androidx.datastore:datastore-preferences:1.1.7")
|
|
implementation("androidx.work:work-runtime-ktx:2.11.0")
|
|
implementation("androidx.glance:glance-appwidget:1.1.1")
|
|
implementation("androidx.glance:glance-material3:1.1.1")
|
|
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("org.robolectric:robolectric:4.15.1")
|
|
testImplementation("androidx.compose.ui:ui-test-junit4")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
testImplementation("io.github.takahirom.roborazzi:roborazzi:1.46.1")
|
|
testImplementation("io.github.takahirom.roborazzi:roborazzi-compose:1.46.1")
|
|
}
|
|
|
|
roborazzi { outputDir.set(rootProject.file("../replica/clone-screens")) }
|