Skip to content

Commit

Permalink
add #13: add core package
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 4, 2024
1 parent 0ebb8fc commit f512b35
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.feature.component
package org.sopt.and.core.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.feature.component
package org.sopt.and.core.component

import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.feature.component
package org.sopt.and.core.component

import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.feature.component
package org.sopt.and.core.component

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and
package org.sopt.and.core.extension

import android.content.Context
import android.widget.Toast
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.feature.main
package org.sopt.and.core.navigation

interface MainRoute

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializable
import org.sopt.and.feature.main.MainTabRoute
import org.sopt.and.core.navigation.MainTabRoute

fun NavController.navigateHome(
navOptions: NavOptions
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/and/feature/home/HomeRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import kotlinx.collections.immutable.PersistentList
import kotlinx.collections.immutable.persistentListOf
import org.sopt.and.R
import org.sopt.and.feature.component.HomeContent
import org.sopt.and.feature.component.TopBar
import org.sopt.and.core.component.TopBar
import org.sopt.and.feature.home.model.ContentModel
import org.sopt.and.ui.theme.ANDANDROIDTheme
import org.sopt.and.ui.theme.Black
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/org/sopt/and/feature/main/MainBottomTab.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import androidx.compose.material.icons.outlined.Home
import androidx.compose.material.icons.outlined.Search
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.vector.ImageVector
import org.sopt.and.core.navigation.MainRoute
import org.sopt.and.core.navigation.MainTabRoute

enum class MainBottomTab(
val icon: ImageVector,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.navigation.NavHostController
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.compose.rememberNavController
import androidx.navigation.navOptions
import org.sopt.and.core.navigation.MainTabRoute
import org.sopt.and.feature.home.Home
import org.sopt.and.feature.home.navigateHome
import org.sopt.and.feature.my.navigateMy
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/and/feature/my/MyNavigation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializable
import org.sopt.and.feature.main.MainTabRoute
import org.sopt.and.core.navigation.MainTabRoute

fun NavController.navigateMy(
navOptions: NavOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializable
import org.sopt.and.feature.main.MainTabRoute
import org.sopt.and.core.navigation.MainTabRoute

fun NavController.navigateSearch(
navOptions: NavOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializable
import org.sopt.and.feature.main.MainTabRoute
import org.sopt.and.core.navigation.MainTabRoute

fun NavController.navigateSignIn() {
navigate(SignIn)
Expand Down
7 changes: 3 additions & 4 deletions app/src/main/java/org/sopt/and/feature/signin/SignInRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
Expand All @@ -37,9 +36,9 @@ import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.flowWithLifecycle
import org.sopt.and.R
import org.sopt.and.feature.component.RoundedButton
import org.sopt.and.feature.component.AuthTextField
import org.sopt.and.feature.component.TopBar
import org.sopt.and.core.component.RoundedButton
import org.sopt.and.core.component.AuthTextField
import org.sopt.and.core.component.TopBar
import org.sopt.and.ui.theme.ANDANDROIDTheme
import org.sopt.and.ui.theme.Black
import org.sopt.and.ui.theme.LightGray
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializable
import org.sopt.and.feature.main.MainTabRoute
import org.sopt.and.core.navigation.MainTabRoute

fun NavController.navigateSignUp() {
navigate(SignUp)
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/java/org/sopt/and/feature/signup/SignUpRoute.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.lifecycle.flowWithLifecycle
import org.sopt.and.R
import org.sopt.and.feature.component.ExpandedButton
import org.sopt.and.feature.component.AuthTextField
import org.sopt.and.feature.component.TopBar
import org.sopt.and.showToast
import org.sopt.and.core.component.ExpandedButton
import org.sopt.and.core.component.AuthTextField
import org.sopt.and.core.component.TopBar
import org.sopt.and.core.extension.showToast
import org.sopt.and.ui.theme.ANDANDROIDTheme
import org.sopt.and.ui.theme.Black
import org.sopt.and.ui.theme.LightGray
Expand Down

0 comments on commit f512b35

Please sign in to comment.