205 lines
No EOL
6.4 KiB
Kotlin
205 lines
No EOL
6.4 KiB
Kotlin
//plugins {
|
|
// id("com.android.application")
|
|
// id("org.jetbrains.kotlin.android")
|
|
// id("org.jetbrains.kotlin.plugin.compose")
|
|
// id("kotlin-kapt")
|
|
//}
|
|
//
|
|
//android {
|
|
// namespace = "de.patani.kettlebelltracker"
|
|
// compileSdk = 34
|
|
//
|
|
// defaultConfig {
|
|
// applicationId = "de.patani.kettlebelltracker"
|
|
// minSdk = 26
|
|
// targetSdk = 34
|
|
// versionCode = 1
|
|
// versionName = "1.0"
|
|
//
|
|
// testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
// vectorDrawables {
|
|
// useSupportLibrary = true
|
|
// }
|
|
// }
|
|
//
|
|
// buildTypes {
|
|
// release {
|
|
// isMinifyEnabled = 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"
|
|
// }
|
|
// buildFeatures {
|
|
// compose = true
|
|
// }
|
|
// composeOptions {
|
|
// kotlinCompilerExtensionVersion = "1.5.1"
|
|
// }
|
|
// packaging {
|
|
// resources {
|
|
// excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
// excludes += "org/intellij/lang/annotations/**"
|
|
// }
|
|
// }
|
|
//}
|
|
//
|
|
//configurations {
|
|
// all {
|
|
// exclude(group = "com.intellij", module = "annotations")
|
|
// }
|
|
//}
|
|
//
|
|
//dependencies {
|
|
// // Core
|
|
// implementation("androidx.core:core-ktx:1.12.0")
|
|
// implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
|
|
// implementation("androidx.activity:activity-compose:1.8.2")
|
|
//
|
|
// // Compose
|
|
// implementation(platform("androidx.compose:compose-bom:2023.08.00"))
|
|
// implementation("androidx.compose.ui:ui")
|
|
// implementation("androidx.compose.ui:ui-graphics")
|
|
// implementation("androidx.compose.ui:ui-tooling-preview")
|
|
// implementation("androidx.compose.material3:material3")
|
|
// implementation("androidx.compose.material:material-icons-extended")
|
|
//
|
|
//
|
|
// // Navigation
|
|
// implementation("androidx.navigation:navigation-compose:2.7.6")
|
|
//
|
|
// // ViewModel
|
|
// implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2")
|
|
//
|
|
// // Room (Database)
|
|
// implementation("androidx.room:room-runtime:2.6.1")
|
|
// implementation("androidx.room:room-ktx:2.6.1")
|
|
// implementation(libs.androidx.room.common.jvm)
|
|
// implementation(libs.androidx.room.compiler)
|
|
// kapt("androidx.room:room-compiler:2.6.1")
|
|
//
|
|
// // DataStore (Settings)
|
|
// implementation("androidx.datastore:datastore-preferences:1.0.0")
|
|
//
|
|
// // Retrofit (API)
|
|
// implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
// implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
//
|
|
// // Hilt (Dependency Injection - Optional, but recommended)
|
|
// // implementation("com.google.dagger:hilt-android:2.48")
|
|
// // kapt("com.google.dagger:hilt-compiler:2.48")
|
|
// // implementation("androidx.hilt:hilt-navigation-compose:1.1.0")
|
|
//}
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
id("org.jetbrains.kotlin.kapt") // Wichtig: Hier auf 'org.jetbrains.kotlin.kapt' geändert
|
|
}
|
|
|
|
android {
|
|
namespace = "de.patani.kettlebelltracker"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "de.patani.kettlebelltracker"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary = true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = 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"
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.1"
|
|
}
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
excludes += "org/intellij/lang/annotations/**"
|
|
}
|
|
}
|
|
}
|
|
|
|
// Den 'configurations' Block entfernen, es sei denn, du benötigst ihn explizit für einen spezifischen Ausschluss.
|
|
// Wenn du ihn absichtlich hinzugefügt hast, um ein bekanntes Problem zu lösen, kannst du ihn behalten.
|
|
// Ansonsten kommentiere ihn aus oder entferne ihn:
|
|
/*
|
|
configurations {
|
|
all {
|
|
exclude(group = "com.intellij", module = "annotations")
|
|
}
|
|
}
|
|
*/
|
|
|
|
dependencies {
|
|
// Core
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
|
|
implementation("androidx.activity:activity-compose:1.8.2")
|
|
|
|
// Compose
|
|
implementation(platform("androidx.compose:compose-bom:2023.08.00"))
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.ui:ui-graphics")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.material:material-icons-extended")
|
|
|
|
// Navigation
|
|
implementation("androidx.navigation:navigation-compose:2.7.6")
|
|
|
|
// ViewModel
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2")
|
|
|
|
// Room (Database)
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
// Wichtig: Die folgenden Zeilen für den Room Compiler wurden entfernt/korrigiert!
|
|
// KEIN implementation("libs.androidx.room.common.jvm")
|
|
// KEIN implementation("libs.androidx.room.compiler")
|
|
kapt("androidx.room:room-compiler:2.6.1") // NUR diese Zeile für den Compiler!
|
|
|
|
// DataStore (Settings)
|
|
implementation("androidx.datastore:datastore-preferences:1.0.0")
|
|
|
|
// Retrofit (API)
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
|
|
// Hilt (Dependency Injection - Optional, but recommended)
|
|
// implementation("com.google.dagger:hilt-android:2.48")
|
|
// kapt("com.google.dagger:hilt-compiler:2.48")
|
|
// implementation("androidx.hilt:hilt-navigation-compose:1.1.0")
|
|
} |