-
Notifications
You must be signed in to change notification settings - Fork 65
Updated kotlin to 1.2.41 and coroutines to 0.23.1. #39
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
build.gradle.kts
Outdated
| compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.5") | ||
| compile("com.squareup.retrofit2:retrofit:2.4.0") | ||
| testCompile("junit:junit:4.12") | ||
| implementation("org.jetbrains.kotlin:kotlin-stdlib") |
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.
Please, do not use implementation configuration for stdlib and other dependencies. We do not want to hide stdlib from transitive dependencies
Use compile instead (api configuration is not available without java-library Gradle plugin and not a better than compile in this case)
| * | ||
| * @return Result of request or throw exception | ||
| */ | ||
| public suspend fun <T : Any> Call<T>.await(): T { |
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.
Please return back all explicit public modifiers.
| import kotlinx.coroutines.experimental.Unconfined | ||
| import kotlinx.coroutines.experimental.async | ||
| import kotlinx.coroutines.experimental.runBlocking | ||
| import kotlinx.coroutines.experimental.* |
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.
Do not use star import
|
Thanks for your contibution, I added a few comments. If you want to release it soon, please also update README.md and CHANGELOG.md. And I will release it |
….23.0, where CoroutineScope.coroutineContext was deprecated and replaced with top-level function.
…ored code to use invokeOnCancellation instead.
|
Updated pull request based on comments. |
|
Thanks, merged, will bump version to 0.11 and publish |
This update fixes issues caused by breaking changes in kotlin coroutines 0.23.0: