REFACTOR END
This commit is contained in:
55
feature/settings/build.gradle.kts
Normal file
55
feature/settings/build.gradle.kts
Normal file
@@ -0,0 +1,55 @@
|
||||
// [FILE] feature/settings/build.gradle.kts
|
||||
// [SEMANTICS] build, settings, feature_module
|
||||
// [PURPOSE] Build script for the feature:settings 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.settings"
|
||||
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(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)
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// [FILE] feature/settings/src/main/java/com/homebox/lens/feature/settings/SettingsScreen.kt
|
||||
// [SEMANTICS] ui, screen, settings
|
||||
// [PURPOSE] Composable for the Settings screen.
|
||||
|
||||
package com.homebox.lens.feature.settings
|
||||
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import com.homebox.lens.ui.common.mainScaffold
|
||||
|
||||
@Composable
|
||||
fun SettingsScreen(
|
||||
currentRoute: String?,
|
||||
navigationActions: com.homebox.lens.ui.common.NavigationActions,
|
||||
onNavigateUp: () -> Unit,
|
||||
) {
|
||||
mainScaffold(
|
||||
topBarTitle = "Settings",
|
||||
currentRoute = currentRoute,
|
||||
navigationActions = navigationActions,
|
||||
onNavigateUp = onNavigateUp,
|
||||
) {
|
||||
Text(text = "Settings Screen")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user