Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed May 21, 2024
1 parent b95ea21 commit 97bb453
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ public interface NavigatorScreenLifecycleProvider {

public fun provide(screen: Screen): List<ScreenLifecycleContentProvider>
}

Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package cafe.adriel.voyager.jetpack

import android.app.Activity
import android.app.Application
import android.content.Context
import android.content.ContextWrapper
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ProvidedValue
import androidx.compose.ui.platform.LocalContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ public fun ProvideNavigatorLifecycleKMPSupport(
public class JetpackSupportProvider : NavigatorScreenLifecycleProvider {
override fun provide(screen: Screen): List<ScreenLifecycleContentProvider> =
listOf(ScreenLifecycleStore.get(screen) { ScreenLifecycleKMPOwner() })

}
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ public class VoyagerLifecycleKMPOwner :
}
}



private fun LifecycleRegistry.safeHandleLifecycleEvent(event: Lifecycle.Event) {
val currentState = currentState
if (!currentState.isAtLeast(Lifecycle.State.INITIALIZED)) return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ public inline fun <reified VM : ViewModel> navigatorViewModel(
viewModelStoreOwner = viewModelStoreOwner,
key = key,
factory = factory,
extras = extras,
extras = extras
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ internal actual class SavedStateViewModelPlatform actual constructor(
) {
public actual fun getDefaultViewModelProviderFactory(): ViewModelProvider.Factory {
return object : ViewModelProvider.Factory {

}
}

Expand All @@ -21,5 +20,4 @@ internal actual class SavedStateViewModelPlatform actual constructor(
public actual fun initHooks() {}

public actual fun provideHooks(): List<ProvidedValue<*>> = emptyList()

}

0 comments on commit 97bb453

Please sign in to comment.