-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create computeable callable * Reduce visibility of error serializable * Remove routing dependency * chore(deps): update terraform google to v5.16.0 (#844) Co-authored-by: playground-manager[bot] <126197455+playground-manager[bot]@users.noreply.github.com> * fix(deps): update slack.circuit to v0.19.1 (#843) * fix(deps): update slack.circuit to v0.19.1 * Adjust saveable back stack with initial screen * Provide fake navigator with initial screen --------- Co-authored-by: playground-manager[bot] <126197455+playground-manager[bot]@users.noreply.github.com> Co-authored-by: Ash Davies <[email protected]> * Adjust lat lng state and callback * Move state hoisting to expect function * Commas --------- Co-authored-by: playground-manager[bot] <126197455+playground-manager[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4d964f5
commit 040e2f9
Showing
13 changed files
with
270 additions
and
36 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
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
6 changes: 3 additions & 3 deletions
6
map-routes/src/commonMain/kotlin/io/ashdavies/routes/RouteFactory.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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package io.ashdavies.routes | ||
|
||
import androidx.compose.runtime.remember | ||
import com.slack.circuit.runtime.presenter.Presenter | ||
import com.slack.circuit.runtime.ui.Ui | ||
import io.ashdavies.circuit.presenterFactoryOf | ||
import io.ashdavies.circuit.uiFactoryOf | ||
import io.ashdavies.content.PlatformContext | ||
|
||
public fun RoutePresenterFactory(context: PlatformContext): Presenter.Factory { | ||
val locationService = LocationService(context) | ||
return presenterFactoryOf<RouteScreen> { _, _ -> | ||
RoutePresenter(locationService) | ||
RoutePresenter(remember(context) { LocationService(context) }) | ||
} | ||
} | ||
|
||
public fun RouteUiFactory(): Ui.Factory { | ||
return uiFactoryOf<RouteScreen, RouteScreen.State> { _, state, modifier -> | ||
RouteScreen(state, modifier) | ||
RouteScreen(state, modifier) { state.eventSink(RouteScreen.Event.OnEndPosition(it)) } | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
id("io.ashdavies.default") | ||
} | ||
|
||
android { | ||
namespace = "io.ashdavies.routing" | ||
} | ||
|
||
kotlin { | ||
commonMain.dependencies { | ||
implementation(projects.httpClient) | ||
implementation(projects.httpCommon) | ||
|
||
implementation(libs.kotlinx.serialization.core) | ||
implementation(libs.kotlinx.datetime) | ||
implementation(libs.ktor.client.core) | ||
} | ||
} |
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,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest /> |
Oops, something went wrong.