Skip to content

Commit

Permalink
Added compiler for design system module
Browse files Browse the repository at this point in the history
  • Loading branch information
bedirhansaricayir committed Jul 14, 2024
1 parent 56f4455 commit 119ed6e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 285 deletions.
90 changes: 0 additions & 90 deletions app/src/main/java/com/lifting/app/theme/Color.kt

This file was deleted.

123 changes: 0 additions & 123 deletions app/src/main/java/com/lifting/app/theme/Theme.kt

This file was deleted.

69 changes: 0 additions & 69 deletions app/src/main/java/com/lifting/app/theme/Type.kt

This file was deleted.

8 changes: 8 additions & 0 deletions core/designsystem/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = Versions.kotlinCompilerExtensionVersion
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions core/navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ android {
}

dependencies {
api(project(":core:designsystem"))
Compose.list.forEach(::api)
api(Compose.material)
api(Compose.materialNavigation)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.lifting.app.core.navigation.bottom_nav


import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
import androidx.compose.material3.Text
Expand All @@ -12,6 +11,7 @@ import androidx.navigation.NavDestination.Companion.hierarchy
import androidx.navigation.NavGraph.Companion.findStartDestination
import androidx.navigation.NavHostController
import androidx.navigation.compose.currentBackStackEntryAsState
import com.lifting.app.core.designsystem.LiftingTheme

/**
* Created by bedirhansaricayir on 13.07.2024
Expand All @@ -26,8 +26,8 @@ internal fun BottomNavigationBar(
val currentDestination = navBackStackEntry?.destination

NavigationBar(
containerColor = MaterialTheme.colorScheme.background,
contentColor = MaterialTheme.colorScheme.onBackground,
containerColor = LiftingTheme.colors.background,
contentColor = LiftingTheme.colors.onBackground,
) {
BottomNavigationItem.entries.forEachIndexed { index, item ->
val isSelected = currentDestination?.hierarchy?.any {
Expand Down

0 comments on commit 119ed6e

Please sign in to comment.