Skip to content

Commit

Permalink
Dependency updates 20240916 (#17071)
Browse files Browse the repository at this point in the history
* build(deps): `yarn upgrade --latest` in tools/localization

* chore(deps): bump org.jetbrains.kotlinx:kotlinx-coroutines-test

Bumps [org.jetbrains.kotlinx:kotlinx-coroutines-test](https://github.com/Kotlin/kotlinx.coroutines) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases)
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md)
- [Commits](Kotlin/kotlinx.coroutines@1.8.1...1.9.0)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-test
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

* Update Gradle Wrapper from 8.10 to 8.10.1.

Signed-off-by: gradle-update-robot <[email protected]>

---------

Signed-off-by: gradle-update-robot <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gradle-update-robot <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 83ed107 commit 49a7651
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import kotlinx.coroutines.CompletionHandler
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.InternalCoroutinesApi
import kotlinx.coroutines.InternalForInheritanceCoroutinesApi
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
import org.junit.runner.RunWith
Expand All @@ -32,6 +33,7 @@ import kotlin.test.assertNotNull
import kotlin.test.assertNull

@RunWith(AndroidJUnit4::class)
@InternalForInheritanceCoroutinesApi
class VideoPlayerTest : RobolectricTest() {

@Test
Expand All @@ -51,6 +53,7 @@ class VideoPlayerTest : RobolectricTest() {
}

// TODO: use a mock - couldn't get mockk working here
@InternalForInheritanceCoroutinesApi
class MockContinuation : CancellableContinuation<Unit> {
var result: Result<Unit>? = null

Expand Down Expand Up @@ -97,10 +100,10 @@ class VideoPlayerTest : RobolectricTest() {
}

@InternalCoroutinesApi
override fun tryResume(
value: Unit,
override fun <R : Unit> tryResume(
value: R,
idempotent: Any?,
onCancellation: ((cause: Throwable) -> Unit)?
onCancellation: ((cause: Throwable, value: R, context: CoroutineContext) -> Unit)?
): Any? {
TODO("Not yet implemented")
}
Expand All @@ -110,11 +113,23 @@ class VideoPlayerTest : RobolectricTest() {
TODO("Not yet implemented")
}

@Deprecated(
"Use the overload that also accepts the `value` and the coroutine context in lambda",
replaceWith = ReplaceWith("resume(value) { cause, _, _ -> onCancellation(cause) }"),
level = DeprecationLevel.WARNING
)
@ExperimentalCoroutinesApi
override fun resume(value: Unit, onCancellation: ((cause: Throwable) -> Unit)?) {
TODO("Not yet implemented")
}

override fun <R : Unit> resume(
value: R,
onCancellation: ((cause: Throwable, value: R, context: CoroutineContext) -> Unit)?
) {
TODO("Not yet implemented")
}

override fun resumeWith(result: Result<Unit>) {
this.result = result
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ commonsCompress = "1.27.1"
commonsExec = "1.4.0"
# https://commons.apache.org/proper/commons-io/changes-report.html
commonsIo = "2.16.1"
coroutines = '1.8.1'
coroutines = '1.9.0'
desugar-jdk-libs-nio = "2.1.2"
drawer = "1.0.3"
dokka = "1.9.20"
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
14 changes: 7 additions & 7 deletions tools/localization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
"axios": "^1.7.7",
"dotenv": "^16.4.4",
"extract-zip": "^2.0.1",
"typescript": "^5.3.3"
"typescript": "^5.6.2"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.1",
"@types/jest": "^29.5.12",
"@types/node": "^22.5.4",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"eslint": "^9.9.1",
"@eslint/js": "^9.10.0",
"@types/jest": "^29.5.13",
"@types/node": "^22.5.5",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.30.0",
Expand Down
Loading

0 comments on commit 49a7651

Please sign in to comment.