Skip to content

Commit

Permalink
Remove depreceiated stuff from navigation graph
Browse files Browse the repository at this point in the history
And cleanup duplicate code

Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam committed Dec 15, 2023
1 parent 7f1ce9e commit 153fd8f
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 210 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ dependencies {
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2"
implementation "androidx.navigation:navigation-compose:2.7.6"
// Jetpack compose.
implementation "androidx.compose.ui:ui"
implementation "androidx.compose.ui:ui-tooling-preview"
Expand All @@ -94,7 +95,6 @@ dependencies {
implementation "androidx.compose.material3:material3"
// Accompanist compose.
implementation "com.google.accompanist:accompanist-systemuicontroller:0.28.0"
implementation "com.google.accompanist:accompanist-navigation-animation:0.33.1-alpha"
// Recycler View for reader.
implementation "androidx.recyclerview:recyclerview:1.3.2"
// Material theme for main activity.
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/starry/myne/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class MainViewModel @Inject constructor(private val welcomeDataStore: WelcomeDat

init {
viewModelScope.launch {
// Check if user has completed onboarding.
welcomeDataStore.readOnBoardingState().collect { completed ->
if (completed) {
_startDestination.value = BottomBarScreen.Home.route
Expand Down
Loading

0 comments on commit 153fd8f

Please sign in to comment.