android-expense-tracker/app/build.gradle.kts

101 lines
3.1 KiB
Plaintext
Raw Normal View History

2024-07-01 14:55:06 -07:00
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
// https://medium.com/@rowaido.game/implementing-the-room-library-with-jetpack-compose-590d13101fa7
id("com.google.devtools.ksp")
2024-12-17 13:41:25 -07:00
// For Room (2024-12-17)
kotlin("kapt")
2024-07-01 14:55:06 -07:00
}
android {
namespace = "com.hyperling.expensetracker"
compileSdk = 35
2024-07-01 14:55:06 -07:00
defaultConfig {
applicationId = "com.hyperling.expensetracker"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "0.0.2"
2024-07-01 14:55:06 -07:00
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_11
targetCompatibility = JavaVersion.VERSION_11
2024-07-01 14:55:06 -07:00
}
kotlinOptions {
jvmTarget = "11"
2024-07-01 14:55:06 -07:00
}
buildFeatures {
compose = true
}
composeOptions {
//kotlinCompilerExtensionVersion = "1.5.1"
// https://medium.com/@rowaido.game/implementing-the-room-library-with-jetpack-compose-590d13101fa7
//kotlinCompilerExtensionVersion = "1.5.11"
2024-07-01 14:55:06 -07:00
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}
dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
implementation(platform(libs.androidx.compose.bom))
implementation(libs.androidx.ui)
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.material3)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.ui.test.junit4)
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)
// https://medium.com/@rowaido.game/implementing-the-room-library-with-jetpack-compose-590d13101fa7
/* This is crazy? How are people supposed to know how to do this, and especially "fix" it when it doesn't work?
implementation(libs.androidx.room.runtime)
implementation(libs.androidx.room.ktx)
ksp(libs.androidx.room.compiler)
implementation(libs.androidx.lifecycle.viewmodel.compose)
*/
2024-12-17 13:41:25 -07:00
// For Room (2024-12-17)
// https://www.youtube.com/watch?v=bOd3wO0uFr8&themeRefresh=1
/* build.gradle version * /
2024-12-29 08:29:07 -07:00
def room_version: String = "2.6.1"
2024-12-17 13:41:25 -07:00
implementation"androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// */
/* build.grade.kts version */
2024-12-29 08:29:07 -07:00
val room_version: String = "2.6.1"
2024-12-17 13:41:25 -07:00
implementation("androidx.room:room-ktx:$room_version")
kapt("androidx.room:room-compiler:$room_version")
// */
}