REFACTOR END

This commit is contained in:
2025-09-28 10:10:01 +03:00
parent 394e0040de
commit 9b914b2904
117 changed files with 3070 additions and 5447 deletions

View File

@@ -0,0 +1,54 @@
// [FILE] feature/locationslist/build.gradle.kts
// [SEMANTICS] build, locationslist, feature_module
// [PURPOSE] Build script for the feature:locationslist module.
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("org.jetbrains.kotlin.plugin.compose")
id("com.google.dagger.hilt.android")
id("kotlin-kapt")
}
android {
namespace = "com.homebox.lens.feature.locationslist"
compileSdk = Versions.compileSdk
defaultConfig {
minSdk = Versions.minSdk
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = true
}
}
dependencies {
implementation(project(":data"))
implementation(project(":domain"))
implementation(project(":ui:common"))
implementation(Libs.coreKtx)
implementation(Libs.lifecycleRuntime)
implementation(Libs.activityCompose)
implementation(Libs.composeUi)
implementation(Libs.composeUiGraphics)
implementation(Libs.composeUiToolingPreview)
implementation(Libs.composeMaterial3)
implementation(Libs.composeMaterialIconsExtended)
implementation(Libs.navigationCompose)
implementation(Libs.hiltNavigationCompose)
implementation(Libs.hiltAndroid)
kapt(Libs.hiltCompiler)
implementation(Libs.timber)
}

View File

@@ -0,0 +1,25 @@
// [FILE] feature/locationslist/src/main/java/com/homebox/lens/feature/locationslist/LocationsListScreen.kt
// [SEMANTICS] ui, screen, locations, list
// [PURPOSE] Composable for the Locations List screen.
package com.homebox.lens.feature.locationslist
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import com.homebox.lens.ui.common.mainScaffold
@Composable
fun LocationsListScreen(
currentRoute: String?,
navigationActions: com.homebox.lens.ui.common.NavigationActions,
onLocationClick: (String) -> Unit,
onAddNewLocationClick: () -> Unit,
) {
mainScaffold(
topBarTitle = "Locations",
currentRoute = currentRoute,
navigationActions = navigationActions,
) {
Text(text = "Locations List Screen")
}
}