diff --git a/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt b/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt index 11863c45fc..0575adaf13 100644 --- a/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt +++ b/app/src/main/java/com/afternote/afternote_fe/navigation/AppNavigation.kt @@ -49,8 +49,6 @@ fun AppNavigation( val showBottomBar = appState.shouldShowBottomBar(currentDestination) val currentTab = appState.getCurrentNavTab(currentDestination) - NavigationDebugLogger(navEntry, currentDestination, showBottomBar, currentTab) - val onboardingNavActions = rememberOnboardingNavActions(appState.navController) val mindRecordNavActions = rememberMindRecordNavActions(appState.navController) val settingNavActions = rememberSettingNavActions(appState) diff --git a/app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt b/app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt deleted file mode 100644 index c0887467ce..0000000000 --- a/app/src/main/java/com/afternote/afternote_fe/navigation/NavigationDebugLogger.kt +++ /dev/null @@ -1,42 +0,0 @@ -package com.afternote.afternote_fe.navigation - -import android.util.Log -import androidx.compose.runtime.Composable -import androidx.compose.runtime.LaunchedEffect -import androidx.navigation.NavBackStackEntry -import androidx.navigation.NavDestination -import androidx.navigation.NavDestination.Companion.hasRoute -import androidx.navigation.NavDestination.Companion.hierarchy -import com.afternote.afternote_fe.BuildConfig -import com.afternote.core.ui.Route -import com.afternote.core.ui.bottombar.BottomNavTab -import com.afternote.feature.afternote.presentation.author.navigation.model.AfternoteRoute - -private const val NAV_BOTTOM_BAR_DEBUG_TAG = "NavBottomBarDebug" - -@Composable -fun NavigationDebugLogger( - navEntry: NavBackStackEntry?, - currentDestination: NavDestination?, - showBottomBar: Boolean, - currentTab: BottomNavTab, -) { - if (BuildConfig.DEBUG) { - val hierarchyRoutes = - currentDestination?.hierarchy?.mapNotNull { it.route }?.joinToString(prefix = "[", postfix = "]") - val hasRouteAfternoteGraph = currentDestination?.hasRoute(Route.Afternote::class) == true - val hasRouteAfternoteHome = currentDestination?.hasRoute(AfternoteRoute.AfternoteHomeRoute::class) == true - val hasRouteEditor = currentDestination?.hasRoute(AfternoteRoute.EditorRoute::class) == true - LaunchedEffect(navEntry?.id, currentDestination?.route, showBottomBar, currentTab) { - Log.d( - NAV_BOTTOM_BAR_DEBUG_TAG, - "entryId=${navEntry?.id} destRoute=${currentDestination?.route} " + - "hierarchyRoutes=$hierarchyRoutes " + - "shouldShowBottomBar=$showBottomBar currentNavTab=$currentTab " + - "hasRoute(Route.Afternote)=$hasRouteAfternoteGraph " + - "hasRoute(AfternoteHomeRoute)=$hasRouteAfternoteHome " + - "hasRoute(EditorRoute)=$hasRouteEditor", - ) - } - } -}