-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor platform screen and unwrap extra android nav controller
- Loading branch information
Showing
13 changed files
with
95 additions
and
159 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
29 changes: 29 additions & 0 deletions
29
...eApp/src/androidMain/kotlin/composegears/tiamat/example/PlatformExamplesScreen.android.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,29 @@ | ||
package composegears.tiamat.example | ||
|
||
import composegears.tiamat.example.PlatformConfig.PlatformDestination | ||
import composegears.tiamat.example.platform.AndroidViewLifecycleScreen | ||
import composegears.tiamat.example.platform.DeeplinkScreen | ||
import composegears.tiamat.example.platform.SavedStateScreen | ||
import composegears.tiamat.sample.koin.KoinIntegrationScreen | ||
|
||
actual val platformExamplesConfig = PlatformConfig( | ||
platformName = "Android", | ||
availableScreens = listOf( | ||
PlatformDestination( | ||
name = "Android SavedState", | ||
destination = SavedStateScreen | ||
), | ||
PlatformDestination( | ||
name = "AndroidView + Lifecycle handle", | ||
destination = AndroidViewLifecycleScreen | ||
), | ||
PlatformDestination( | ||
name = "Deeplink", | ||
destination = DeeplinkScreen | ||
), | ||
PlatformDestination( | ||
name = "Koin (ViewModel/SharedViewModel)", | ||
destination = KoinIntegrationScreen | ||
) | ||
) | ||
) |
60 changes: 0 additions & 60 deletions
60
...rc/androidMain/kotlin/composegears/tiamat/example/common/PlatformExampleScreen.android.kt
This file was deleted.
Oops, something went wrong.
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
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
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
14 changes: 14 additions & 0 deletions
14
...eApp/src/desktopMain/kotlin/composegears/tiamat/example/PlatformExamplesScreen.desktop.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,14 @@ | ||
package composegears.tiamat.example | ||
|
||
import composegears.tiamat.example.PlatformConfig.PlatformDestination | ||
import composegears.tiamat.sample.koin.KoinIntegrationScreen | ||
|
||
actual val platformExamplesConfig = PlatformConfig( | ||
platformName = "Desktop", | ||
availableScreens = listOf( | ||
PlatformDestination( | ||
name = "Koin (ViewModel/SharedViewModel)", | ||
destination = KoinIntegrationScreen | ||
) | ||
) | ||
) |
31 changes: 0 additions & 31 deletions
31
...rc/desktopMain/kotlin/composegears/tiamat/example/common/PlatformExampleScreen.desktop.kt
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...p/composeApp/src/iosMain/kotlin/composegears/tiamat/example/PlatformExamplesScreen.ios.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,13 @@ | ||
package composegears.tiamat.example | ||
|
||
import composegears.tiamat.sample.koin.KoinIntegrationScreen | ||
|
||
actual val platformExamplesConfig = PlatformConfig( | ||
platformName = "iOS", | ||
availableScreens = listOf( | ||
PlatformConfig.PlatformDestination( | ||
name = "Koin (ViewModel/SharedViewModel)", | ||
destination = KoinIntegrationScreen | ||
) | ||
) | ||
) |
30 changes: 0 additions & 30 deletions
30
...oseApp/src/iosMain/kotlin/composegears/tiamat/example/common/PlatformExampleScreen.ios.kt
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...oseApp/src/wasmJsMain/kotlin/composegears/tiamat/example/PlatformExamplesScreen.wasmJs.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 composegears.tiamat.example | ||
|
||
actual val platformExamplesConfig = PlatformConfig( | ||
platformName = "Wasm", | ||
availableScreens = emptyList() | ||
) |
17 changes: 0 additions & 17 deletions
17
.../src/wasmJsMain/kotlin/composegears/tiamat/example/common/PlatformExampleScreen.wasmJs.kt
This file was deleted.
Oops, something went wrong.
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