-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
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) |
There was a problem hiding this comment.
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/") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
As I was exploring the code, there were somethings that seems could be slightly cleaned up.
Happy to drop all or revert some.