-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #579 from KovalevAndrey/2.x-expose-android-lifecycle
Expose AndroidLifecycle for Android targets + create a helper function
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...vigation/common/src/androidMain/kotlin/com/bumble/appyx/navigation/node/AndroidNodeExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bumble.appyx.navigation.node | ||
|
||
import com.bumble.appyx.navigation.platform.PlatformLifecycleRegistry | ||
|
||
val Node.androidLifecycle: androidx.lifecycle.Lifecycle | ||
get() = (lifecycle as PlatformLifecycleRegistry).androidLifecycleRegistry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters