Refactor code structure for improved readability and maintainability

This commit is contained in:
Torsten Schulz (local)
2026-05-29 00:13:12 +02:00
parent b4c31374c0
commit 125a00819d
37 changed files with 1285 additions and 331 deletions

View File

@@ -6,7 +6,7 @@ plugins {
}
val localApiBaseUrl = providers.gradleProperty("LOCAL_API_BASE_URL")
.orElse("http://10.0.2.2:3100/")
.orElse("https://harheimertc.tsschulz.de/")
.get()
val sentryDsn = providers.gradleProperty("SENTRY_DSN")
.orElse("")
@@ -46,7 +46,7 @@ android {
}
create("production") {
dimension = "environment"
buildConfigField("String", "API_BASE_URL", "\"https://harheimertc.de/\"")
buildConfigField("String", "API_BASE_URL", "\"https://harheimertc.tsschulz.de/\"")
buildConfigField("String", "SENTRY_DSN", "\"$sentryDsn\"")
buildConfigField("String", "ENVIRONMENT_NAME", "\"\"")
manifestPlaceholders["usesCleartextTraffic"] = "false"
@@ -131,4 +131,14 @@ dependencies {
testImplementation("junit:junit:4.13.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation("io.mockk:mockk:1.13.7")
// Compose UI testing
androidTestImplementation("androidx.compose.ui:ui-test-junit4:1.5.0")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
// Hilt testing
androidTestImplementation("com.google.dagger:hilt-android-testing:2.59.2")
// Ensure Hilt runtime is available in the test APK so HiltTestApplication can be instantiated
androidTestImplementation("com.google.dagger:hilt-android:2.59.2")
kspAndroidTest("com.google.dagger:hilt-compiler:2.59.2")
debugImplementation("androidx.compose.ui:ui-test-manifest:1.5.0")
}