Skip to content

A bunch of minor edits. #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 31, 2024
Merged

A bunch of minor edits. #269

merged 2 commits into from
Dec 31, 2024

Conversation

yschimke
Copy link
Contributor

@yschimke yschimke commented Dec 31, 2024

As I was exploring the code, there were somethings that seems could be slightly cleaned up.

Happy to drop all or revert some.

As I was exploring the code, there were somethings that seems could be cleanup up slightly.

Happy to drop all or revert some.
@@ -66,9 +67,11 @@ kotlin {
}

androidMain.dependencies {
implementation(libs.ktor.client.android)
implementation(libs.ktor.client.okhttp)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better than Android HttpClient. Http/2.

Not used on JVM, since HttpClient is modern.

expectSuccess = true

defaultRequest {
url("https://api.citybik.es/")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for easier mock testing, but already a param so can revert.

// workaround for https://youtrack.jetbrains.com/issue/CMP-5959/Invalid-redirect-in-window-core#focus=Comments-27-10365630.0-0
implementation("androidx.window:window-core:1.3.0")
implementation(libs.slf4j.android)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enable logging output

androidGradlePlugin = "8.7.3"
androidxActivity = "1.9.3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mainly a sort


val countriesViewModel: CountriesViewModelShared
val networksViewModel: NetworksViewModelShared
val stationsViewModel: StationsViewModelShared
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are needed right now for iOS client

@joreilly joreilly merged commit 2bb448c into joreilly:main Dec 31, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants