Updated the UI across all screens (Login, Dashboard, Account Selection, Expense Details, and Creation) with a more modern, card-based design and improved layouts. Expense creation now includes: - Real-time split validation to ensure shares match the total amount. - An "Equal Split" shortcut for quick allocation. - Support for optional descriptions and multiple file attachments. - Strict save validation. The `MainActivity` now supports edge-to-edge display, and the `AccountDao` includes a new query to fetch accounts by ID. Added `material-icons-extended` dependency for enhanced iconography.
77 lines
2.5 KiB
Plaintext
77 lines
2.5 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.android.application)
|
|
alias(libs.plugins.kotlin.compose)
|
|
id("com.google.devtools.ksp") version "2.3.4"// apply false
|
|
}
|
|
|
|
android {
|
|
namespace = "de.miaurizius.shap_planner"
|
|
compileSdk {
|
|
version = release(36) {
|
|
minorApiLevel = 1
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
applicationId = "de.miaurizius.shap_planner"
|
|
minSdk = 26
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
//Android Studio Auto-Gen
|
|
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.compose.ui)
|
|
implementation(libs.androidx.compose.ui.graphics)
|
|
implementation(libs.androidx.compose.ui.tooling.preview)
|
|
implementation(libs.androidx.compose.material3)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.androidx.junit)
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
|
|
debugImplementation(libs.androidx.compose.ui.tooling)
|
|
debugImplementation(libs.androidx.compose.ui.test.manifest)
|
|
|
|
//Manually added
|
|
implementation("androidx.datastore:datastore-preferences:1.2.0")
|
|
implementation("androidx.compose.material:material-icons-extended:1.6.0")
|
|
|
|
val room_version = "2.8.4"
|
|
implementation("androidx.room:room-runtime:$room_version")
|
|
ksp("androidx.room:room-compiler:$room_version")
|
|
|
|
// Retrofit + Gson
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
// OkHttp logging (debug)
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
|
|
// AndroidX Security (EncryptedSharedPreferences)
|
|
implementation("androidx.security:security-crypto:1.1.0-alpha03")
|
|
} |