From 30904141589df5ea0ba8e4b2a2ce5a76e20751fc Mon Sep 17 00:00:00 2001 From: vanderbr <11340250+vanderbr@users.noreply.github.com> Date: Sun, 22 Nov 2026 12:31:18 +0000 Subject: [PATCH 1/3] Release 0.4.6 --- .../workflows/crates-package-preflight.yml | 2 +- .github/workflows/crates-release.yml | 2 +- .github/workflows/dependency-security.yml | 11 +- .../kotlin-android-package-preflight.yml | 2 +- .../kotlin-android-package-release.yml | 2 +- .github/workflows/npm-package-preflight.yml | 2 +- .github/workflows/npm-package-release.yml | 2 +- .github/workflows/swift-package-preflight.yml | 2 +- .github/workflows/swift-package-release.yml | 2 +- CHANGELOG.md | 7 +- Cargo.lock | 32 +- Package.swift | 6 +- README.md | 10 +- crates/adapter/Cargo.toml | 6 +- crates/base64/Cargo.toml | 4 +- crates/base64url/Cargo.toml | 2 +- crates/cbor/Cargo.toml | 4 +- crates/codec/Cargo.toml | 22 +- crates/codec/README.md | 2 +- crates/codec/tests/expanded_contract_tests.rs | 2 +- crates/ffi/Cargo.toml | 8 +- crates/hex/Cargo.toml | 2 +- crates/jcs/Cargo.toml | 2 +- crates/multibase/Cargo.toml | 4 +- crates/multicodec/Cargo.toml | 2 +- crates/multikey/Cargo.toml | 8 +- crates/pem/Cargo.toml | 4 +- crates/proto/Cargo.toml | 2 +- crates/proto/README.md | 2 +- crates/wasm/Cargo.toml | 8 +- fuzz/Cargo.lock | 26 +- fuzz/tests/targets/base64.rs | 5 +- fuzz/tests/targets/guarded_json.rs | 8 +- fuzz/tests/targets/tlv.rs | 1 - packages/dependency-security.gradle.kts | 81 ++ packages/kotlin-android/README.md | 2 +- packages/kotlin-android/build.gradle.kts | 11 +- .../buildscript-gradle.lockfile | 116 ++ .../consumer-r8-runtime/build.gradle.kts | 2 +- .../buildscript-gradle.lockfile | 4 + packages/kotlin-android/gradle.lockfile | 286 ++-- .../gradle/verification-metadata.xml | 1160 +++++++++++++++++ .../kotlin-android/runtime/gradle.lockfile | 4 +- packages/kotlin-android/settings.gradle.kts | 2 + packages/kotlin/README.md | 2 +- packages/kotlin/build.gradle.kts | 23 +- packages/kotlin/buildscript-gradle.lockfile | 27 + packages/kotlin/gradle.lockfile | 72 +- .../kotlin/gradle/verification-metadata.xml | 365 ++++++ .../gradle/wrapper/gradle-wrapper.properties | 4 +- packages/kotlin/runtime/gradle.lockfile | 2 +- packages/kotlin/settings.gradle.kts | 2 + .../main/kotlin/me/really/codec/CallCodec.kt | 21 +- .../me/really/codec/ConvertCborProto.kt | 105 +- .../codec/ReallyMeCodecRustNativeProvider.kt | 2 +- .../kotlin/me/really/codec/ValidateCbor.kt | 25 +- .../me/really/codec/ValidateProviderCbor.kt | 66 +- .../kotlin/me/really/codec/WithCodecBytes.kt | 27 +- .../me/really/codec/CodecVectorFixture.kt | 45 +- .../codec/DeterministicCborVectorTest.kt | 90 +- .../really/codec/NativeProviderSafetyTest.kt | 3 +- .../me/really/codec/PemBundleVectorTest.kt | 6 +- packages/swift/README.md | 2 +- .../ReallyMeCodec/CallCodecWithRustCAbi.swift | 2 +- .../ProviderSafetyTests.swift | 4 +- packages/ts/package-lock.json | 12 +- packages/ts/package.json | 8 +- probes/der-feature-unification/Cargo.lock | 10 +- probes/der-feature-unification/Cargo.toml | 2 +- probes/jcs-feature-unification/Cargo.lock | 8 +- probes/jcs-feature-unification/Cargo.toml | 2 +- scripts/check_local_proto_tools.mjs | 2 +- scripts/check_local_proto_tools.test.mjs | 4 +- scripts/check_release_readiness.mjs | 56 +- scripts/gradle_runtime_lockfiles.py | 4 +- scripts/install_local_proto_tools.sh | 6 +- scripts/promote_maven_publications.test.mjs | 6 +- scripts/publish_crates_in_order.mjs | 2 +- .../release-readiness/sdk-source-policy.mjs | 2 +- scripts/run_pinned_release_readiness.mjs | 2 +- scripts/verify_gradle_checksum_provenance.py | 4 + .../verify_gradle_checksum_provenance_test.py | 17 + 82 files changed, 2400 insertions(+), 516 deletions(-) create mode 100644 packages/dependency-security.gradle.kts create mode 100644 packages/kotlin-android/buildscript-gradle.lockfile create mode 100644 packages/kotlin-android/consumer-r8-runtime/buildscript-gradle.lockfile create mode 100644 packages/kotlin/buildscript-gradle.lockfile diff --git a/.github/workflows/crates-package-preflight.yml b/.github/workflows/crates-package-preflight.yml index 432271ab..1dd53f68 100644 --- a/.github/workflows/crates-package-preflight.yml +++ b/.github/workflows/crates-package-preflight.yml @@ -13,7 +13,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Full commit SHA on main used for this release required: true diff --git a/.github/workflows/crates-release.yml b/.github/workflows/crates-release.yml index fa75f8aa..3409834d 100644 --- a/.github/workflows/crates-release.yml +++ b/.github/workflows/crates-release.yml @@ -11,7 +11,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Copy the full source SHA from the successful Crates Package Preflight summary required: true diff --git a/.github/workflows/dependency-security.yml b/.github/workflows/dependency-security.yml index 2287ef8b..ac006b8b 100644 --- a/.github/workflows/dependency-security.yml +++ b/.github/workflows/dependency-security.yml @@ -50,14 +50,15 @@ jobs: --lockfile=./packages/kotlin-android/runtime/gradle.lockfile scan-build-tooling: - name: Report Gradle build tooling advisories + name: Gate Gradle build tooling advisories uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@32d3cd482bdadfb38b186c0ad1b031902d55d932 # v2.7.1 with: upload-sarif: false - # AGP's lint and test tools resolve versions that are not shipped in the - # Maven artifacts. Keep their advisories visible without blocking a - # release whose published runtime dependencies scan cleanly. - fail-on-vuln: false + # Tooling executes during builds, so its advisories must fail CI too. + fail-on-vuln: true scan-args: |- --lockfile=./packages/kotlin/gradle.lockfile --lockfile=./packages/kotlin-android/gradle.lockfile + --lockfile=./packages/kotlin/buildscript-gradle.lockfile + --lockfile=./packages/kotlin-android/buildscript-gradle.lockfile + --lockfile=./packages/kotlin-android/consumer-r8-runtime/buildscript-gradle.lockfile diff --git a/.github/workflows/kotlin-android-package-preflight.yml b/.github/workflows/kotlin-android-package-preflight.yml index 799c22a3..dfd15e3c 100644 --- a/.github/workflows/kotlin-android-package-preflight.yml +++ b/.github/workflows/kotlin-android-package-preflight.yml @@ -13,7 +13,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Full commit SHA on main used for this release required: true diff --git a/.github/workflows/kotlin-android-package-release.yml b/.github/workflows/kotlin-android-package-release.yml index 278cb710..bde2774b 100644 --- a/.github/workflows/kotlin-android-package-release.yml +++ b/.github/workflows/kotlin-android-package-release.yml @@ -11,7 +11,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Copy the full source SHA from the successful Kotlin Android Package Preflight summary required: true diff --git a/.github/workflows/npm-package-preflight.yml b/.github/workflows/npm-package-preflight.yml index 6b1eca77..061e1ad7 100644 --- a/.github/workflows/npm-package-preflight.yml +++ b/.github/workflows/npm-package-preflight.yml @@ -13,7 +13,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Full commit SHA on main used for this release required: true diff --git a/.github/workflows/npm-package-release.yml b/.github/workflows/npm-package-release.yml index aff2f3ae..30d96aa3 100644 --- a/.github/workflows/npm-package-release.yml +++ b/.github/workflows/npm-package-release.yml @@ -11,7 +11,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Copy the full source SHA from the successful npm Package Preflight summary required: true diff --git a/.github/workflows/swift-package-preflight.yml b/.github/workflows/swift-package-preflight.yml index b42bff45..009c9594 100644 --- a/.github/workflows/swift-package-preflight.yml +++ b/.github/workflows/swift-package-preflight.yml @@ -13,7 +13,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Full commit SHA on main used for this release required: true diff --git a/.github/workflows/swift-package-release.yml b/.github/workflows/swift-package-release.yml index c294bfb2..b853efd9 100644 --- a/.github/workflows/swift-package-release.yml +++ b/.github/workflows/swift-package-release.yml @@ -11,7 +11,7 @@ on: description: Release version without leading v required: true type: string - default: 0.4.5 + default: 0.4.6 source_sha: description: Copy the full source SHA from the successful Swift Package Preflight summary required: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 84172bd9..fbafbc54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog -## 0.4.5 (unreleased) +## 0.4.6 (unreleased) + +- Update Rust, TypeScript and Kotlin dependencies and the Swift protobuf generator. +- Apply patched transitive dependencies to JVM and Android build tooling. + +## 0.4.5 - Allow explicit general-CBOR input, output, and aggregate byte-string budgets up to 2 MiB. Defaults remain 1 MiB; other resource limits are unchanged. diff --git a/Cargo.lock b/Cargo.lock index 96f83d7e..6583fe4b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -317,9 +317,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" dependencies = [ "foldhash", "serde", @@ -638,7 +638,7 @@ dependencies = [ [[package]] name = "reallyme-codec" -version = "0.4.5" +version = "0.4.6" dependencies = [ "der", "proptest", @@ -662,7 +662,7 @@ dependencies = [ [[package]] name = "reallyme-codec-adapter" -version = "0.4.5" +version = "0.4.6" dependencies = [ "reallyme-codec", "reallyme-codec-multibase", @@ -670,7 +670,7 @@ dependencies = [ [[package]] name = "reallyme-codec-base64" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "reallyme-codec-proto", @@ -680,7 +680,7 @@ dependencies = [ [[package]] name = "reallyme-codec-base64url" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "serde", @@ -691,7 +691,7 @@ dependencies = [ [[package]] name = "reallyme-codec-cbor" -version = "0.4.5" +version = "0.4.6" dependencies = [ "cid", "half", @@ -708,7 +708,7 @@ dependencies = [ [[package]] name = "reallyme-codec-ffi" -version = "0.4.5" +version = "0.4.6" dependencies = [ "jni", "reallyme-buffa", @@ -720,7 +720,7 @@ dependencies = [ [[package]] name = "reallyme-codec-hex" -version = "0.4.5" +version = "0.4.6" dependencies = [ "thiserror", "zeroize", @@ -728,7 +728,7 @@ dependencies = [ [[package]] name = "reallyme-codec-jcs" -version = "0.4.5" +version = "0.4.6" dependencies = [ "itoa", "ryu-js", @@ -741,7 +741,7 @@ dependencies = [ [[package]] name = "reallyme-codec-multibase" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "bs58", @@ -752,14 +752,14 @@ dependencies = [ [[package]] name = "reallyme-codec-multicodec" -version = "0.4.5" +version = "0.4.6" dependencies = [ "thiserror", ] [[package]] name = "reallyme-codec-multikey" -version = "0.4.5" +version = "0.4.6" dependencies = [ "reallyme-codec-base64url", "reallyme-codec-multibase", @@ -770,7 +770,7 @@ dependencies = [ [[package]] name = "reallyme-codec-pem" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "pem", @@ -782,7 +782,7 @@ dependencies = [ [[package]] name = "reallyme-codec-proto" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "reallyme-buffa", @@ -795,7 +795,7 @@ dependencies = [ [[package]] name = "reallyme-codec-wasm" -version = "0.4.5" +version = "0.4.6" dependencies = [ "js-sys", "reallyme-codec", diff --git a/Package.swift b/Package.swift index f006096e..452f98c3 100644 --- a/Package.swift +++ b/Package.swift @@ -8,7 +8,7 @@ // SwiftPM and Xcode only read `Package.swift` at the repository root when a // package is consumed by URL, e.g. // -// .package(url: "https://github.com/reallyme/codec", from: "0.4.5") +// .package(url: "https://github.com/reallyme/codec", from: "0.4.6") // .product(name: "ReallyMeCodec", package: "codec") // // The Swift sources live under `packages/swift/` to keep symmetry with the @@ -22,9 +22,9 @@ let ffiArtifactChecksumPlaceholder = "0000000000000000000000000000000000000000000000000000000000000000" // Keep the binary dependency disabled until preflight binds the matching archive. let ffiArtifactChecksum = "0000000000000000000000000000000000000000000000000000000000000000" -let ffiArtifactVersion = "0.4.5" +let ffiArtifactVersion = "0.4.6" let ffiArtifactLocalPathOverride = "" -let packageVersion = "0.4.5" +let packageVersion = "0.4.6" let hasReleasedFfiArtifact = ffiArtifactChecksum != ffiArtifactChecksumPlaceholder && ffiArtifactVersion == packageVersion let useRuntimeFfiProvider = diff --git a/README.md b/README.md index 85638f66..42056a72 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ strict DER reader or the borrowed `tlv` framing surface separately and select only the families they use: ```toml -reallyme-codec = { version = "0.4.5", default-features = false, features = [ +reallyme-codec = { version = "0.4.6", default-features = false, features = [ "base64url", "multikey", ] } @@ -117,7 +117,7 @@ Swift 6.3 or newer is required. ```swift .package( url: "https://github.com/reallyme/codec", - from: "0.4.5" + from: "0.4.6" ) ``` @@ -129,7 +129,7 @@ Swift 6.3 or newer is required. ```kotlin dependencies { - implementation("me.really:codec:0.4.5") + implementation("me.really:codec:0.4.6") } ``` @@ -137,7 +137,7 @@ dependencies { ```kotlin dependencies { - implementation("me.really:codec-android:0.4.5") + implementation("me.really:codec-android:0.4.6") } ``` @@ -161,7 +161,7 @@ compatible fixes increment the patch version, such as `0.4.0` to `0.4.1`. For Rust consumers, pin to the minor line you have reviewed, for example `reallyme-codec = "0.4"`. A full version written by `cargo add`, such as -`reallyme-codec = "0.4.5"`, uses Cargo caret semantics and remains on the same +`reallyme-codec = "0.4.6"`, uses Cargo caret semantics and remains on the same `0.4.x` compatibility line. For npm, Maven, SwiftPM, and release artifacts used in production, prefer exact versions or locked dependency files so every language lane runs the same reviewed codec release. diff --git a/crates/adapter/Cargo.toml b/crates/adapter/Cargo.toml index 042f567d..583ace86 100644 --- a/crates/adapter/Cargo.toml +++ b/crates/adapter/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-adapter" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -13,10 +13,10 @@ publish.workspace = true description = "Internal scalar policy for ReallyMe codec boundaries." [dependencies] -codec-runtime = { package = "reallyme-codec", version = "=0.4.5", path = "../codec", default-features = false, features = ["operation-contract"] } +codec-runtime = { package = "reallyme-codec", version = "=0.4.6", path = "../codec", default-features = false, features = ["operation-contract"] } [dev-dependencies] -codec-multibase = { package = "reallyme-codec-multibase", version = "=0.4.5", path = "../multibase" } +codec-multibase = { package = "reallyme-codec-multibase", version = "=0.4.6", path = "../multibase" } [lints] workspace = true diff --git a/crates/base64/Cargo.toml b/crates/base64/Cargo.toml index 051304c3..c76780b9 100644 --- a/crates/base64/Cargo.toml +++ b/crates/base64/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-base64" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -17,7 +17,7 @@ include = ["/src/**/*.rs", "/tests/**/*.rs", "/Cargo.toml", "/LICENSE", "/NOTICE name = "codec_base64" [dependencies] -codec-proto = { package = "reallyme-codec-proto", version = "=0.4.5", path = "../proto", default-features = false, features = ["generated"] } +codec-proto = { package = "reallyme-codec-proto", version = "=0.4.6", path = "../proto", default-features = false, features = ["generated"] } base64 = { workspace = true } thiserror = { workspace = true } zeroize = { workspace = true } diff --git a/crates/base64url/Cargo.toml b/crates/base64url/Cargo.toml index 2d292793..968386ad 100644 --- a/crates/base64url/Cargo.toml +++ b/crates/base64url/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-base64url" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true diff --git a/crates/cbor/Cargo.toml b/crates/cbor/Cargo.toml index 38f36efa..bdb01689 100644 --- a/crates/cbor/Cargo.toml +++ b/crates/cbor/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-cbor" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -18,7 +18,7 @@ name = "codec_cbor" [dependencies] buffa.workspace = true -codec-proto = { package = "reallyme-codec-proto", version = "=0.4.5", path = "../proto", features = ["generated"] } +codec-proto = { package = "reallyme-codec-proto", version = "=0.4.6", path = "../proto", features = ["generated"] } half = { workspace = true } cid = { workspace = true } multihash = { workspace = true } diff --git a/crates/codec/Cargo.toml b/crates/codec/Cargo.toml index 433a9433..e441417e 100644 --- a/crates/codec/Cargo.toml +++ b/crates/codec/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -15,16 +15,16 @@ readme = "README.md" include = ["/src/**/*.rs", "/Cargo.toml", "/README.md", "/LICENSE", "/NOTICE"] [dependencies] -codec-base64 = { package = "reallyme-codec-base64", version = "=0.4.5", path = "../base64", optional = true } -codec-base64url = { package = "reallyme-codec-base64url", version = "=0.4.5", path = "../base64url", optional = true } -codec-cbor = { package = "reallyme-codec-cbor", version = "=0.4.5", path = "../cbor", optional = true } -codec-hex = { package = "reallyme-codec-hex", version = "=0.4.5", path = "../hex", optional = true } -codec-jcs = { package = "reallyme-codec-jcs", version = "=0.4.5", path = "../jcs", optional = true } -codec-multibase = { package = "reallyme-codec-multibase", version = "=0.4.5", path = "../multibase", optional = true } -codec-multicodec = { package = "reallyme-codec-multicodec", version = "=0.4.5", path = "../multicodec", optional = true } -codec-multikey = { package = "reallyme-codec-multikey", version = "=0.4.5", path = "../multikey", optional = true } -codec-pem = { package = "reallyme-codec-pem", version = "=0.4.5", path = "../pem", optional = true } -codec-proto = { package = "reallyme-codec-proto", version = "=0.4.5", path = "../proto", default-features = false, features = ["generated"], optional = true } +codec-base64 = { package = "reallyme-codec-base64", version = "=0.4.6", path = "../base64", optional = true } +codec-base64url = { package = "reallyme-codec-base64url", version = "=0.4.6", path = "../base64url", optional = true } +codec-cbor = { package = "reallyme-codec-cbor", version = "=0.4.6", path = "../cbor", optional = true } +codec-hex = { package = "reallyme-codec-hex", version = "=0.4.6", path = "../hex", optional = true } +codec-jcs = { package = "reallyme-codec-jcs", version = "=0.4.6", path = "../jcs", optional = true } +codec-multibase = { package = "reallyme-codec-multibase", version = "=0.4.6", path = "../multibase", optional = true } +codec-multicodec = { package = "reallyme-codec-multicodec", version = "=0.4.6", path = "../multicodec", optional = true } +codec-multikey = { package = "reallyme-codec-multikey", version = "=0.4.6", path = "../multikey", optional = true } +codec-pem = { package = "reallyme-codec-pem", version = "=0.4.6", path = "../pem", optional = true } +codec-proto = { package = "reallyme-codec-proto", version = "=0.4.6", path = "../proto", default-features = false, features = ["generated"], optional = true } buffa = { workspace = true, optional = true } der-core = { workspace = true, optional = true } thiserror = { workspace = true, optional = true } diff --git a/crates/codec/README.md b/crates/codec/README.md index 3080d5ad..a398630d 100644 --- a/crates/codec/README.md +++ b/crates/codec/README.md @@ -5,7 +5,7 @@ PEM, DER and definite TLV framing. ```toml [dependencies] -reallyme-codec = "0.4.5" +reallyme-codec = "0.4.6" ``` ```rust diff --git a/crates/codec/tests/expanded_contract_tests.rs b/crates/codec/tests/expanded_contract_tests.rs index a3a76ff1..92c4811a 100644 --- a/crates/codec/tests/expanded_contract_tests.rs +++ b/crates/codec/tests/expanded_contract_tests.rs @@ -119,7 +119,7 @@ fn scalar_contract_matches_independent_literals() { result.package_minor, result.package_patch ), - (0, 4, 5) + (0, 4, 6) ); } diff --git a/crates/ffi/Cargo.toml b/crates/ffi/Cargo.toml index cd88bfa7..6d5e6845 100644 --- a/crates/ffi/Cargo.toml +++ b/crates/ffi/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-ffi" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -20,9 +20,9 @@ default = ["jni"] jni = ["dep:jni"] [dependencies] -codec-adapter = { package = "reallyme-codec-adapter", version = "=0.4.5", path = "../adapter" } -codec-proto = { package = "reallyme-codec-proto", version = "=0.4.5", path = "../proto", features = ["generated"] } -codec-runtime = { package = "reallyme-codec", version = "=0.4.5", path = "../codec", default-features = false, features = ["operation-contract"] } +codec-adapter = { package = "reallyme-codec-adapter", version = "=0.4.6", path = "../adapter" } +codec-proto = { package = "reallyme-codec-proto", version = "=0.4.6", path = "../proto", features = ["generated"] } +codec-runtime = { package = "reallyme-codec", version = "=0.4.6", path = "../codec", default-features = false, features = ["operation-contract"] } jni = { workspace = true, optional = true } zeroize = { workspace = true } diff --git a/crates/hex/Cargo.toml b/crates/hex/Cargo.toml index b1a49fa4..9dcd127e 100644 --- a/crates/hex/Cargo.toml +++ b/crates/hex/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-hex" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true diff --git a/crates/jcs/Cargo.toml b/crates/jcs/Cargo.toml index 21ad14ab..de917a0c 100644 --- a/crates/jcs/Cargo.toml +++ b/crates/jcs/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-jcs" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true diff --git a/crates/multibase/Cargo.toml b/crates/multibase/Cargo.toml index 58d9d552..63e9562a 100644 --- a/crates/multibase/Cargo.toml +++ b/crates/multibase/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-multibase" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -19,7 +19,7 @@ name = "codec_multibase" [dependencies] base64 = { workspace = true } bs58 = { workspace = true } -codec-base64url = { package = "reallyme-codec-base64url", version = "=0.4.5", path = "../base64url" } +codec-base64url = { package = "reallyme-codec-base64url", version = "=0.4.6", path = "../base64url" } thiserror = { workspace = true } zeroize = { workspace = true } diff --git a/crates/multicodec/Cargo.toml b/crates/multicodec/Cargo.toml index 97acc2af..bfaf64b6 100644 --- a/crates/multicodec/Cargo.toml +++ b/crates/multicodec/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-multicodec" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true diff --git a/crates/multikey/Cargo.toml b/crates/multikey/Cargo.toml index 9ee4313e..d8135bef 100644 --- a/crates/multikey/Cargo.toml +++ b/crates/multikey/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-multikey" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -17,13 +17,13 @@ include = ["/src/**/*.rs", "/tests/**/*.rs", "/Cargo.toml", "/LICENSE", "/NOTICE name = "codec_multikey" [dependencies] -codec-multibase = { package = "reallyme-codec-multibase", version = "=0.4.5", path = "../multibase" } -codec-multicodec = { package = "reallyme-codec-multicodec", version = "=0.4.5", path = "../multicodec" } +codec-multibase = { package = "reallyme-codec-multibase", version = "=0.4.6", path = "../multibase" } +codec-multicodec = { package = "reallyme-codec-multicodec", version = "=0.4.6", path = "../multicodec" } thiserror = { workspace = true } zeroize = { workspace = true } [dev-dependencies] -codec-base64url = { package = "reallyme-codec-base64url", version = "=0.4.5", path = "../base64url" } +codec-base64url = { package = "reallyme-codec-base64url", version = "=0.4.6", path = "../base64url" } [lints] workspace = true diff --git a/crates/pem/Cargo.toml b/crates/pem/Cargo.toml index 3b98689c..6324b4cd 100644 --- a/crates/pem/Cargo.toml +++ b/crates/pem/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-pem" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true @@ -18,7 +18,7 @@ include = ["/src/**/*.rs", "/tests/**/*.rs", "/Cargo.toml", "/README.md", "/LICE name = "codec_pem" [dependencies] -codec-proto = { package = "reallyme-codec-proto", version = "=0.4.5", path = "../proto", features = ["generated"] } +codec-proto = { package = "reallyme-codec-proto", version = "=0.4.6", path = "../proto", features = ["generated"] } base64 = { workspace = true } thiserror = { workspace = true } zeroize = { workspace = true } diff --git a/crates/proto/Cargo.toml b/crates/proto/Cargo.toml index 4da78fe7..d30a9ecb 100644 --- a/crates/proto/Cargo.toml +++ b/crates/proto/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-proto" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true license.workspace = true diff --git a/crates/proto/README.md b/crates/proto/README.md index 51b05e1b..b8fc9911 100644 --- a/crates/proto/README.md +++ b/crates/proto/README.md @@ -9,7 +9,7 @@ discriminated binary protobuf response. ```toml [dependencies] -reallyme-codec-proto = { version = "0.4.5", features = ["generated"] } +reallyme-codec-proto = { version = "0.4.6", features = ["generated"] } ``` The [schema](proto/reallyme/codec/v1/codec.proto) ships with the crate. For diff --git a/crates/wasm/Cargo.toml b/crates/wasm/Cargo.toml index bad6d469..32e0c0e8 100644 --- a/crates/wasm/Cargo.toml +++ b/crates/wasm/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-codec-wasm" -version = "0.4.5" +version = "0.4.6" edition.workspace = true rust-version.workspace = true publish.workspace = true @@ -16,9 +16,9 @@ description = "WASM bindings for the ReallyMe TypeScript codec package." crate-type = ["cdylib", "rlib"] [dependencies] -codec-adapter = { package = "reallyme-codec-adapter", version = "=0.4.5", path = "../adapter" } -codec-proto = { package = "reallyme-codec-proto", version = "=0.4.5", path = "../proto", default-features = false, features = ["generated"] } -codec-core = { package = "reallyme-codec", version = "=0.4.5", path = "../codec", default-features = false, features = ["operation-contract"] } +codec-adapter = { package = "reallyme-codec-adapter", version = "=0.4.6", path = "../adapter" } +codec-proto = { package = "reallyme-codec-proto", version = "=0.4.6", path = "../proto", default-features = false, features = ["generated"] } +codec-core = { package = "reallyme-codec", version = "=0.4.6", path = "../codec", default-features = false, features = ["operation-contract"] } js-sys = { workspace = true } wasm-bindgen = { workspace = true } zeroize = { workspace = true } diff --git a/fuzz/Cargo.lock b/fuzz/Cargo.lock index 89a0fd9c..898a58e2 100644 --- a/fuzz/Cargo.lock +++ b/fuzz/Cargo.lock @@ -274,9 +274,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" dependencies = [ "foldhash", "serde", @@ -483,7 +483,7 @@ dependencies = [ [[package]] name = "reallyme-codec" -version = "0.4.5" +version = "0.4.6" dependencies = [ "der", "reallyme-buffa", @@ -505,7 +505,7 @@ dependencies = [ [[package]] name = "reallyme-codec-base64" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "reallyme-codec-proto", @@ -515,7 +515,7 @@ dependencies = [ [[package]] name = "reallyme-codec-base64url" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "thiserror", @@ -524,7 +524,7 @@ dependencies = [ [[package]] name = "reallyme-codec-cbor" -version = "0.4.5" +version = "0.4.6" dependencies = [ "cid", "half", @@ -539,7 +539,7 @@ dependencies = [ [[package]] name = "reallyme-codec-hex" -version = "0.4.5" +version = "0.4.6" dependencies = [ "thiserror", "zeroize", @@ -547,7 +547,7 @@ dependencies = [ [[package]] name = "reallyme-codec-jcs" -version = "0.4.5" +version = "0.4.6" dependencies = [ "itoa", "ryu-js", @@ -559,7 +559,7 @@ dependencies = [ [[package]] name = "reallyme-codec-multibase" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "bs58", @@ -570,14 +570,14 @@ dependencies = [ [[package]] name = "reallyme-codec-multicodec" -version = "0.4.5" +version = "0.4.6" dependencies = [ "thiserror", ] [[package]] name = "reallyme-codec-multikey" -version = "0.4.5" +version = "0.4.6" dependencies = [ "reallyme-codec-multibase", "reallyme-codec-multicodec", @@ -587,7 +587,7 @@ dependencies = [ [[package]] name = "reallyme-codec-pem" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "reallyme-codec-proto", @@ -597,7 +597,7 @@ dependencies = [ [[package]] name = "reallyme-codec-proto" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "reallyme-buffa", diff --git a/fuzz/tests/targets/base64.rs b/fuzz/tests/targets/base64.rs index 243eb0be..9e4df97d 100644 --- a/fuzz/tests/targets/base64.rs +++ b/fuzz/tests/targets/base64.rs @@ -12,7 +12,9 @@ fuzz_target!(|data: &[u8]| { assert_eq!(codec_base64::bytes_to_base64(&decoded), text); } } - if let (Some(input), Some(output), Some(encoded)) = (data.get(..8), data.get(8..16), data.get(16..)) { + if let (Some(input), Some(output), Some(encoded)) = + (data.get(..8), data.get(8..16), data.get(16..)) + { if let (Ok(input), Ok(output), Ok(text)) = ( <[u8; 8]>::try_from(input), <[u8; 8]>::try_from(output), @@ -27,5 +29,4 @@ fuzz_target!(|data: &[u8]| { } } } - }); diff --git a/fuzz/tests/targets/guarded_json.rs b/fuzz/tests/targets/guarded_json.rs index d1fc2c56..5da29d78 100644 --- a/fuzz/tests/targets/guarded_json.rs +++ b/fuzz/tests/targets/guarded_json.rs @@ -10,8 +10,8 @@ use libfuzzer_sys::fuzz_target; fuzz_target!(|input: &[u8]| { // Exercise the guarded tree and typed projection independently. Invalid // input must return a fixed reason while dropping every partial owner. - drop(std::hint::black_box(reallyme_codec::json::decode(input, None))); - drop(std::hint::black_box( - reallyme_codec::json::from_slice::(input, None), - )); + let decoded = reallyme_codec::json::decode(input, None); + drop(std::hint::black_box(decoded)); + let projected = reallyme_codec::json::from_slice::(input, None); + drop(std::hint::black_box(projected)); }); diff --git a/fuzz/tests/targets/tlv.rs b/fuzz/tests/targets/tlv.rs index b4cc0bc6..2ea9f2cd 100644 --- a/fuzz/tests/targets/tlv.rs +++ b/fuzz/tests/targets/tlv.rs @@ -21,7 +21,6 @@ fuzz_target!(|input: &[u8]| { ..Default::default() }) .into(), - ..Default::default() }; if let Ok(header) = tlv::read_header(input, &options) { assert!(header.consumed_bytes() <= input.len()); diff --git a/packages/dependency-security.gradle.kts b/packages/dependency-security.gradle.kts new file mode 100644 index 00000000..be454d7c --- /dev/null +++ b/packages/dependency-security.gradle.kts @@ -0,0 +1,81 @@ +// SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + +// Install the same rules before plugins resolve and before project classpaths +// are created. Otherwise vulnerable plugin dependencies escape project locks. +val dependencyVersions = mapOf( + "org.jetbrains.kotlin:kotlin-gradle-plugin" to "2.4.21", + "org.bitbucket.b_c:jose4j" to "0.9.7", + "org.jdom:jdom2" to "2.0.6.1", + "com.google.auto.value:auto-value-annotations" to "1.11.1", + "com.google.crypto.tink:tink" to "1.24.0", + "com.google.dagger:dagger" to "2.60.1", + "com.google.guava:failureaccess" to "1.0.3", + "com.google.j2objc:j2objc-annotations" to "3.1", + "com.google.protobuf:protobuf-java" to "4.36.2", + "com.google.protobuf:protobuf-java-util" to "4.36.2", + "com.squareup:javawriter" to "2.5.1", + "net.sf.jopt-simple:jopt-simple" to "5.0.4", + "org.checkerframework:checker-qual" to "4.4.0", + "org.jetbrains:annotations" to "26.1.0", + "org.jetbrains.kotlin:kotlin-stdlib-jdk7" to "2.4.21", + "org.jetbrains.kotlin:kotlin-stdlib-jdk8" to "2.4.21", + "org.jetbrains.kotlinx:kotlinx-coroutines-bom" to "1.11.0", + "org.jetbrains.kotlinx:kotlinx-coroutines-core" to "1.11.0", + "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm" to "1.11.0", + "org.ow2.asm:asm-util" to "9.11.1", + "ch.qos.logback:logback-classic" to "1.6.8", + "ch.qos.logback:logback-core" to "1.6.8", + "com.google.guava:guava" to "33.8.0-jre", + "org.apache.commons:commons-lang3" to "3.22.0", + "org.apache.httpcomponents:httpclient" to "4.5.14", + "org.apache.groovy:groovy" to "4.0.33", + "org.apache.groovy:groovy-bom" to "4.0.33", + "org.glassfish.jaxb:jaxb-runtime" to "2.3.9", + "org.glassfish.jaxb:txw2" to "2.3.9", + "com.sun.istack:istack-commons-runtime" to "3.0.12", + "com.sun.xml.fastinfoset:FastInfoset" to "1.2.18", + "jakarta.activation:jakarta.activation-api" to "1.2.2", + "jakarta.xml.bind:jakarta.xml.bind-api" to "2.3.3", + "org.jvnet.staxex:stax-ex" to "1.8.3", + "com.github.ajalt.clikt:clikt" to "5.2.1", + "com.github.ajalt.clikt:clikt-jvm" to "5.2.1", + "com.google.code.gson:gson" to "2.15.0", + "com.google.errorprone:error_prone_annotations" to "2.53.0", + "com.google.jimfs:jimfs" to "1.3.2", + "commons-codec:commons-codec" to "1.23.0", + "commons-io:commons-io" to "2.22.0", + "commons-logging:commons-logging" to "1.4.0", + "net.java.dev.jna:jna" to "5.19.1", + "net.java.dev.jna:jna-platform" to "5.19.1", + "org.apache.commons:commons-compress" to "1.28.0", + "org.apache.httpcomponents:httpmime" to "4.5.14", + "org.ow2.asm:asm" to "9.11.1", + "org.ow2.asm:asm-analysis" to "9.11.1", + "org.ow2.asm:asm-commons" to "9.11.1", + "org.ow2.asm:asm-tree" to "9.11.1", + "org.slf4j:slf4j-api" to "2.0.20", + "org.jspecify:jspecify" to "1.0.1", +) + +gradle.beforeProject { + val useReviewedDependencies = Action { + resolutionStrategy.eachDependency { + val selected = when { + requested.group == "org.bouncycastle" && requested.name.contains("jdk18on") -> + "1.87" + else -> dependencyVersions["${requested.group}:${requested.name}"] + } + if (selected != null) { + useVersion(selected) + because("Use reviewed compatible releases across SDK and build-tool classpaths") + } + } + } + buildscript.configurations.configureEach(useReviewedDependencies) + buildscript.configurations.named("classpath") { + resolutionStrategy.activateDependencyLocking() + } + configurations.configureEach(useReviewedDependencies) +} diff --git a/packages/kotlin-android/README.md b/packages/kotlin-android/README.md index 990fdec6..100b4c24 100644 --- a/packages/kotlin-android/README.md +++ b/packages/kotlin-android/README.md @@ -5,7 +5,7 @@ libraries. Applications do not need to build or load a library manually. ```kotlin dependencies { - implementation("me.really:codec-android:0.4.5") + implementation("me.really:codec-android:0.4.6") } ``` diff --git a/packages/kotlin-android/build.gradle.kts b/packages/kotlin-android/build.gradle.kts index 3294e4c6..9ad124a4 100644 --- a/packages/kotlin-android/build.gradle.kts +++ b/packages/kotlin-android/build.gradle.kts @@ -9,14 +9,15 @@ import java.security.MessageDigest import java.util.zip.ZipFile plugins { - id("com.android.library") version "9.5.1" - id("com.android.application") version "9.5.1" apply false + id("com.android.library") version "9.5.2" + id("com.android.application") version "9.5.2" apply false `maven-publish` signing } group = "me.really" -version = "0.4.5" +version = "0.4.6" + // AGP's publication component reads these generated configurations, rather // than releaseApiElements/releaseRuntimeElements. Keep the implicit identity @@ -179,6 +180,10 @@ android { dependencies { api("com.google.protobuf:protobuf-javalite:4.36.2") api("com.google.protobuf:protobuf-kotlin-lite:4.36.2") + api("org.jetbrains.kotlin:kotlin-stdlib:2.4.21") + constraints { + api("org.jetbrains:annotations:26.1.0") + } } val generateAndroidNativeManifest = tasks.register("generateAndroidNativeManifest") { diff --git a/packages/kotlin-android/buildscript-gradle.lockfile b/packages/kotlin-android/buildscript-gradle.lockfile new file mode 100644 index 00000000..74697675 --- /dev/null +++ b/packages/kotlin-android/buildscript-gradle.lockfile @@ -0,0 +1,116 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +androidx.databinding:databinding-common:9.5.2=classpath +androidx.databinding:databinding-compiler-common:9.5.2=classpath +com.android.application:com.android.application.gradle.plugin:9.5.2=classpath +com.android.databinding:baseLibrary:9.5.2=classpath +com.android.library:com.android.library.gradle.plugin:9.5.2=classpath +com.android.tools.analytics-library:crash:32.5.2=classpath +com.android.tools.analytics-library:protos:32.5.2=classpath +com.android.tools.analytics-library:shared:32.5.2=classpath +com.android.tools.analytics-library:tracker:32.5.2=classpath +com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath +com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath +com.android.tools.build:aapt2-proto:9.5.2-16666295=classpath +com.android.tools.build:aaptcompiler:9.5.2=classpath +com.android.tools.build:apksig:9.5.2=classpath +com.android.tools.build:apkzlib:9.5.2=classpath +com.android.tools.build:builder-model:9.5.2=classpath +com.android.tools.build:builder-test-api:9.5.2=classpath +com.android.tools.build:builder:9.5.2=classpath +com.android.tools.build:bundletool:1.18.3=classpath +com.android.tools.build:gradle-api:9.5.2=classpath +com.android.tools.build:gradle-common-api:9.5.2=classpath +com.android.tools.build:gradle-settings-api:9.5.2=classpath +com.android.tools.build:gradle:9.5.2=classpath +com.android.tools.build:manifest-merger:32.5.2=classpath +com.android.tools.ddms:ddmlib:32.5.2=classpath +com.android.tools.layoutlib:layoutlib-api:32.5.2=classpath +com.android.tools.lint:lint-model:32.5.2=classpath +com.android.tools.lint:lint-typedef-remover:32.5.2=classpath +com.android.tools.utp:gradle-work-action-api:32.5.2=classpath +com.android.tools:annotations:32.5.2=classpath +com.android.tools:common:32.5.2=classpath +com.android.tools:dvlib:32.5.2=classpath +com.android.tools:repository:32.5.2=classpath +com.android.tools:sdk-common:32.5.2=classpath +com.android.tools:sdklib:32.5.2=classpath +com.android:signflinger:9.5.2=classpath +com.android:zipflinger:9.5.2=classpath +com.google.auto.value:auto-value-annotations:1.11.1=classpath +com.google.code.findbugs:jsr305:3.0.2=classpath +com.google.code.gson:gson:2.15.0=classpath +com.google.crypto.tink:tink:1.24.0=classpath +com.google.dagger:dagger:2.60.1=classpath +com.google.errorprone:error_prone_annotations:2.53.0=classpath +com.google.flatbuffers:flatbuffers-java:1.12.0=classpath +com.google.guava:failureaccess:1.0.3=classpath +com.google.guava:guava:33.8.0-jre=classpath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath +com.google.j2objc:j2objc-annotations:3.1=classpath +com.google.jimfs:jimfs:1.3.2=classpath +com.google.protobuf:protobuf-java-util:4.36.2=classpath +com.google.protobuf:protobuf-java:4.36.2=classpath +com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath +com.squareup:javapoet:1.13.0=classpath +com.squareup:javawriter:2.5.1=classpath +com.sun.activation:jakarta.activation:1.2.2=classpath +com.sun.istack:istack-commons-runtime:3.0.12=classpath +commons-codec:commons-codec:1.23.0=classpath +commons-io:commons-io:2.22.0=classpath +commons-logging:commons-logging:1.4.0=classpath +jakarta.inject:jakarta.inject-api:2.0.1=classpath +jakarta.xml.bind:jakarta.xml.bind-api:2.3.3=classpath +javax.inject:javax.inject:1=classpath +net.java.dev.jna:jna-platform:5.19.1=classpath +net.java.dev.jna:jna:5.19.1=classpath +net.sf.jopt-simple:jopt-simple:5.0.4=classpath +net.sf.kxml:kxml2:2.3.0=classpath +org.apache.commons:commons-compress:1.28.0=classpath +org.apache.commons:commons-lang3:3.22.0=classpath +org.apache.httpcomponents:httpclient:4.5.14=classpath +org.apache.httpcomponents:httpcore:4.4.16=classpath +org.apache.httpcomponents:httpmime:4.5.14=classpath +org.bitbucket.b_c:jose4j:0.9.7=classpath +org.bouncycastle:bcpkix-jdk18on:1.87=classpath +org.bouncycastle:bcprov-jdk18on:1.87=classpath +org.bouncycastle:bcutil-jdk18on:1.87=classpath +org.checkerframework:checker-qual:4.4.0=classpath +org.glassfish.jaxb:jaxb-runtime:2.3.9=classpath +org.glassfish.jaxb:txw2:2.3.9=classpath +org.jdom:jdom2:2.0.6.1=classpath +org.jetbrains.kotlin:fus-statistics-gradle-plugin:2.4.21=classpath +org.jetbrains.kotlin:kotlin-build-statistics:2.4.21=classpath +org.jetbrains.kotlin:kotlin-build-tools-api:2.4.21=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:2.4.21=classpath +org.jetbrains.kotlin:kotlin-daemon-client:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-annotations:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugins-bom:2.4.21=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:2.4.21=classpath +org.jetbrains.kotlin:kotlin-native-utils:2.4.21=classpath +org.jetbrains.kotlin:kotlin-reflect:2.4.21=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.4.21=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.4.21=classpath +org.jetbrains.kotlin:kotlin-stdlib:2.4.21=classpath +org.jetbrains.kotlin:kotlin-tooling-core:2.4.21=classpath +org.jetbrains.kotlin:kotlin-util-io:2.4.21=classpath +org.jetbrains.kotlin:kotlin-util-klib-metadata:2.4.21=classpath +org.jetbrains.kotlin:kotlin-util-klib:2.4.21=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.11.0=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.11.0=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0=classpath +org.jetbrains:annotations:26.1.0=classpath +org.jspecify:jspecify:1.0.1=classpath +org.ow2.asm:asm-analysis:9.11.1=classpath +org.ow2.asm:asm-commons:9.11.1=classpath +org.ow2.asm:asm-tree:9.11.1=classpath +org.ow2.asm:asm-util:9.11.1=classpath +org.ow2.asm:asm:9.11.1=classpath +org.slf4j:slf4j-api:2.0.20=classpath +org.tensorflow:tensorflow-lite-metadata:0.2.0=classpath +empty= diff --git a/packages/kotlin-android/consumer-r8-runtime/build.gradle.kts b/packages/kotlin-android/consumer-r8-runtime/build.gradle.kts index 058fc60c..f831ecb1 100644 --- a/packages/kotlin-android/consumer-r8-runtime/build.gradle.kts +++ b/packages/kotlin-android/consumer-r8-runtime/build.gradle.kts @@ -15,7 +15,7 @@ android { minSdk = 24 targetSdk = 37 versionCode = 1 - versionName = "0.4.5" + versionName = "0.4.6" } compileOptions { diff --git a/packages/kotlin-android/consumer-r8-runtime/buildscript-gradle.lockfile b/packages/kotlin-android/consumer-r8-runtime/buildscript-gradle.lockfile new file mode 100644 index 00000000..0d156738 --- /dev/null +++ b/packages/kotlin-android/consumer-r8-runtime/buildscript-gradle.lockfile @@ -0,0 +1,4 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +empty=classpath diff --git a/packages/kotlin-android/gradle.lockfile b/packages/kotlin-android/gradle.lockfile index edfe65f5..c3db2183 100644 --- a/packages/kotlin-android/gradle.lockfile +++ b/packages/kotlin-android/gradle.lockfile @@ -2,214 +2,102 @@ # Manual edits can break the build and are not advised. # This file is expected to be part of source control. # To regenerate this file, run: ./gradlew :dependencies --write-locks -com.android.tools.analytics-library:protos:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.analytics-library:protos:32.5.1=androidLintTool -com.android.tools.analytics-library:shared:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.analytics-library:shared:32.5.1=androidLintTool -com.android.tools.analytics-library:tracker:32.5.1=androidLintTool +com.android.tools.analytics-library:protos:32.5.2=androidLintTool +com.android.tools.analytics-library:shared:32.5.2=androidLintTool +com.android.tools.analytics-library:tracker:32.5.2=androidLintTool com.android.tools.androidtest:android-test-engine-result-listener:1.0.8=unified-test-platform-gradle-work-action com.android.tools.androidtest:android-test-engine:1.0.8=unified-test-platform-gradle-work-action com.android.tools.androidtest:test-result-event-proto:1.0.8=unified-test-platform-gradle-work-action com.android.tools.androidtest:test-result-proto:1.0.8=unified-test-platform-gradle-work-action -com.android.tools.build:aapt2-proto:9.3.0-15703166=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.build:aapt2-proto:9.5.1-16666295=androidLintTool -com.android.tools.build:builder-model:9.5.1=androidLintTool -com.android.tools.build:manifest-merger:32.5.1=androidLintTool -com.android.tools.ddms:ddmlib:32.3.0=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.emulator:proto:32.3.0=unified-test-platform-android-test-plugin-host-emulator-control -com.android.tools.external.com-intellij:intellij-core:32.5.1=androidLintTool -com.android.tools.external.com-intellij:kotlin-compiler:32.5.1=androidLintTool -com.android.tools.external.org-jetbrains:uast:32.5.1=androidLintTool -com.android.tools.layoutlib:layoutlib-api:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.layoutlib:layoutlib-api:32.5.1=androidLintTool -com.android.tools.lint:lint-api:32.5.1=androidLintTool -com.android.tools.lint:lint-checks:32.5.1=androidLintTool -com.android.tools.lint:lint-gradle:32.5.1=androidLintTool -com.android.tools.lint:lint-model:32.5.1=androidLintTool -com.android.tools.lint:lint-typedef-remover:32.5.1=androidLintTool -com.android.tools.lint:lint:32.5.1=androidLintTool -com.android.tools.utp:android-device-provider-ddmlib-proto:32.3.0=unified-test-platform-android-device-provider-ddmlib -com.android.tools.utp:android-device-provider-ddmlib:32.3.0=unified-test-platform-android-device-provider-ddmlib -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:32.3.0=unified-test-platform-android-test-plugin-host-additional-test-output -com.android.tools.utp:android-test-plugin-host-additional-test-output:32.3.0=unified-test-platform-android-test-plugin-host-additional-test-output -com.android.tools.utp:android-test-plugin-host-apk-installer-proto:32.3.0=unified-test-platform-android-test-plugin-host-apk-installer -com.android.tools.utp:android-test-plugin-host-apk-installer:32.3.0=unified-test-platform-android-test-plugin-host-apk-installer -com.android.tools.utp:android-test-plugin-host-coverage-proto:32.3.0=unified-test-platform-android-test-plugin-host-coverage -com.android.tools.utp:android-test-plugin-host-coverage:32.3.0=unified-test-platform-android-test-plugin-host-coverage -com.android.tools.utp:android-test-plugin-host-device-info-proto:32.3.0=unified-test-platform-android-test-plugin-host-device-info -com.android.tools.utp:android-test-plugin-host-device-info:32.3.0=unified-test-platform-android-test-plugin-host-device-info -com.android.tools.utp:android-test-plugin-host-emulator-control-proto:32.3.0=unified-test-platform-android-test-plugin-host-emulator-control -com.android.tools.utp:android-test-plugin-host-emulator-control:32.3.0=unified-test-platform-android-test-plugin-host-emulator-control -com.android.tools.utp:android-test-plugin-host-logcat-proto:32.3.0=unified-test-platform-android-test-plugin-host-logcat -com.android.tools.utp:android-test-plugin-host-logcat:32.3.0=unified-test-platform-android-test-plugin-host-logcat -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.utp:android-test-plugin-result-listener-gradle:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools.utp:gradle-work-action:32.5.1=unified-test-platform-gradle-work-action -com.android.tools.utp:utp-common:32.3.0=unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-logcat -com.android.tools:annotations:32.3.0=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools:annotations:32.5.1=androidLintTool -com.android.tools:common:32.3.0=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools:common:32.5.1=androidLintTool -com.android.tools:dvlib:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools:dvlib:32.5.1=androidLintTool -com.android.tools:play-sdk-proto:32.5.1=androidLintTool -com.android.tools:repository:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools:repository:32.5.1=androidLintTool -com.android.tools:sdk-common:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools:sdk-common:32.5.1=androidLintTool -com.android.tools:sdklib:32.3.0=unified-test-platform-android-test-plugin-result-listener-gradle -com.android.tools:sdklib:32.5.1=androidLintTool -com.google.android:annotations:4.1.1.4=unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-core -com.google.api.grpc:proto-google-common-protos:2.17.0=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core -com.google.api.grpc:proto-google-common-protos:2.48.0=unified-test-platform-android-test-plugin-host-emulator-control -com.google.auto.service:auto-service-annotations:1.1.1=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.auto.service:auto-service:1.1.1=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.auto:auto-common:1.2.1=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.code.findbugs:jsr305:3.0.2=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core,unified-test-platform-launcher -com.google.code.gson:gson:2.10.1=unified-test-platform-core -com.google.code.gson:gson:2.11.0=androidLintTool,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.code.gson:gson:2.8.9=unified-test-platform-android-driver-instrumentation,unified-test-platform-launcher -com.google.crypto.tink:tink:1.18.0=unified-test-platform-android-test-plugin-host-emulator-control -com.google.dagger:dagger:2.48=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core -com.google.errorprone:error_prone_annotations:2.23.0=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -com.google.errorprone:error_prone_annotations:2.36.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.guava:failureaccess:1.0.1=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -com.google.guava:failureaccess:1.0.2=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.guava:guava:32.0.1-jre=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -com.google.guava:guava:33.4.0-jre=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core,unified-test-platform-launcher -com.google.j2objc:j2objc-annotations:2.8=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -com.google.j2objc:j2objc-annotations:3.0.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.jimfs:jimfs:1.1=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.protobuf:protobuf-java-util:3.22.3=unified-test-platform-core -com.google.protobuf:protobuf-java-util:4.28.3=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-launcher -com.google.protobuf:protobuf-java:3.25.5=androidLintTool,unified-test-platform-gradle-work-action -com.google.protobuf:protobuf-java:4.28.3=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core,unified-test-platform-launcher +com.android.tools.build:aapt2-proto:9.5.2-16666295=androidLintTool +com.android.tools.build:builder-model:9.5.2=androidLintTool +com.android.tools.build:manifest-merger:32.5.2=androidLintTool +com.android.tools.external.com-intellij:intellij-core:32.5.2=androidLintTool +com.android.tools.external.com-intellij:kotlin-compiler:32.5.2=androidLintTool +com.android.tools.external.org-jetbrains:uast:32.5.2=androidLintTool +com.android.tools.layoutlib:layoutlib-api:32.5.2=androidLintTool +com.android.tools.lint:lint-api:32.5.2=androidLintTool +com.android.tools.lint:lint-checks:32.5.2=androidLintTool +com.android.tools.lint:lint-gradle:32.5.2=androidLintTool +com.android.tools.lint:lint-model:32.5.2=androidLintTool +com.android.tools.lint:lint-typedef-remover:32.5.2=androidLintTool +com.android.tools.lint:lint:32.5.2=androidLintTool +com.android.tools.utp:gradle-work-action:32.5.2=unified-test-platform-gradle-work-action +com.android.tools:annotations:32.5.2=androidLintTool +com.android.tools:common:32.5.2=androidLintTool +com.android.tools:dvlib:32.5.2=androidLintTool +com.android.tools:play-sdk-proto:32.5.2=androidLintTool +com.android.tools:repository:32.5.2=androidLintTool +com.android.tools:sdk-common:32.5.2=androidLintTool +com.android.tools:sdklib:32.5.2=androidLintTool +com.google.code.gson:gson:2.15.0=androidLintTool +com.google.errorprone:error_prone_annotations:2.53.0=androidLintTool +com.google.guava:failureaccess:1.0.3=androidLintTool +com.google.guava:guava:33.8.0-jre=androidLintTool +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=androidLintTool +com.google.j2objc:j2objc-annotations:3.1=androidLintTool +com.google.jimfs:jimfs:1.3.2=androidLintTool +com.google.protobuf:protobuf-java:4.36.2=androidLintTool,unified-test-platform-gradle-work-action com.google.protobuf:protobuf-javalite:4.36.2=debugAndroidTestCompileClasspath,debugAndroidTestLintChecksClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugLintChecksClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestLintChecksClasspath,debugUnitTestRuntimeClasspath,releaseCompileClasspath,releaseLintChecksClasspath,releaseRuntimeClasspath com.google.protobuf:protobuf-kotlin-lite:4.36.2=debugAndroidTestCompileClasspath,debugAndroidTestLintChecksClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugLintChecksClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestLintChecksClasspath,debugUnitTestRuntimeClasspath,releaseCompileClasspath,releaseLintChecksClasspath,releaseRuntimeClasspath -com.google.protobuf:protobuf-kotlin:4.28.3=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core,unified-test-platform-launcher -com.google.testing.platform:android-device-provider-local:0.0.9-alpha04=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha04=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin-host-emulator-control -com.google.testing.platform:android-test-plugin:0.0.9-alpha04=unified-test-platform-android-test-plugin -com.google.testing.platform:core-proto:0.0.9-alpha04=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-result-listener-gradle -com.google.testing.platform:core:0.0.9-alpha04=unified-test-platform-core -com.google.testing.platform:launcher:0.0.9-alpha04=unified-test-platform-launcher -com.sun.istack:istack-commons-runtime:3.0.8=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -com.sun.xml.fastinfoset:FastInfoset:1.2.16=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -commons-codec:commons-codec:1.17.1=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -commons-io:commons-io:2.16.1=androidLintTool,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-result-listener-gradle -commons-logging:commons-logging:1.2=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -io.grpc:grpc-api:1.57.2=unified-test-platform-core -io.grpc:grpc-api:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-context:1.57.2=unified-test-platform-core -io.grpc:grpc-context:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-core:1.57.2=unified-test-platform-core -io.grpc:grpc-core:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-netty:1.57.2=unified-test-platform-core -io.grpc:grpc-netty:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-protobuf-lite:1.57.2=unified-test-platform-core -io.grpc:grpc-protobuf-lite:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-protobuf:1.57.2=unified-test-platform-core -io.grpc:grpc-protobuf:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-services:1.57.2=unified-test-platform-core -io.grpc:grpc-stub:1.57.2=unified-test-platform-core -io.grpc:grpc-stub:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.grpc:grpc-util:1.69.1=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-buffer:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-buffer:4.1.93.Final=unified-test-platform-core -io.netty:netty-codec-http2:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-codec-http2:4.1.93.Final=unified-test-platform-core -io.netty:netty-codec-http:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-codec-http:4.1.93.Final=unified-test-platform-core -io.netty:netty-codec-socks:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-codec-socks:4.1.93.Final=unified-test-platform-core -io.netty:netty-codec:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-codec:4.1.93.Final=unified-test-platform-core -io.netty:netty-common:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-common:4.1.93.Final=unified-test-platform-core -io.netty:netty-handler-proxy:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-handler-proxy:4.1.93.Final=unified-test-platform-core -io.netty:netty-handler:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-handler:4.1.93.Final=unified-test-platform-core -io.netty:netty-resolver:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-resolver:4.1.93.Final=unified-test-platform-core -io.netty:netty-transport-native-unix-common:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-transport-native-unix-common:4.1.93.Final=unified-test-platform-core -io.netty:netty-transport:4.1.110.Final=unified-test-platform-android-test-plugin-host-emulator-control -io.netty:netty-transport:4.1.93.Final=unified-test-platform-core -io.opencensus:opencensus-api:0.31.0=unified-test-platform-core -io.opencensus:opencensus-proto:0.2.0=unified-test-platform-core,unified-test-platform-launcher -io.perfmark:perfmark-api:0.26.0=unified-test-platform-core -io.perfmark:perfmark-api:0.27.0=unified-test-platform-android-test-plugin-host-emulator-control -jakarta.activation:jakarta.activation-api:1.2.1=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -javax.annotation:javax.annotation-api:1.3.2=unified-test-platform-android-test-plugin-host-emulator-control -javax.inject:javax.inject:1=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core -net.java.dev.jna:jna-platform:5.6.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -net.java.dev.jna:jna:5.6.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -net.sf.kxml:kxml2:2.3.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-result-listener-gradle -org.apache.commons:commons-compress:1.27.1=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.apache.commons:commons-lang3:3.16.0=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.apache.groovy:groovy-bom:4.0.29=androidLintTool -org.apache.groovy:groovy:4.0.29=androidLintTool -org.apache.httpcomponents:httpclient:4.5.6=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.apache.httpcomponents:httpcore:4.4.16=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.apache.httpcomponents:httpmime:4.5.6=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.bouncycastle:bcpkix-jdk18on:1.79=unified-test-platform-android-test-plugin-result-listener-gradle -org.bouncycastle:bcpkix-jdk18on:1.80.2=androidLintTool -org.bouncycastle:bcprov-jdk18on:1.79=unified-test-platform-android-test-plugin-result-listener-gradle -org.bouncycastle:bcprov-jdk18on:1.80.2=androidLintTool -org.bouncycastle:bcutil-jdk18on:1.79=unified-test-platform-android-test-plugin-result-listener-gradle -org.bouncycastle:bcutil-jdk18on:1.80.2=androidLintTool -org.checkerframework:checker-qual:3.33.0=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -org.checkerframework:checker-qual:3.43.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle -org.codehaus.mojo:animal-sniffer-annotations:1.23=unified-test-platform-core -org.codehaus.mojo:animal-sniffer-annotations:1.24=unified-test-platform-android-test-plugin-host-emulator-control -org.glassfish.jaxb:jaxb-runtime:2.3.2=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.glassfish.jaxb:txw2:2.3.2=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.jetbrains.kotlin:kotlin-build-tools-api:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-build-tools-impl:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-compiler-embeddable:2.2.10=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlin:kotlin-compiler-runner:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-daemon-client:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-daemon-embeddable:2.2.10=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlin:kotlin-reflect:1.6.10=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlin:kotlin-reflect:1.8.21=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-core,unified-test-platform-launcher -org.jetbrains.kotlin:kotlin-reflect:2.2.10=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle -org.jetbrains.kotlin:kotlin-script-runtime:2.2.10=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlin:kotlin-scripting-common:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-scripting-jvm:2.2.10=kotlinBuildToolsApiClasspath -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.21=unified-test-platform-android-test-plugin,unified-test-platform-core -org.jetbrains.kotlin:kotlin-stdlib-common:1.9.0=unified-test-platform-android-driver-instrumentation,unified-test-platform-launcher -org.jetbrains.kotlin:kotlin-stdlib-common:2.2.10=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.2.10=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-gradle-work-action -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-core,unified-test-platform-launcher -org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.2.10=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-gradle-work-action -org.jetbrains.kotlin:kotlin-stdlib:1.8.21=unified-test-platform-android-test-plugin,unified-test-platform-core -org.jetbrains.kotlin:kotlin-stdlib:1.9.0=unified-test-platform-android-driver-instrumentation,unified-test-platform-launcher -org.jetbrains.kotlin:kotlin-stdlib:2.2.10=androidLintTool,debugAndroidTestCompileClasspath,debugAndroidTestLintChecksClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugLintChecksClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestLintChecksClasspath,debugUnitTestRuntimeClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,releaseCompileClasspath,releaseLintChecksClasspath,releaseRuntimeClasspath,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-gradle-work-action -org.jetbrains.kotlinx:atomicfu-jvm:0.22.0=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-launcher -org.jetbrains.kotlinx:atomicfu:0.22.0=unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-launcher -org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.3=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-core,unified-test-platform-launcher -org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.9.0=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-gradle-work-action -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.3=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-core,unified-test-platform-launcher -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.9.0=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-gradle-work-action -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3=unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-core,unified-test-platform-launcher -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-gradle-work-action -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestLintChecksClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugLintChecksClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestLintChecksClasspath,debugUnitTestRuntimeClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,releaseCompileClasspath,releaseLintChecksClasspath,releaseRuntimeClasspath -org.jetbrains:annotations:23.0.0=androidLintTool,unified-test-platform-android-device-provider-ddmlib,unified-test-platform-android-driver-instrumentation,unified-test-platform-android-test-plugin,unified-test-platform-android-test-plugin-host-additional-test-output,unified-test-platform-android-test-plugin-host-apk-installer,unified-test-platform-android-test-plugin-host-coverage,unified-test-platform-android-test-plugin-host-device-info,unified-test-platform-android-test-plugin-host-emulator-control,unified-test-platform-android-test-plugin-host-logcat,unified-test-platform-android-test-plugin-result-listener-gradle,unified-test-platform-core,unified-test-platform-gradle-work-action,unified-test-platform-launcher +com.sun.activation:jakarta.activation:1.2.2=androidLintTool +com.sun.istack:istack-commons-runtime:3.0.12=androidLintTool +commons-codec:commons-codec:1.23.0=androidLintTool +commons-io:commons-io:2.22.0=androidLintTool +commons-logging:commons-logging:1.4.0=androidLintTool +jakarta.xml.bind:jakarta.xml.bind-api:2.3.3=androidLintTool +javax.inject:javax.inject:1=androidLintTool +net.java.dev.jna:jna-platform:5.19.1=androidLintTool +net.java.dev.jna:jna:5.19.1=androidLintTool +net.sf.kxml:kxml2:2.3.0=androidLintTool +org.apache.commons:commons-compress:1.28.0=androidLintTool +org.apache.commons:commons-lang3:3.22.0=androidLintTool +org.apache.groovy:groovy-bom:4.0.33=androidLintTool +org.apache.groovy:groovy:4.0.33=androidLintTool +org.apache.httpcomponents:httpclient:4.5.14=androidLintTool +org.apache.httpcomponents:httpcore:4.4.16=androidLintTool +org.apache.httpcomponents:httpmime:4.5.14=androidLintTool +org.bouncycastle:bcpkix-jdk18on:1.87=androidLintTool +org.bouncycastle:bcprov-jdk18on:1.87=androidLintTool +org.bouncycastle:bcutil-jdk18on:1.87=androidLintTool +org.glassfish.jaxb:jaxb-runtime:2.3.9=androidLintTool +org.glassfish.jaxb:txw2:2.3.9=androidLintTool +org.jetbrains.kotlin:kotlin-build-tools-api:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-build-tools-api:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-build-tools-compat:2.4.21=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-build-tools-cri-impl:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-build-tools-cri-impl:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-build-tools-impl:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-build-tools-impl:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-compiler-embeddable:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-compiler-embeddable:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-compiler-runner:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-compiler-runner:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-daemon-client:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-daemon-client:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-daemon-embeddable:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-daemon-embeddable:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-reflect:1.6.10=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-reflect:2.2.10=androidLintTool +org.jetbrains.kotlin:kotlin-script-runtime:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-script-runtime:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.4.21=androidLintTool,unified-test-platform-gradle-work-action +org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.4.21=androidLintTool,unified-test-platform-gradle-work-action +org.jetbrains.kotlin:kotlin-stdlib:2.4.0=kotlinAbiValidationCompatClasspath +org.jetbrains.kotlin:kotlin-stdlib:2.4.21=androidLintTool,debugAndroidTestCompileClasspath,debugAndroidTestLintChecksClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugLintChecksClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestLintChecksClasspath,debugUnitTestRuntimeClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,releaseCompileClasspath,releaseLintChecksClasspath,releaseRuntimeClasspath,unified-test-platform-gradle-work-action +org.jetbrains.kotlin:kotlin-tooling-core:2.4.21=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.11.0=androidLintTool,unified-test-platform-gradle-work-action +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.11.0=androidLintTool,kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,unified-test-platform-gradle-work-action +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0=androidLintTool,unified-test-platform-gradle-work-action +org.jetbrains:annotations:26.1.0=androidLintTool,debugAndroidTestCompileClasspath,debugAndroidTestLintChecksClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugLintChecksClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestLintChecksClasspath,debugUnitTestRuntimeClasspath,kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,releaseCompileClasspath,releaseLintChecksClasspath,releaseRuntimeClasspath,unified-test-platform-gradle-work-action +org.jspecify:jspecify:1.0.1=androidLintTool org.junit.platform:junit-platform-commons:1.13.3=unified-test-platform-gradle-work-action org.junit.platform:junit-platform-engine:1.13.3=unified-test-platform-gradle-work-action org.junit.platform:junit-platform-launcher:1.13.3=unified-test-platform-gradle-work-action org.junit:junit-bom:5.13.3=unified-test-platform-gradle-work-action -org.jvnet.staxex:stax-ex:1.8.1=androidLintTool,unified-test-platform-android-test-plugin-result-listener-gradle org.opentest4j:opentest4j:1.3.0=unified-test-platform-gradle-work-action -org.ow2.asm:asm-analysis:9.9=androidLintTool -org.ow2.asm:asm-commons:9.9=androidLintTool -org.ow2.asm:asm-tree:9.9=androidLintTool -org.ow2.asm:asm:9.9=androidLintTool +org.ow2.asm:asm-analysis:9.11.1=androidLintTool +org.ow2.asm:asm-commons:9.11.1=androidLintTool +org.ow2.asm:asm-tree:9.11.1=androidLintTool +org.ow2.asm:asm:9.11.1=androidLintTool empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestApiDependenciesMetadata,debugAndroidTestCompileOnlyDependenciesMetadata,debugAndroidTestImplementationDependenciesMetadata,debugAndroidTestIntransitiveDependenciesMetadata,debugAnnotationProcessorClasspath,debugApiDependenciesMetadata,debugCompileOnlyDependenciesMetadata,debugImplementationDependenciesMetadata,debugIntransitiveDependenciesMetadata,debugUnitTestAnnotationProcessorClasspath,debugUnitTestApiDependenciesMetadata,debugUnitTestCompileOnlyDependenciesMetadata,debugUnitTestImplementationDependenciesMetadata,debugUnitTestIntransitiveDependenciesMetadata,kotlinCompilerPluginClasspath,kotlinCompilerPluginClasspathDebug,kotlinCompilerPluginClasspathDebugAndroidTest,kotlinCompilerPluginClasspathDebugUnitTest,kotlinCompilerPluginClasspathRelease,lintChecks,lintPublish,releaseAnnotationProcessorClasspath,releaseApiDependenciesMetadata,releaseCompileOnlyDependenciesMetadata,releaseImplementationDependenciesMetadata,releaseIntransitiveDependenciesMetadata diff --git a/packages/kotlin-android/gradle/verification-metadata.xml b/packages/kotlin-android/gradle/verification-metadata.xml index 9ed31fdc..ee7813b7 100644 --- a/packages/kotlin-android/gradle/verification-metadata.xml +++ b/packages/kotlin-android/gradle/verification-metadata.xml @@ -45,6 +45,14 @@ + + + + + + + + @@ -85,6 +93,14 @@ + + + + + + + + @@ -125,6 +141,14 @@ + + + + + + + + @@ -165,6 +189,14 @@ + + + + + + + + @@ -190,6 +222,11 @@ + + + + + @@ -230,6 +267,14 @@ + + + + + + + + @@ -255,6 +300,11 @@ + + + + + @@ -295,6 +345,14 @@ + + + + + + + + @@ -335,6 +393,14 @@ + + + + + + + + @@ -375,6 +441,14 @@ + + + + + + + + @@ -415,6 +489,14 @@ + + + + + + + + @@ -455,6 +537,14 @@ + + + + + + + + @@ -495,6 +585,14 @@ + + + + + + + + @@ -535,6 +633,14 @@ + + + + + + + + @@ -575,6 +681,14 @@ + + + + + + + + @@ -615,6 +729,14 @@ + + + + + + + + @@ -655,6 +777,14 @@ + + + + + + + + @@ -695,6 +825,14 @@ + + + + + + + + @@ -814,6 +952,17 @@ + + + + + + + + + + + @@ -854,6 +1003,14 @@ + + + + + + + + @@ -894,6 +1051,14 @@ + + + + + + + + @@ -934,6 +1099,14 @@ + + + + + + + + @@ -974,6 +1147,14 @@ + + + + + + + + @@ -1014,6 +1195,14 @@ + + + + + + + + @@ -1054,6 +1243,14 @@ + + + + + + + + @@ -1094,6 +1291,14 @@ + + + + + + + + @@ -1142,6 +1347,14 @@ + + + + + + + + @@ -1182,6 +1395,14 @@ + + + + + + + + @@ -1222,6 +1443,14 @@ + + + + + + + + @@ -1262,6 +1491,14 @@ + + + + + + + + @@ -1302,6 +1539,14 @@ + + + + + + + + @@ -1358,6 +1603,14 @@ + + + + + + + + @@ -1406,6 +1659,14 @@ + + + + + + + + @@ -1446,6 +1707,14 @@ + + + + + + + + @@ -1486,6 +1755,14 @@ + + + + + + + + @@ -1526,6 +1803,14 @@ + + + + + + + + @@ -1566,6 +1851,14 @@ + + + + + + + + @@ -1606,6 +1899,14 @@ + + + + + + + + @@ -1646,6 +1947,14 @@ + + + + + + + + @@ -1686,6 +1995,14 @@ + + + + + + + + @@ -1726,6 +2043,14 @@ + + + + + + + + @@ -1766,6 +2091,14 @@ + + + + + + + + @@ -1934,6 +2267,14 @@ + + + + + + + + @@ -1974,6 +2315,14 @@ + + + + + + + + @@ -2041,6 +2390,14 @@ + + + + + + + + @@ -2049,6 +2406,11 @@ + + + + + @@ -2078,6 +2440,14 @@ + + + + + + + + @@ -2096,6 +2466,11 @@ + + + + + @@ -2109,6 +2484,14 @@ + + + + + + + + @@ -2133,6 +2516,14 @@ + + + + + + + + @@ -2169,6 +2560,22 @@ + + + + + + + + + + + + + + + + @@ -2199,6 +2606,16 @@ + + + + + + + + + + @@ -2223,6 +2640,14 @@ + + + + + + + + @@ -2244,6 +2669,14 @@ + + + + + + + + @@ -2254,6 +2687,11 @@ + + + + + @@ -2284,6 +2722,14 @@ + + + + + + + + @@ -2292,11 +2738,24 @@ + + + + + + + + + + + + + @@ -2353,6 +2812,14 @@ + + + + + + + + @@ -2377,6 +2844,14 @@ + + + + + + + + @@ -2540,17 +3015,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2564,21 +3073,41 @@ + + + + + + + + + + + + + + + + + + + + @@ -2600,6 +3129,14 @@ + + + + + + + + @@ -2608,6 +3145,14 @@ + + + + + + + + @@ -2616,6 +3161,14 @@ + + + + + + + + @@ -2975,6 +3528,14 @@ + + + + + + + + @@ -2983,11 +3544,24 @@ + + + + + + + + + + + + + @@ -3009,6 +3583,14 @@ + + + + + + + + @@ -3017,6 +3599,14 @@ + + + + + + + + @@ -3033,6 +3623,14 @@ + + + + + + + + @@ -3074,6 +3672,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3082,6 +3705,14 @@ + + + + + + + + @@ -3090,6 +3721,29 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -3111,6 +3765,16 @@ + + + + + + + + + + @@ -3119,6 +3783,14 @@ + + + + + + + + @@ -3127,6 +3799,14 @@ + + + + + + + + @@ -3176,6 +3856,14 @@ + + + + + + + + @@ -3192,6 +3880,14 @@ + + + + + + + + @@ -3216,6 +3912,14 @@ + + + + + + + + @@ -3232,6 +3936,14 @@ + + + + + + + + @@ -3248,7 +3960,18 @@ + + + + + + + + + + + @@ -3269,6 +3992,14 @@ + + + + + + + + @@ -3323,11 +4054,26 @@ + + + + + + + + + + + + + + + @@ -3336,6 +4082,14 @@ + + + + + + + + @@ -3344,6 +4098,14 @@ + + + + + + + + @@ -3352,6 +4114,14 @@ + + + + + + + + @@ -3368,6 +4138,14 @@ + + + + + + + + @@ -3384,6 +4162,14 @@ + + + + + + + + @@ -3392,6 +4178,14 @@ + + + + + + + + @@ -3400,6 +4194,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3408,6 +4242,22 @@ + + + + + + + + + + + + + + + + @@ -3416,6 +4266,22 @@ + + + + + + + + + + + + + + + + @@ -3424,6 +4290,22 @@ + + + + + + + + + + + + + + + + @@ -3432,6 +4314,22 @@ + + + + + + + + + + + + + + + + @@ -3440,6 +4338,22 @@ + + + + + + + + + + + + + + + + @@ -3448,6 +4362,14 @@ + + + + + + + + @@ -3456,6 +4378,14 @@ + + + + + + + + @@ -3467,6 +4397,14 @@ + + + + + + + + @@ -3475,6 +4413,14 @@ + + + + + + + + @@ -3483,6 +4429,14 @@ + + + + + + + + @@ -3499,6 +4453,14 @@ + + + + + + + + @@ -3507,6 +4469,14 @@ + + + + + + + + @@ -3515,6 +4485,14 @@ + + + + + + + + @@ -3579,6 +4557,22 @@ + + + + + + + + + + + + + + + + @@ -3704,6 +4698,14 @@ + + + + + + + + @@ -3720,6 +4722,14 @@ + + + + + + + + @@ -3728,6 +4738,14 @@ + + + + + + + + @@ -3736,6 +4754,14 @@ + + + + + + + + @@ -3744,6 +4770,14 @@ + + + + + + + + @@ -3752,6 +4786,14 @@ + + + + + + + + @@ -3765,6 +4807,11 @@ + + + + + @@ -3785,6 +4832,11 @@ + + + + + @@ -3800,6 +4852,14 @@ + + + + + + + + @@ -3829,6 +4889,14 @@ + + + + + + + + @@ -3845,6 +4913,14 @@ + + + + + + + + @@ -3853,6 +4929,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -3893,6 +4990,11 @@ + + + + + @@ -3906,6 +5008,14 @@ + + + + + + + + @@ -3914,6 +5024,14 @@ + + + + + + + + @@ -3922,6 +5040,14 @@ + + + + + + + + @@ -3930,6 +5056,14 @@ + + + + + + + + @@ -3938,6 +5072,14 @@ + + + + + + + + @@ -3954,11 +5096,29 @@ + + + + + + + + + + + + + + + + + + diff --git a/packages/kotlin-android/runtime/gradle.lockfile b/packages/kotlin-android/runtime/gradle.lockfile index e47601d0..bfaf0ab5 100644 --- a/packages/kotlin-android/runtime/gradle.lockfile +++ b/packages/kotlin-android/runtime/gradle.lockfile @@ -2,5 +2,5 @@ # Regenerate with: python3 scripts/gradle_runtime_lockfiles.py --write com.google.protobuf:protobuf-javalite:4.36.2=releaseRuntimeClasspath com.google.protobuf:protobuf-kotlin-lite:4.36.2=releaseRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib:2.2.10=releaseRuntimeClasspath -org.jetbrains:annotations:13.0=releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:2.4.21=releaseRuntimeClasspath +org.jetbrains:annotations:26.1.0=releaseRuntimeClasspath diff --git a/packages/kotlin-android/settings.gradle.kts b/packages/kotlin-android/settings.gradle.kts index fee9af21..62fe8fbd 100644 --- a/packages/kotlin-android/settings.gradle.kts +++ b/packages/kotlin-android/settings.gradle.kts @@ -10,6 +10,8 @@ pluginManagement { } } +apply(from = file("../dependency-security.gradle.kts")) + dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { diff --git a/packages/kotlin/README.md b/packages/kotlin/README.md index a20d279d..3adbbad7 100644 --- a/packages/kotlin/README.md +++ b/packages/kotlin/README.md @@ -5,7 +5,7 @@ JNI libraries as platform resources. The matching library loads on first use. ```kotlin dependencies { - implementation("me.really:codec:0.4.5") + implementation("me.really:codec:0.4.6") } ``` diff --git a/packages/kotlin/build.gradle.kts b/packages/kotlin/build.gradle.kts index 174b61e3..80f75f87 100644 --- a/packages/kotlin/build.gradle.kts +++ b/packages/kotlin/build.gradle.kts @@ -20,7 +20,8 @@ plugins { } group = "me.really" -version = "0.4.5" +version = "0.4.6" + // The JVM jar and Android AAR expose the same me.really.codec classes. // The shared capability makes Gradle reject a graph containing both. @@ -33,21 +34,6 @@ dependencyLocking { lockAllConfigurations() } -val kotlinBouncyCastleConfiguration = "kotlinBouncyCastleConfiguration" -val bouncyCastleSecurityVersion = "1.87" -// Kotlin's publishing validation resolves Bouncy Castle 1.84 internally. -// Constrain that tooling classpath because 1.84 is affected by CVE-2026-8763. -configurations.configureEach { - if (name == kotlinBouncyCastleConfiguration) { - resolutionStrategy.eachDependency { - if (requested.group == "org.bouncycastle") { - useVersion(bouncyCastleSecurityVersion) - because("Bouncy Castle 1.87 includes the name-constraints fix") - } - } - } -} - val remoteMavenRepositoryUrl = providers .gradleProperty("reallyme.maven.repositoryUrl") @@ -201,7 +187,7 @@ kotlin { } ktlint { - version.set("1.5.0") + version.set("1.8.0") filter { // Generated bindings are verified by Buf freshness, not style rules. exclude { entry -> @@ -283,6 +269,9 @@ val writeHostNativeDigest = dependencies { api("com.google.protobuf:protobuf-javalite:4.36.2") api("com.google.protobuf:protobuf-kotlin-lite:4.36.2") + constraints { + api("org.jetbrains:annotations:26.1.0") + } testImplementation("com.google.code.gson:gson:2.15.0") testImplementation("org.junit.jupiter:junit-jupiter-api:6.1.3") testImplementation(kotlin("test")) diff --git a/packages/kotlin/buildscript-gradle.lockfile b/packages/kotlin/buildscript-gradle.lockfile new file mode 100644 index 00000000..3bcc984c --- /dev/null +++ b/packages/kotlin/buildscript-gradle.lockfile @@ -0,0 +1,27 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +com.google.code.gson:gson:2.15.0=classpath +com.google.errorprone:error_prone_annotations:2.53.0=classpath +org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:2.4.21=classpath +org.jetbrains.kotlin:fus-statistics-gradle-plugin:2.4.21=classpath +org.jetbrains.kotlin:kotlin-build-statistics:2.4.21=classpath +org.jetbrains.kotlin:kotlin-build-tools-api:2.4.21=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:2.4.21=classpath +org.jetbrains.kotlin:kotlin-daemon-client:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-annotations:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:2.4.21=classpath +org.jetbrains.kotlin:kotlin-gradle-plugins-bom:2.4.21=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:2.4.21=classpath +org.jetbrains.kotlin:kotlin-native-utils:2.4.21=classpath +org.jetbrains.kotlin:kotlin-tooling-core:2.4.21=classpath +org.jetbrains.kotlin:kotlin-util-io:2.4.21=classpath +org.jetbrains.kotlin:kotlin-util-klib-metadata:2.4.21=classpath +org.jetbrains.kotlin:kotlin-util-klib:2.4.21=classpath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.11.0=classpath +org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:14.2.0=classpath +org.jlleitschuh.gradle:ktlint-gradle:14.2.0=classpath +empty= diff --git a/packages/kotlin/gradle.lockfile b/packages/kotlin/gradle.lockfile index 2aca32ad..8611aa97 100644 --- a/packages/kotlin/gradle.lockfile +++ b/packages/kotlin/gradle.lockfile @@ -2,42 +2,41 @@ # Manual edits can break the build and are not advised. # This file is expected to be part of source control. # To regenerate this file, run: ./gradlew :dependencies --write-locks -ch.qos.logback:logback-classic:1.3.14=ktlint -ch.qos.logback:logback-core:1.3.14=ktlint -com.github.ajalt.clikt:clikt-jvm:5.0.2=ktlint -com.github.ajalt.clikt:clikt:5.0.2=ktlint +ch.qos.logback:logback-classic:1.6.8=ktlint +ch.qos.logback:logback-core:1.6.8=ktlint +com.github.ajalt.clikt:clikt-jvm:5.2.1=ktlint +com.github.ajalt.clikt:clikt:5.2.1=ktlint com.google.code.gson:gson:2.15.0=testCompileClasspath,testRuntimeClasspath -com.google.errorprone:error_prone_annotations:2.50.0=testCompileClasspath,testRuntimeClasspath +com.google.errorprone:error_prone_annotations:2.53.0=testCompileClasspath,testRuntimeClasspath com.google.protobuf:protobuf-javalite:4.36.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.google.protobuf:protobuf-kotlin-lite:4.36.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -com.pinterest.ktlint:ktlint-cli-reporter-baseline:1.5.0=ktlint,ktlintBaselineReporter -com.pinterest.ktlint:ktlint-cli-reporter-checkstyle:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-reporter-core:1.5.0=ktlint,ktlintBaselineReporter -com.pinterest.ktlint:ktlint-cli-reporter-format:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-reporter-html:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-reporter-json:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-reporter-plain-summary:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-reporter-plain:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-reporter-sarif:1.5.0=ktlint -com.pinterest.ktlint:ktlint-cli-ruleset-core:1.5.0=ktlint,ktlintRuleset -com.pinterest.ktlint:ktlint-cli:1.5.0=ktlint -com.pinterest.ktlint:ktlint-logger:1.5.0=ktlint,ktlintBaselineReporter,ktlintRuleset -com.pinterest.ktlint:ktlint-rule-engine-core:1.5.0=ktlint,ktlintBaselineReporter,ktlintRuleset -com.pinterest.ktlint:ktlint-rule-engine:1.5.0=ktlint -com.pinterest.ktlint:ktlint-ruleset-standard:1.5.0=ktlint,ktlintRuleset -dev.drewhamilton.poko:poko-annotations-jvm:0.18.0=ktlint,ktlintBaselineReporter,ktlintRuleset -dev.drewhamilton.poko:poko-annotations:0.18.0=ktlint,ktlintBaselineReporter,ktlintRuleset +com.pinterest.ktlint:ktlint-cli-reporter-baseline:1.8.0=ktlint,ktlintBaselineReporter +com.pinterest.ktlint:ktlint-cli-reporter-checkstyle:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-reporter-core:1.8.0=ktlint,ktlintBaselineReporter +com.pinterest.ktlint:ktlint-cli-reporter-format:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-reporter-html:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-reporter-json:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-reporter-plain-summary:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-reporter-plain:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-reporter-sarif:1.8.0=ktlint +com.pinterest.ktlint:ktlint-cli-ruleset-core:1.8.0=ktlint,ktlintRuleset +com.pinterest.ktlint:ktlint-cli:1.8.0=ktlint +com.pinterest.ktlint:ktlint-logger:1.8.0=ktlint,ktlintBaselineReporter,ktlintRuleset +com.pinterest.ktlint:ktlint-rule-engine-core:1.8.0=ktlint,ktlintBaselineReporter,ktlintRuleset +com.pinterest.ktlint:ktlint-rule-engine:1.8.0=ktlint +com.pinterest.ktlint:ktlint-ruleset-standard:1.8.0=ktlint,ktlintRuleset +dev.drewhamilton.poko:poko-annotations-jvm:0.20.1=ktlint,ktlintBaselineReporter,ktlintRuleset +dev.drewhamilton.poko:poko-annotations:0.20.1=ktlint,ktlintBaselineReporter,ktlintRuleset io.github.detekt.sarif4k:sarif4k-jvm:0.6.0=ktlint,ktlintReporter io.github.detekt.sarif4k:sarif4k:0.6.0=ktlint,ktlintReporter -io.github.oshai:kotlin-logging-jvm:7.0.3=ktlint,ktlintBaselineReporter,ktlintReporter,ktlintRuleset +io.github.oshai:kotlin-logging-jvm:7.0.13=ktlint,ktlintBaselineReporter,ktlintReporter,ktlintRuleset io.github.oshai:kotlin-logging:5.1.0=ktlint,ktlintBaselineReporter,ktlintReporter org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath org.bouncycastle:bcpg-jdk18on:1.87=kotlinBouncyCastleConfiguration org.bouncycastle:bcpkix-jdk18on:1.87=kotlinBouncyCastleConfiguration org.bouncycastle:bcprov-jdk18on:1.87=kotlinBouncyCastleConfiguration org.bouncycastle:bcutil-jdk18on:1.87=kotlinBouncyCastleConfiguration -org.ec4j.core:ec4j-core:1.1.0=ktlint,ktlintBaselineReporter,ktlintRuleset -org.jetbrains.intellij.deps:trove4j:1.0.20200330=ktlint,ktlintBaselineReporter,ktlintRuleset +org.ec4j.core:ec4j-core:1.1.1=ktlint,ktlintBaselineReporter,ktlintRuleset org.jetbrains.kotlin:kotlin-build-tools-api:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-build-tools-api:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath org.jetbrains.kotlin:kotlin-build-tools-compat:2.4.21=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath @@ -45,42 +44,41 @@ org.jetbrains.kotlin:kotlin-build-tools-cri-impl:2.4.0=kotlinAbiValidationCompat org.jetbrains.kotlin:kotlin-build-tools-cri-impl:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath org.jetbrains.kotlin:kotlin-build-tools-impl:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-build-tools-impl:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlin:kotlin-compiler-embeddable:2.1.0=ktlint,ktlintBaselineReporter,ktlintRuleset +org.jetbrains.kotlin:kotlin-compiler-embeddable:2.2.21=ktlint,ktlintBaselineReporter,ktlintRuleset org.jetbrains.kotlin:kotlin-compiler-embeddable:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-compiler-embeddable:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath org.jetbrains.kotlin:kotlin-compiler-runner:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-compiler-runner:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath org.jetbrains.kotlin:kotlin-daemon-client:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-daemon-client:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlin:kotlin-daemon-embeddable:2.1.0=ktlint,ktlintBaselineReporter,ktlintRuleset +org.jetbrains.kotlin:kotlin-daemon-embeddable:2.2.21=ktlint,ktlintBaselineReporter,ktlintRuleset org.jetbrains.kotlin:kotlin-daemon-embeddable:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-daemon-embeddable:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:2.4.21=kotlinKlibCommonizerClasspath org.jetbrains.kotlin:kotlin-reflect:1.6.10=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,ktlint,ktlintBaselineReporter,ktlintRuleset -org.jetbrains.kotlin:kotlin-script-runtime:2.1.0=ktlint,ktlintBaselineReporter,ktlintRuleset +org.jetbrains.kotlin:kotlin-script-runtime:2.2.21=ktlint,ktlintBaselineReporter,ktlintRuleset org.jetbrains.kotlin:kotlin-script-runtime:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-script-runtime:2.4.21=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest,kotlinKlibCommonizerClasspath org.jetbrains.kotlin:kotlin-scripting-common:2.4.21=kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:2.4.21=kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:2.4.21=kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest org.jetbrains.kotlin:kotlin-scripting-jvm:2.4.21=kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest -org.jetbrains.kotlin:kotlin-stdlib-common:2.1.0=ktlintReporter -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0=ktlintReporter -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0=ktlintReporter -org.jetbrains.kotlin:kotlin-stdlib:2.1.0=ktlint,ktlintBaselineReporter,ktlintReporter,ktlintRuleset +org.jetbrains.kotlin:kotlin-stdlib-common:2.2.21=ktlintReporter +org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.4.21=ktlintReporter +org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.4.21=ktlintReporter +org.jetbrains.kotlin:kotlin-stdlib:2.2.21=ktlint,ktlintBaselineReporter,ktlintReporter,ktlintRuleset org.jetbrains.kotlin:kotlin-stdlib:2.4.0=kotlinAbiValidationCompatClasspath org.jetbrains.kotlin:kotlin-stdlib:2.4.21=compileClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest,kotlinKlibCommonizerClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.jetbrains.kotlin:kotlin-test-junit5:2.4.21=testCompileClasspath,testRuntimeClasspath org.jetbrains.kotlin:kotlin-test:2.4.21=testCompileClasspath,testRuntimeClasspath org.jetbrains.kotlin:kotlin-tooling-core:2.4.21=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=ktlint,ktlintBaselineReporter,ktlintRuleset -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.11.0=kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,ktlint,ktlintBaselineReporter,ktlintRuleset org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.1=ktlintReporter org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.1=ktlintReporter org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.1=ktlintReporter org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1=ktlintReporter -org.jetbrains:annotations:13.0=compileClasspath,kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest,kotlinKlibCommonizerClasspath,ktlint,ktlintBaselineReporter,ktlintReporter,ktlintRuleset,runtimeClasspath,testCompileClasspath,testRuntimeClasspath -org.jspecify:jspecify:1.0.0=testCompileClasspath +org.jetbrains:annotations:26.1.0=compileClasspath,kotlinAbiValidationCompatClasspath,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinCompilerPluginClasspathMain,kotlinCompilerPluginClasspathTest,kotlinKlibCommonizerClasspath,ktlint,ktlintBaselineReporter,ktlintReporter,ktlintRuleset,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.jspecify:jspecify:1.0.1=testCompileClasspath org.junit.jupiter:junit-jupiter-api:6.1.3=testCompileClasspath,testRuntimeClasspath org.junit.jupiter:junit-jupiter-engine:6.1.3=testRuntimeClasspath org.junit.platform:junit-platform-commons:6.1.3=testCompileClasspath,testRuntimeClasspath @@ -88,5 +86,5 @@ org.junit.platform:junit-platform-engine:6.1.3=testRuntimeClasspath org.junit.platform:junit-platform-launcher:6.1.3=testRuntimeClasspath org.junit:junit-bom:6.1.3=testCompileClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath -org.slf4j:slf4j-api:2.0.7=ktlint +org.slf4j:slf4j-api:2.0.20=ktlint empty=annotationProcessor,implementationDependenciesMetadata,kotlinCompilerPluginClasspath,kotlinNativeCompilerPluginClasspath,kotlinScriptDefExtensions,testAnnotationProcessor,testImplementationDependenciesMetadata,testKotlinScriptDefExtensions diff --git a/packages/kotlin/gradle/verification-metadata.xml b/packages/kotlin/gradle/verification-metadata.xml index d0573eee..a9d7b880 100644 --- a/packages/kotlin/gradle/verification-metadata.xml +++ b/packages/kotlin/gradle/verification-metadata.xml @@ -13,6 +13,22 @@ + + + + + + + + + + + + + + + + @@ -21,16 +37,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -39,6 +91,22 @@ + + + + + + + + + + + + + + + + @@ -102,6 +170,14 @@ + + + + + + + + @@ -117,6 +193,11 @@ + + + + + @@ -203,6 +284,14 @@ + + + + + + + + @@ -211,6 +300,14 @@ + + + + + + + + @@ -219,6 +316,14 @@ + + + + + + + + @@ -227,6 +332,14 @@ + + + + + + + + @@ -235,6 +348,14 @@ + + + + + + + + @@ -243,6 +364,14 @@ + + + + + + + + @@ -251,6 +380,14 @@ + + + + + + + + @@ -259,6 +396,14 @@ + + + + + + + + @@ -267,6 +412,14 @@ + + + + + + + + @@ -275,6 +428,14 @@ + + + + + + + + @@ -283,6 +444,14 @@ + + + + + + + + @@ -291,6 +460,14 @@ + + + + + + + + @@ -299,6 +476,14 @@ + + + + + + + + @@ -307,6 +492,14 @@ + + + + + + + + @@ -315,11 +508,24 @@ + + + + + + + + + + + + + @@ -331,6 +537,17 @@ + + + + + + + + + + + @@ -367,6 +584,17 @@ + + + + + + + + + + + @@ -458,11 +686,24 @@ + + + + + + + + + + + + + @@ -471,6 +712,14 @@ + + + + + + + + @@ -679,6 +928,14 @@ + + + + + + + + @@ -783,6 +1040,14 @@ + + + + + + + + @@ -1119,6 +1384,14 @@ + + + + + + + + @@ -1287,6 +1560,14 @@ + + + + + + + + @@ -1324,6 +1605,11 @@ + + + + + @@ -1332,6 +1618,14 @@ + + + + + + + + @@ -1340,6 +1634,14 @@ + + + + + + + + @@ -1552,6 +1854,11 @@ + + + + + @@ -1562,6 +1869,17 @@ + + + + + + + + + + + @@ -1571,6 +1889,9 @@ + + + @@ -1625,6 +1946,14 @@ + + + + + + + + @@ -1729,6 +2058,22 @@ + + + + + + + + + + + + + + + + @@ -1737,6 +2082,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/kotlin/gradle/wrapper/gradle-wrapper.properties b/packages/kotlin/gradle/wrapper/gradle-wrapper.properties index bdc1ff0a..0fa1eaa9 100644 --- a/packages/kotlin/gradle/wrapper/gradle-wrapper.properties +++ b/packages/kotlin/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=d8a18a7a841dd5df825d35a685fad6f2d7f12ac0c280e57b67c27b4a520ba228 -distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.1-bin.zip +distributionSha256Sum=971fcd7150ca4ba04852c0b2ca0d2d0ab9468e14b03473eab19528809914c76b +distributionUrl=https\://services.gradle.org/distributions/gradle-9.9.2-bin.zip networkTimeout=10000 retries=0 retryBackOffMs=500 diff --git a/packages/kotlin/runtime/gradle.lockfile b/packages/kotlin/runtime/gradle.lockfile index e977bdb3..9ee37904 100644 --- a/packages/kotlin/runtime/gradle.lockfile +++ b/packages/kotlin/runtime/gradle.lockfile @@ -3,4 +3,4 @@ com.google.protobuf:protobuf-javalite:4.36.2=runtimeClasspath com.google.protobuf:protobuf-kotlin-lite:4.36.2=runtimeClasspath org.jetbrains.kotlin:kotlin-stdlib:2.4.21=runtimeClasspath -org.jetbrains:annotations:13.0=runtimeClasspath +org.jetbrains:annotations:26.1.0=runtimeClasspath diff --git a/packages/kotlin/settings.gradle.kts b/packages/kotlin/settings.gradle.kts index b5a74f6e..9c20869f 100644 --- a/packages/kotlin/settings.gradle.kts +++ b/packages/kotlin/settings.gradle.kts @@ -9,6 +9,8 @@ pluginManagement { } } +apply(from = file("../dependency-security.gradle.kts")) + dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { diff --git a/packages/kotlin/src/main/kotlin/me/really/codec/CallCodec.kt b/packages/kotlin/src/main/kotlin/me/really/codec/CallCodec.kt index 0699ac27..6fee58a6 100644 --- a/packages/kotlin/src/main/kotlin/me/really/codec/CallCodec.kt +++ b/packages/kotlin/src/main/kotlin/me/really/codec/CallCodec.kt @@ -85,11 +85,16 @@ internal fun processOperation( } consume(result) } - CodecOperationResponse.OutcomeCase.ERROR -> + + CodecOperationResponse.OutcomeCase.ERROR -> { throw exceptionForCodecError(response.error) + } + CodecOperationResponse.OutcomeCase.OUTCOME_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } } catch (_: InvalidProtocolBufferException) { throw ReallyMeCodecException.ProviderFailure() @@ -121,15 +126,18 @@ internal fun exceptionForCodecError(codecError: CodecError): ReallyMeCodecExcept CodecErrorReason.CODEC_ERROR_REASON_BASE_ALLOCATION_FAILURE, CodecErrorReason.CODEC_ERROR_REASON_BASE_LENGTH_OVERFLOW, -> CodecErrorOrigin.CODEC_ERROR_ORIGIN_PROVIDER + else -> CodecErrorOrigin.CODEC_ERROR_ORIGIN_CALLER } } + CodecError.ErrorCase.PEM -> { if (!knownProviderReason(codecError.pem.reallyMeHasUnknownFieldsForValidation(), codecError.pem.reason, 200..299)) { return ReallyMeCodecException.ProviderFailure() } CodecErrorOrigin.CODEC_ERROR_ORIGIN_CALLER } + CodecError.ErrorCase.MULTIFORMAT -> { if (!knownProviderReason( codecError.multiformat.reallyMeHasUnknownFieldsForValidation(), @@ -141,6 +149,7 @@ internal fun exceptionForCodecError(codecError: CodecError): ReallyMeCodecExcept } CodecErrorOrigin.CODEC_ERROR_ORIGIN_CALLER } + CodecError.ErrorCase.CANONICALIZATION -> { if (!knownProviderReason( codecError.canonicalization.reallyMeHasUnknownFieldsForValidation(), @@ -155,15 +164,18 @@ internal fun exceptionForCodecError(codecError: CodecError): ReallyMeCodecExcept CodecErrorReason.CODEC_ERROR_REASON_CANONICAL_JSON_ALLOCATION_FAILURE, CodecErrorReason.CODEC_ERROR_REASON_CANONICAL_JSON_ARITHMETIC_OVERFLOW, -> CodecErrorOrigin.CODEC_ERROR_ORIGIN_PROVIDER + else -> CodecErrorOrigin.CODEC_ERROR_ORIGIN_CALLER } } + CodecError.ErrorCase.BACKEND -> { if (!knownProviderReason(codecError.backend.reallyMeHasUnknownFieldsForValidation(), codecError.backend.reason, 500..599)) { return ReallyMeCodecException.ProviderFailure() } CodecErrorOrigin.CODEC_ERROR_ORIGIN_PROVIDER } + CodecError.ErrorCase.BOUNDARY -> { if (!knownProviderReason( codecError.boundary.reallyMeHasUnknownFieldsForValidation(), @@ -175,9 +187,12 @@ internal fun exceptionForCodecError(codecError: CodecError): ReallyMeCodecExcept } CodecErrorOrigin.CODEC_ERROR_ORIGIN_CALLER } + CodecError.ErrorCase.ERROR_NOT_SET, null, - -> return ReallyMeCodecException.ProviderFailure() + -> { + return ReallyMeCodecException.ProviderFailure() + } } if (codecError.origin != expectedOrigin) { return ReallyMeCodecException.ProviderFailure() diff --git a/packages/kotlin/src/main/kotlin/me/really/codec/ConvertCborProto.kt b/packages/kotlin/src/main/kotlin/me/really/codec/ConvertCborProto.kt index 861d0099..dc254c72 100644 --- a/packages/kotlin/src/main/kotlin/me/really/codec/ConvertCborProto.kt +++ b/packages/kotlin/src/main/kotlin/me/really/codec/ConvertCborProto.kt @@ -64,7 +64,7 @@ internal fun dagCborDecodeRequest(bytes: ByteArray): CodecOperationRequest { private fun protoInteger(integer: ReallyMeDeterministicCborInteger): CodecDeterministicCborInteger = when (integer) { - is ReallyMeDeterministicCborInteger.Unsigned -> + is ReallyMeDeterministicCborInteger.Unsigned -> { CodecDeterministicCborInteger .newBuilder() .setUnsignedValue( @@ -72,7 +72,9 @@ private fun protoInteger(integer: ReallyMeDeterministicCborInteger): CodecDeterm .newBuilder() .setValue(integer.value.toLong()), ).build() - is ReallyMeDeterministicCborInteger.Negative -> + } + + is ReallyMeDeterministicCborInteger.Negative -> { CodecDeterministicCborInteger .newBuilder() .setNegativeValue( @@ -80,16 +82,19 @@ private fun protoInteger(integer: ReallyMeDeterministicCborInteger): CodecDeterm .newBuilder() .setValue(integer.value), ).build() + } } private fun protoKey(key: ReallyMeDeterministicCborMapKey): CodecDeterministicCborMapKey = when (key) { - is ReallyMeDeterministicCborMapKey.Integer -> + is ReallyMeDeterministicCborMapKey.Integer -> { CodecDeterministicCborMapKey .newBuilder() .setIntegerKey(protoInteger(key.value)) .build() - is ReallyMeDeterministicCborMapKey.Text -> + } + + is ReallyMeDeterministicCborMapKey.Text -> { CodecDeterministicCborMapKey .newBuilder() .setTextKey( @@ -97,16 +102,19 @@ private fun protoKey(key: ReallyMeDeterministicCborMapKey): CodecDeterministicCb .newBuilder() .setValue(key.value), ).build() + } } private fun protoValue(value: ReallyMeDeterministicCborValue): CodecDeterministicCborValue = when (value) { - ReallyMeDeterministicCborValue.Null -> + ReallyMeDeterministicCborValue.Null -> { CodecDeterministicCborValue .newBuilder() .setNullValue(CodecDeterministicCborNull.getDefaultInstance()) .build() - is ReallyMeDeterministicCborValue.Bool -> + } + + is ReallyMeDeterministicCborValue.Bool -> { CodecDeterministicCborValue .newBuilder() .setBoolValue( @@ -114,12 +122,16 @@ private fun protoValue(value: ReallyMeDeterministicCborValue): CodecDeterministi .newBuilder() .setValue(value.value), ).build() - is ReallyMeDeterministicCborValue.Integer -> + } + + is ReallyMeDeterministicCborValue.Integer -> { CodecDeterministicCborValue .newBuilder() .setIntegerValue(protoInteger(value.value)) .build() - is ReallyMeDeterministicCborValue.Text -> + } + + is ReallyMeDeterministicCborValue.Text -> { CodecDeterministicCborValue .newBuilder() .setTextValue( @@ -127,7 +139,9 @@ private fun protoValue(value: ReallyMeDeterministicCborValue): CodecDeterministi .newBuilder() .setValue(value.value), ).build() - is ReallyMeDeterministicCborValue.Bytes -> + } + + is ReallyMeDeterministicCborValue.Bytes -> { CodecDeterministicCborValue .newBuilder() .setBytesValue( @@ -135,7 +149,9 @@ private fun protoValue(value: ReallyMeDeterministicCborValue): CodecDeterministi .newBuilder() .setValue(borrowedByteString(value.borrowedBytes())), ).build() - is ReallyMeDeterministicCborValue.Array -> + } + + is ReallyMeDeterministicCborValue.Array -> { CodecDeterministicCborValue .newBuilder() .setArrayValue( @@ -143,7 +159,9 @@ private fun protoValue(value: ReallyMeDeterministicCborValue): CodecDeterministi .newBuilder() .addAllValues(value.values.map(::protoValue)), ).build() - is ReallyMeDeterministicCborValue.Map -> + } + + is ReallyMeDeterministicCborValue.Map -> { CodecDeterministicCborValue .newBuilder() .setMapValue( @@ -159,47 +177,72 @@ private fun protoValue(value: ReallyMeDeterministicCborValue): CodecDeterministi }, ), ).build() + } } private fun sdkInteger(integer: CodecDeterministicCborInteger): ReallyMeDeterministicCborInteger = when (integer.valueCase) { - CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> + CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> { ReallyMeDeterministicCborInteger.Unsigned(integer.unsignedValue.value.toULong()) - CodecDeterministicCborInteger.ValueCase.NEGATIVE_VALUE -> + } + + CodecDeterministicCborInteger.ValueCase.NEGATIVE_VALUE -> { ReallyMeDeterministicCborInteger.Negative.fromProvider(integer.negativeValue.value) + } + CodecDeterministicCborInteger.ValueCase.VALUE_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } private fun sdkKey(key: CodecDeterministicCborMapKey): ReallyMeDeterministicCborMapKey = when (key.keyCase) { - CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> + CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> { ReallyMeDeterministicCborMapKey.Integer(sdkInteger(key.integerKey)) - CodecDeterministicCborMapKey.KeyCase.TEXT_KEY -> + } + + CodecDeterministicCborMapKey.KeyCase.TEXT_KEY -> { ReallyMeDeterministicCborMapKey.Text(key.textKey.value) + } + CodecDeterministicCborMapKey.KeyCase.KEY_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } internal fun sdkValue(value: CodecDeterministicCborValue): ReallyMeDeterministicCborValue = when (value.valueCase) { - CodecDeterministicCborValue.ValueCase.NULL_VALUE -> + CodecDeterministicCborValue.ValueCase.NULL_VALUE -> { ReallyMeDeterministicCborValue.Null - CodecDeterministicCborValue.ValueCase.BOOL_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.BOOL_VALUE -> { ReallyMeDeterministicCborValue.Bool(value.boolValue.value) - CodecDeterministicCborValue.ValueCase.INTEGER_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.INTEGER_VALUE -> { ReallyMeDeterministicCborValue.Integer(sdkInteger(value.integerValue)) - CodecDeterministicCborValue.ValueCase.TEXT_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.TEXT_VALUE -> { ReallyMeDeterministicCborValue.Text(value.textValue.value) - CodecDeterministicCborValue.ValueCase.BYTES_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.BYTES_VALUE -> { ReallyMeDeterministicCborValue.Bytes.fromOwnedProviderBytes( value.bytesValue.value.toByteArray(), ) - CodecDeterministicCborValue.ValueCase.ARRAY_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.ARRAY_VALUE -> { ReallyMeDeterministicCborValue.Array(value.arrayValue.valuesList.map(::sdkValue)) - CodecDeterministicCborValue.ValueCase.MAP_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.MAP_VALUE -> { ReallyMeDeterministicCborValue.Map( value.mapValue.entriesList.map { entry -> if (!entry.hasKey() || !entry.hasValue()) { @@ -211,15 +254,11 @@ internal fun sdkValue(value: CodecDeterministicCborValue): ReallyMeDeterministic ) }, ) + } + CodecDeterministicCborValue.ValueCase.VALUE_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } - -/** - * Borrows the caller's array only for synchronous protobuf serialization. - * `ByteString.copyFrom` would create an additional immutable payload owner - * that the JVM cannot wipe. This wrapper creates no byte copy; the final - * serialized request is the sole SDK-owned copy and is wiped in - * [processOperation]. The wrapper must never escape or be retained. - */ diff --git a/packages/kotlin/src/main/kotlin/me/really/codec/ReallyMeCodecRustNativeProvider.kt b/packages/kotlin/src/main/kotlin/me/really/codec/ReallyMeCodecRustNativeProvider.kt index 21755688..df62a768 100644 --- a/packages/kotlin/src/main/kotlin/me/really/codec/ReallyMeCodecRustNativeProvider.kt +++ b/packages/kotlin/src/main/kotlin/me/really/codec/ReallyMeCodecRustNativeProvider.kt @@ -26,7 +26,7 @@ public object ReallyMeCodecRustNativeProvider { private const val EXPECTED_CODEC_ABI_VERSION: Int = 6 private const val EXPECTED_CODEC_PACKAGE_MAJOR: Int = 0 private const val EXPECTED_CODEC_PACKAGE_MINOR: Int = 4 - private const val EXPECTED_CODEC_PACKAGE_PATCH: Int = 5 + private const val EXPECTED_CODEC_PACKAGE_PATCH: Int = 6 private const val MAX_MANAGED_FFI_LIMIT_BYTES: Long = Int.MAX_VALUE.toLong() private const val ALLOW_UNVERIFIED_NATIVE_PROPERTY: String = "reallyme.codec.allowUnverifiedNative" diff --git a/packages/kotlin/src/main/kotlin/me/really/codec/ValidateCbor.kt b/packages/kotlin/src/main/kotlin/me/really/codec/ValidateCbor.kt index 3fa4867e..ec0ffaed 100644 --- a/packages/kotlin/src/main/kotlin/me/really/codec/ValidateCbor.kt +++ b/packages/kotlin/src/main/kotlin/me/really/codec/ValidateCbor.kt @@ -30,7 +30,8 @@ internal fun validateDeterministicCborValue( ReallyMeDeterministicCborValue.Null, is ReallyMeDeterministicCborValue.Bool, is ReallyMeDeterministicCborValue.Integer, - -> Unit + -> {} + is ReallyMeDeterministicCborValue.Text -> { state.textBytes = addDeterministicCborCount( @@ -39,6 +40,7 @@ internal fun validateDeterministicCborValue( MAX_DETERMINISTIC_CBOR_AGGREGATE_TEXT_BYTES, ) } + is ReallyMeDeterministicCborValue.Bytes -> { state.byteStringBytes = addDeterministicCborCount( @@ -47,6 +49,7 @@ internal fun validateDeterministicCborValue( MAX_DETERMINISTIC_CBOR_AGGREGATE_BYTE_STRING_BYTES, ) } + is ReallyMeDeterministicCborValue.Array -> { validateDeterministicCborContainer(value.values.size) val childDepth = deterministicCborChildDepth(depth) @@ -54,6 +57,7 @@ internal fun validateDeterministicCborValue( validateDeterministicCborValue(child, childDepth, state) } } + is ReallyMeDeterministicCborValue.Map -> { validateDeterministicCborContainer(value.entries.size) val childDepth = deterministicCborChildDepth(depth) @@ -110,17 +114,28 @@ internal fun deterministicCborUtf8Length(text: String): Int { val character = text[index] val increment = when { - character.code <= 0x7f -> 1 - character.code <= 0x7ff -> 2 + character.code <= 0x7f -> { + 1 + } + + character.code <= 0x7ff -> { + 2 + } + Character.isHighSurrogate(character) && index + 1 < text.length && Character.isLowSurrogate(text[index + 1]) -> { index += 1 4 } - Character.isSurrogate(character) -> + + Character.isSurrogate(character) -> { throw ReallyMeCodecException.InvalidInput() - else -> 3 + } + + else -> { + 3 + } } length = addDeterministicCborCount( diff --git a/packages/kotlin/src/main/kotlin/me/really/codec/ValidateProviderCbor.kt b/packages/kotlin/src/main/kotlin/me/really/codec/ValidateProviderCbor.kt index 8af4b1b0..778db493 100644 --- a/packages/kotlin/src/main/kotlin/me/really/codec/ValidateProviderCbor.kt +++ b/packages/kotlin/src/main/kotlin/me/really/codec/ValidateProviderCbor.kt @@ -33,16 +33,22 @@ private fun validateProviderDeterministicCborValue( ) when (value.valueCase) { CodecDeterministicCborValue.ValueCase.NULL_VALUE, - -> + -> { requireNoProviderUnknownFields( value.nullValue.reallyMeHasUnknownFieldsForValidation(), ) - CodecDeterministicCborValue.ValueCase.BOOL_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.BOOL_VALUE -> { requireNoProviderUnknownFields( value.boolValue.reallyMeHasUnknownFieldsForValidation(), ) - CodecDeterministicCborValue.ValueCase.INTEGER_VALUE -> + } + + CodecDeterministicCborValue.ValueCase.INTEGER_VALUE -> { validateProviderDeterministicCborInteger(value.integerValue) + } + CodecDeterministicCborValue.ValueCase.TEXT_VALUE -> { requireNoProviderUnknownFields( value.textValue.reallyMeHasUnknownFieldsForValidation(), @@ -54,6 +60,7 @@ private fun validateProviderDeterministicCborValue( MAX_DETERMINISTIC_CBOR_AGGREGATE_TEXT_BYTES, ) } + CodecDeterministicCborValue.ValueCase.BYTES_VALUE -> { requireNoProviderUnknownFields( value.bytesValue.reallyMeHasUnknownFieldsForValidation(), @@ -65,6 +72,7 @@ private fun validateProviderDeterministicCborValue( MAX_DETERMINISTIC_CBOR_AGGREGATE_BYTE_STRING_BYTES, ) } + CodecDeterministicCborValue.ValueCase.ARRAY_VALUE -> { requireNoProviderUnknownFields( value.arrayValue.reallyMeHasUnknownFieldsForValidation(), @@ -75,6 +83,7 @@ private fun validateProviderDeterministicCborValue( validateProviderDeterministicCborValue(child, childDepth, state) } } + CodecDeterministicCborValue.ValueCase.MAP_VALUE -> { requireNoProviderUnknownFields( value.mapValue.reallyMeHasUnknownFieldsForValidation(), @@ -103,9 +112,12 @@ private fun validateProviderDeterministicCborValue( validateProviderDeterministicCborValue(entry.value, childDepth, state) } } + CodecDeterministicCborValue.ValueCase.VALUE_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } } @@ -132,20 +144,28 @@ private fun compareProviderDeterministicCborMapKeys( return leftRank.compareTo(rightRank) } return when (left.keyCase) { - CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> + CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> { compareProviderDeterministicCborIntegers(left.integerKey, right.integerKey) - CodecDeterministicCborMapKey.KeyCase.TEXT_KEY -> + } + + CodecDeterministicCborMapKey.KeyCase.TEXT_KEY -> { left.textKey.value.compareTo(right.textKey.value) + } + CodecDeterministicCborMapKey.KeyCase.KEY_NOT_SET, null, - -> 0 + -> { + 0 + } } } private fun providerDeterministicCborMapKeyRank(keyCase: CodecDeterministicCborMapKey.KeyCase?): Int = when (keyCase) { CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> 0 + CodecDeterministicCborMapKey.KeyCase.TEXT_KEY -> 1 + CodecDeterministicCborMapKey.KeyCase.KEY_NOT_SET, null, -> 2 @@ -161,22 +181,30 @@ private fun compareProviderDeterministicCborIntegers( return leftRank.compareTo(rightRank) } return when (left.valueCase) { - CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> + CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> { left.unsignedValue.value .toULong() .compareTo(right.unsignedValue.value.toULong()) - CodecDeterministicCborInteger.ValueCase.NEGATIVE_VALUE -> + } + + CodecDeterministicCborInteger.ValueCase.NEGATIVE_VALUE -> { left.negativeValue.value.compareTo(right.negativeValue.value) + } + CodecDeterministicCborInteger.ValueCase.VALUE_NOT_SET, null, - -> 0 + -> { + 0 + } } } private fun providerDeterministicCborIntegerRank(valueCase: CodecDeterministicCborInteger.ValueCase?): Int = when (valueCase) { CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> 0 + CodecDeterministicCborInteger.ValueCase.NEGATIVE_VALUE -> 1 + CodecDeterministicCborInteger.ValueCase.VALUE_NOT_SET, null, -> 2 @@ -185,10 +213,12 @@ private fun providerDeterministicCborIntegerRank(valueCase: CodecDeterministicCb private fun validateProviderDeterministicCborInteger(integer: CodecDeterministicCborInteger) { requireNoProviderUnknownFields(integer.reallyMeHasUnknownFieldsForValidation()) when (integer.valueCase) { - CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> + CodecDeterministicCborInteger.ValueCase.UNSIGNED_VALUE -> { requireNoProviderUnknownFields( integer.unsignedValue.reallyMeHasUnknownFieldsForValidation(), ) + } + CodecDeterministicCborInteger.ValueCase.NEGATIVE_VALUE -> { requireNoProviderUnknownFields( integer.negativeValue.reallyMeHasUnknownFieldsForValidation(), @@ -197,9 +227,12 @@ private fun validateProviderDeterministicCborInteger(integer: CodecDeterministic throw ReallyMeCodecException.ProviderFailure() } } + CodecDeterministicCborInteger.ValueCase.VALUE_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } } @@ -209,8 +242,10 @@ private fun validateProviderDeterministicCborKey( ) { requireNoProviderUnknownFields(key.reallyMeHasUnknownFieldsForValidation()) when (key.keyCase) { - CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> + CodecDeterministicCborMapKey.KeyCase.INTEGER_KEY -> { validateProviderDeterministicCborInteger(key.integerKey) + } + CodecDeterministicCborMapKey.KeyCase.TEXT_KEY -> { requireNoProviderUnknownFields( key.textKey.reallyMeHasUnknownFieldsForValidation(), @@ -222,9 +257,12 @@ private fun validateProviderDeterministicCborKey( MAX_DETERMINISTIC_CBOR_AGGREGATE_TEXT_BYTES, ) } + CodecDeterministicCborMapKey.KeyCase.KEY_NOT_SET, null, - -> throw ReallyMeCodecException.ProviderFailure() + -> { + throw ReallyMeCodecException.ProviderFailure() + } } } diff --git a/packages/kotlin/src/main/kotlin/me/really/codec/WithCodecBytes.kt b/packages/kotlin/src/main/kotlin/me/really/codec/WithCodecBytes.kt index ef6cb0cf..5fde8674 100644 --- a/packages/kotlin/src/main/kotlin/me/really/codec/WithCodecBytes.kt +++ b/packages/kotlin/src/main/kotlin/me/really/codec/WithCodecBytes.kt @@ -10,6 +10,14 @@ import java.nio.ByteBuffer import java.nio.charset.CharacterCodingException import java.nio.charset.CodingErrorAction +/** + * Borrows the caller's array only for synchronous protobuf serialization. + * `ByteString.copyFrom` would create an additional immutable payload owner + * that the JVM cannot wipe. This wrapper creates no byte copy; the final + * serialized request is the sole SDK-owned copy and is wiped in + * [processOperation]. The wrapper must never escape or be retained. + */ + internal fun borrowedByteString(bytes: ByteArray): ByteString = UnsafeByteOperations.unsafeWrap(bytes) internal fun bytes(text: String): ByteArray { @@ -73,17 +81,28 @@ internal fun utf8Length(text: String): Int { val character = text[index] val increment = when { - character.code <= 0x7f -> 1 - character.code <= 0x7ff -> 2 + character.code <= 0x7f -> { + 1 + } + + character.code <= 0x7ff -> { + 2 + } + Character.isHighSurrogate(character) && index + 1 < text.length && Character.isLowSurrogate(text[index + 1]) -> { index += 1 4 } - Character.isSurrogate(character) -> + + Character.isSurrogate(character) -> { throw ReallyMeCodecException.InvalidInput() - else -> 3 + } + + else -> { + 3 + } } if (length > maximum - increment) { throw ReallyMeCodecException.InvalidInput() diff --git a/packages/kotlin/src/test/kotlin/me/really/codec/CodecVectorFixture.kt b/packages/kotlin/src/test/kotlin/me/really/codec/CodecVectorFixture.kt index e6eeb60f..280e0108 100644 --- a/packages/kotlin/src/test/kotlin/me/really/codec/CodecVectorFixture.kt +++ b/packages/kotlin/src/test/kotlin/me/really/codec/CodecVectorFixture.kt @@ -75,21 +75,48 @@ private fun String.jsonUnescaped(): String { index += 1 require(index < length) when (val escaped = this[index]) { - '"' -> output.append('"') - '\\' -> output.append('\\') - '/' -> output.append('/') - 'b' -> output.append('\b') - 'f' -> output.append('\u000C') - 'n' -> output.append('\n') - 'r' -> output.append('\r') - 't' -> output.append('\t') + '"' -> { + output.append('"') + } + + '\\' -> { + output.append('\\') + } + + '/' -> { + output.append('/') + } + + 'b' -> { + output.append('\b') + } + + 'f' -> { + output.append('\u000C') + } + + 'n' -> { + output.append('\n') + } + + 'r' -> { + output.append('\r') + } + + 't' -> { + output.append('\t') + } + 'u' -> { require(index + 4 < length) val codePoint = substring(index + 1, index + 5).toInt(16) output.append(codePoint.toChar()) index += 4 } - else -> error("unsupported JSON escape: $escaped") + + else -> { + error("unsupported JSON escape: $escaped") + } } index += 1 } diff --git a/packages/kotlin/src/test/kotlin/me/really/codec/DeterministicCborVectorTest.kt b/packages/kotlin/src/test/kotlin/me/really/codec/DeterministicCborVectorTest.kt index 784b4d01..e8ec594a 100644 --- a/packages/kotlin/src/test/kotlin/me/really/codec/DeterministicCborVectorTest.kt +++ b/packages/kotlin/src/test/kotlin/me/really/codec/DeterministicCborVectorTest.kt @@ -112,15 +112,21 @@ class DeterministicCborVectorTest { val vector = vectorElement.requiredObject() val context = vector.requiredString("name") + ":" + vector.requiredString("reason") when (vector.requiredString("errorClass")) { - "non-canonical" -> + "non-canonical" -> { assertFailsWith(message = context) { codec.deterministicCborDecode(vector.requiredString("hex").hexToByteArray()) } - "invalid-input" -> + } + + "invalid-input" -> { assertFailsWith(message = context) { codec.deterministicCborDecode(vector.requiredString("hex").hexToByteArray()) } - else -> error("unsupported vector error class") + } + + else -> { + error("unsupported vector error class") + } } } @@ -197,7 +203,8 @@ class DeterministicCborVectorTest { ) } } - "byte-string-length" -> + + "byte-string-length" -> { assertFailsWith( message = vector.requiredString("name"), ) { @@ -207,7 +214,9 @@ class DeterministicCborVectorTest { ), ) } - "balanced-array-tree" -> + } + + "balanced-array-tree" -> { assertFailsWith( message = vector.requiredString("name"), ) { @@ -218,7 +227,9 @@ class DeterministicCborVectorTest { ), ) } - "array-of-null" -> + } + + "array-of-null" -> { assertFailsWith( message = vector.requiredString("name"), ) { @@ -230,6 +241,8 @@ class DeterministicCborVectorTest { ), ) } + } + "nested-singleton-arrays" -> { var value: ReallyMeDeterministicCborValue = ReallyMeDeterministicCborValue.Null @@ -242,7 +255,10 @@ class DeterministicCborVectorTest { codec.deterministicCborEncode(value) } } - else -> error("unknown deterministic-CBOR resource construction") + + else -> { + error("unknown deterministic-CBOR resource construction") + } } } @@ -335,25 +351,38 @@ class DeterministicCborVectorTest { private fun sdkInteger(value: JsonObject): ReallyMeDeterministicCborInteger = when { - value.has("unsigned") -> + value.has("unsigned") -> { ReallyMeDeterministicCborInteger.Unsigned( value.requiredString("unsigned").toULong(), ) - value.has("negative") -> + } + + value.has("negative") -> { ReallyMeDeterministicCborInteger.Negative.of( value.requiredString("negative").toLong(), ) - else -> error("unknown deterministic-CBOR integer fixture branch") + } + + else -> { + error("unknown deterministic-CBOR integer fixture branch") + } } private fun sdkMapKey(value: JsonObject): ReallyMeDeterministicCborMapKey = when { - value.has("integer") -> + value.has("integer") -> { ReallyMeDeterministicCborMapKey.Integer( sdkInteger(value.requiredObject("integer")), ) - value.has("text") -> ReallyMeDeterministicCborMapKey.Text(value.requiredString("text")) - else -> error("unknown deterministic-CBOR map-key fixture branch") + } + + value.has("text") -> { + ReallyMeDeterministicCborMapKey.Text(value.requiredString("text")) + } + + else -> { + error("unknown deterministic-CBOR map-key fixture branch") + } } private fun sdkMapEntry(value: JsonObject): ReallyMeDeterministicCborMapEntry = @@ -365,31 +394,50 @@ class DeterministicCborVectorTest { private fun sdkValue(element: JsonElement): ReallyMeDeterministicCborValue { val value = element.requiredObject() return when { - value.has("unsigned") -> + value.has("unsigned") -> { ReallyMeDeterministicCborValue.Integer(sdkInteger(value)) - value.has("negative") -> + } + + value.has("negative") -> { ReallyMeDeterministicCborValue.Integer(sdkInteger(value)) - value.has("bytes") -> + } + + value.has("bytes") -> { ReallyMeDeterministicCborValue.Bytes( Base64.getDecoder().decode(value.requiredString("bytes")), ) - value.has("text") -> ReallyMeDeterministicCborValue.Text(value.requiredString("text")) - value.has("bool") -> ReallyMeDeterministicCborValue.Bool(value.required("bool").asBoolean) + } + + value.has("text") -> { + ReallyMeDeterministicCborValue.Text(value.requiredString("text")) + } + + value.has("bool") -> { + ReallyMeDeterministicCborValue.Bool(value.required("bool").asBoolean) + } + value.has("null") -> { require(value.required("null").asBoolean) { "deterministic-CBOR null marker must be true" } ReallyMeDeterministicCborValue.Null } - value.has("array") -> + + value.has("array") -> { ReallyMeDeterministicCborValue.Array( value.requiredArray("array").map(::sdkValue), ) - value.has("map") -> + } + + value.has("map") -> { ReallyMeDeterministicCborValue.Map( value.requiredArray("map").map { sdkMapEntry(it.requiredObject()) }, ) - else -> error("unknown deterministic-CBOR value fixture branch") + } + + else -> { + error("unknown deterministic-CBOR value fixture branch") + } } } diff --git a/packages/kotlin/src/test/kotlin/me/really/codec/NativeProviderSafetyTest.kt b/packages/kotlin/src/test/kotlin/me/really/codec/NativeProviderSafetyTest.kt index d45698a8..4e609ad6 100644 --- a/packages/kotlin/src/test/kotlin/me/really/codec/NativeProviderSafetyTest.kt +++ b/packages/kotlin/src/test/kotlin/me/really/codec/NativeProviderSafetyTest.kt @@ -45,7 +45,8 @@ class NativeProviderSafetyTest { assertFalse(ReallyMeCodecRustNativeProvider.isCompatibleAbiVersion(5)) assertFalse(ReallyMeCodecRustNativeProvider.isCompatibleAbiVersion(0)) - assertTrue(ReallyMeCodecRustNativeProvider.isCompatiblePackageVersion(0, 4, 5)) + assertTrue(ReallyMeCodecRustNativeProvider.isCompatiblePackageVersion(0, 4, 6)) + assertFalse(ReallyMeCodecRustNativeProvider.isCompatiblePackageVersion(0, 4, 5)) assertFalse(ReallyMeCodecRustNativeProvider.isCompatiblePackageVersion(0, 4, 4)) assertFalse(ReallyMeCodecRustNativeProvider.isCompatiblePackageVersion(0, 4, 3)) assertFalse(ReallyMeCodecRustNativeProvider.isCompatiblePackageVersion(0, 4, 2)) diff --git a/packages/kotlin/src/test/kotlin/me/really/codec/PemBundleVectorTest.kt b/packages/kotlin/src/test/kotlin/me/really/codec/PemBundleVectorTest.kt index c66271ce..9982375d 100644 --- a/packages/kotlin/src/test/kotlin/me/really/codec/PemBundleVectorTest.kt +++ b/packages/kotlin/src/test/kotlin/me/really/codec/PemBundleVectorTest.kt @@ -68,11 +68,15 @@ class PemBundleVectorTest { assertEquals(expected.error.pem.reason, actual.error.pem.reason, name) assertNotEquals(CodecErrorReason.CODEC_ERROR_REASON_UNSPECIFIED, actual.error.pem.reason, name) } + CodecApiError.ErrorCase.BASE_ENCODING -> { assertEquals(expected.error.baseEncoding.reason, actual.error.baseEncoding.reason, name) assertEquals(CodecErrorReason.CODEC_ERROR_REASON_BASE_INPUT_TOO_LARGE, actual.error.baseEncoding.reason, name) } - else -> fail("unexpected error family: $name") + + else -> { + fail("unexpected error family: $name") + } } } } finally { diff --git a/packages/swift/README.md b/packages/swift/README.md index 278a8417..878dfd64 100644 --- a/packages/swift/README.md +++ b/packages/swift/README.md @@ -6,7 +6,7 @@ Building from source requires Swift 6.3. ## Install ```swift -.package(url: "https://github.com/reallyme/codec", from: "0.4.5") +.package(url: "https://github.com/reallyme/codec", from: "0.4.6") ``` Add `.product(name: "ReallyMeCodec", package: "codec")` to your target. diff --git a/packages/swift/Sources/ReallyMeCodec/CallCodecWithRustCAbi.swift b/packages/swift/Sources/ReallyMeCodec/CallCodecWithRustCAbi.swift index e21c9dc5..dc095210 100644 --- a/packages/swift/Sources/ReallyMeCodec/CallCodecWithRustCAbi.swift +++ b/packages/swift/Sources/ReallyMeCodec/CallCodecWithRustCAbi.swift @@ -13,7 +13,7 @@ import Foundation private let expectedCodecAbiVersion: UInt32 = 6 private let expectedCodecPackageMajor: UInt32 = 0 private let expectedCodecPackageMinor: UInt32 = 4 -private let expectedCodecPackagePatch: UInt32 = 5 +private let expectedCodecPackagePatch: UInt32 = 6 // Shared transport cap includes JSON expansion and operation framing. Its value // is derived and checked by scripts/generate_codec_limits.mjs. private let maxProtoJsonRequestLength = 22_373_720 diff --git a/packages/swift/Tests/ReallyMeCodecTests/ProviderSafetyTests.swift b/packages/swift/Tests/ReallyMeCodecTests/ProviderSafetyTests.swift index 420be1d5..50fe4b20 100644 --- a/packages/swift/Tests/ReallyMeCodecTests/ProviderSafetyTests.swift +++ b/packages/swift/Tests/ReallyMeCodecTests/ProviderSafetyTests.swift @@ -131,10 +131,10 @@ extension ReallyMeCodecTests { try ReallyMeCodecRustCAbiProvider.requireCompatiblePackageVersion( major: 0, minor: 4, - patch: 5 + patch: 6 ) let rejectedVersions: [(UInt32, UInt32, UInt32)] = [ - (0, 3, 0), (0, 4, 0), (0, 4, 1), (0, 4, 2), (0, 4, 3), (0, 4, 4), (1, 4, 4), + (0, 3, 0), (0, 4, 0), (0, 4, 1), (0, 4, 2), (0, 4, 3), (0, 4, 4), (0, 4, 5), (1, 4, 4), (0, 3, 6), ] for version in rejectedVersions { diff --git a/packages/ts/package-lock.json b/packages/ts/package-lock.json index c2355d4f..0e70e28b 100644 --- a/packages/ts/package-lock.json +++ b/packages/ts/package-lock.json @@ -1,19 +1,19 @@ { "name": "@reallyme/codec", - "version": "0.4.5", + "version": "0.4.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@reallyme/codec", - "version": "0.4.5", + "version": "0.4.6", "license": "MIT OR Apache-2.0", "dependencies": { "@bufbuild/protobuf": "2.17.0" }, "devDependencies": { "@bufbuild/protoc-gen-es": "2.17.0", - "fast-check": "4.10.2", + "fast-check": "4.11.0", "typescript": "7.0.2" }, "engines": { @@ -449,9 +449,9 @@ } }, "node_modules/fast-check": { - "version": "4.10.2", - "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.10.2.tgz", - "integrity": "sha512-iK2f+YrcmoeGqk6fA0ea2bptcu/itMIm4NfEozq6N25+aG6h7s5HZbB/k1aV7b5w5sFLMCbbtRUsTVR+BgC3xw==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.11.0.tgz", + "integrity": "sha512-V4Uc238rhQOdQlc+Gz7JG6SGBtrWnWL8d/6RyiBeCMcNKMhF6DZ0KkAVHJSyNV5r4lA0PmIpZ6iRpTVoz4qjoA==", "dev": true, "funding": [ { diff --git a/packages/ts/package.json b/packages/ts/package.json index 4f3b9ff7..9544e7cf 100644 --- a/packages/ts/package.json +++ b/packages/ts/package.json @@ -1,6 +1,6 @@ { "name": "@reallyme/codec", - "version": "0.4.5", + "version": "0.4.6", "description": "TypeScript facade for the ReallyMe codec WASM package.", "license": "MIT OR Apache-2.0", "sideEffects": false, @@ -44,9 +44,9 @@ "@bufbuild/protobuf": "2.17.0" }, "devDependencies": { - "fast-check": "4.10.2", - "typescript": "7.0.2", - "@bufbuild/protoc-gen-es": "2.17.0" + "@bufbuild/protoc-gen-es": "2.17.0", + "fast-check": "4.11.0", + "typescript": "7.0.2" }, "engines": { "node": ">=20.19.0" diff --git a/probes/der-feature-unification/Cargo.lock b/probes/der-feature-unification/Cargo.lock index 7f552791..de2638e4 100644 --- a/probes/der-feature-unification/Cargo.lock +++ b/probes/der-feature-unification/Cargo.lock @@ -38,9 +38,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" dependencies = [ "foldhash", "serde", @@ -104,7 +104,7 @@ dependencies = [ [[package]] name = "reallyme-codec" -version = "0.4.5" +version = "0.4.6" dependencies = [ "der", "reallyme-codec-proto", @@ -113,7 +113,7 @@ dependencies = [ [[package]] name = "reallyme-codec-proto" -version = "0.4.5" +version = "0.4.6" dependencies = [ "base64", "reallyme-buffa", @@ -125,7 +125,7 @@ dependencies = [ [[package]] name = "reallyme-der-feature-unification-probe" -version = "0.4.5" +version = "0.4.6" dependencies = [ "der", "reallyme-codec", diff --git a/probes/der-feature-unification/Cargo.toml b/probes/der-feature-unification/Cargo.toml index 77e74e5e..6aa01a72 100644 --- a/probes/der-feature-unification/Cargo.toml +++ b/probes/der-feature-unification/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-der-feature-unification-probe" -version = "0.4.5" +version = "0.4.6" edition = "2021" publish = false license = "MIT OR Apache-2.0" diff --git a/probes/jcs-feature-unification/Cargo.lock b/probes/jcs-feature-unification/Cargo.lock index e3ff2982..0bf9474b 100644 --- a/probes/jcs-feature-unification/Cargo.lock +++ b/probes/jcs-feature-unification/Cargo.lock @@ -16,9 +16,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" [[package]] name = "indexmap" @@ -62,7 +62,7 @@ dependencies = [ [[package]] name = "reallyme-codec-jcs" -version = "0.4.5" +version = "0.4.6" dependencies = [ "itoa", "ryu-js", @@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "reallyme-jcs-feature-unification-probe" -version = "0.4.5" +version = "0.4.6" dependencies = [ "reallyme-codec-jcs", "serde_json", diff --git a/probes/jcs-feature-unification/Cargo.toml b/probes/jcs-feature-unification/Cargo.toml index ac154c39..436ed5cc 100644 --- a/probes/jcs-feature-unification/Cargo.toml +++ b/probes/jcs-feature-unification/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "reallyme-jcs-feature-unification-probe" -version = "0.4.5" +version = "0.4.6" edition = "2021" publish = false diff --git a/scripts/check_local_proto_tools.mjs b/scripts/check_local_proto_tools.mjs index d08bc2b3..37745a45 100755 --- a/scripts/check_local_proto_tools.mjs +++ b/scripts/check_local_proto_tools.mjs @@ -16,7 +16,7 @@ const config = readFileSync(new URL("../buf.gen.yaml", import.meta.url), "utf8") if (/^\s*-?\s*remote\s*:/mu.test(config)) fail(); for (const [command, arguments_, expected] of [ ["protoc", ["--version"], "libprotoc 36.2"], - ["protoc-gen-swift", ["--version"], "protoc-gen-swift 1.39.0"], + ["protoc-gen-swift", ["--version"], "protoc-gen-swift 1.41.0"], [process.execPath, ["packages/ts/node_modules/@bufbuild/protoc-gen-es/bin/protoc-gen-es", "--version"], "protoc-gen-es v2.17.0"], ]) { const result = spawnSync(command, arguments_, { cwd: root, encoding: "utf8", timeout: 30_000 }); diff --git a/scripts/check_local_proto_tools.test.mjs b/scripts/check_local_proto_tools.test.mjs index 5a2064f4..cecebea0 100644 --- a/scripts/check_local_proto_tools.test.mjs +++ b/scripts/check_local_proto_tools.test.mjs @@ -11,7 +11,7 @@ import { fileURLToPath } from "node:url"; import test from "node:test"; const repository = fileURLToPath(new URL("../", import.meta.url)); -function fixture(t, { remote = false, protoc = "libprotoc 36.2", swift = "protoc-gen-swift 1.39.0", es = "protoc-gen-es v2.17.0" } = {}) { +function fixture(t, { remote = false, protoc = "libprotoc 36.2", swift = "protoc-gen-swift 1.41.0", es = "protoc-gen-es v2.17.0" } = {}) { const root = mkdtempSync(join(tmpdir(), "local protocol # ")); t.after(() => rmSync(root, { recursive: true, force: true })); mkdirSync(join(root, "scripts")); @@ -37,7 +37,7 @@ test("local generation accepts exactly pinned tools in paths with spaces", (t) = for (const [name, options] of [ ["remote plugin", { remote: true }], ["wrong protoc", { protoc: "libprotoc 37.0" }], - ["wrong Swift plugin", { swift: "protoc-gen-swift 1.41.0" }], + ["wrong Swift plugin", { swift: "protoc-gen-swift 1.39.0" }], ["wrong TypeScript plugin", { es: "protoc-gen-es v2.18.0" }], ]) { test(`local generation rejects ${name}`, (t) => { diff --git a/scripts/check_release_readiness.mjs b/scripts/check_release_readiness.mjs index a28a8d9f..3bc09dc2 100644 --- a/scripts/check_release_readiness.mjs +++ b/scripts/check_release_readiness.mjs @@ -47,11 +47,11 @@ if (pinCheck.error !== undefined || pinCheck.status !== 0) { const POLICY_MODULE_SHA256 = new Map([ ["packages/ts/scripts/lint-typescript.mjs", "ac3fbad064d2655773cc5c8476eda63e5e1cff0e53cceb6d9cf0faca923df89d"], ["scripts/check_swift_source_style.mjs", "24a53cb703ea5763ace64a7c6e43a96ec721235cfe6efec6b0bec134b43d0455"], - ["scripts/release-readiness/sdk-source-policy.mjs", "899c4afff1ce5729ea7fc016d876ac630a62db53edc536ed79a4022c251711f9"], + ["scripts/release-readiness/sdk-source-policy.mjs", "bb1bfa3f8d05528f0e3589548600ae164e67066eb15d0dca92319e59f52b6def"], ["scripts/generate_codec_sdk_contract.mjs", "1512ecb968019c0516d326540947981edafd10a328782fbff483586e0300ee12"], ["scripts/codec_proto_schema.mjs", "4ee81a8a3c896d70a871bfb4a0724c007d709891a88580c3eed777bb80ddcbc9"], ["scripts/release-readiness/native-proto-policy.mjs", "cd434704f16db0de4e2a80db1a7fbfa1a6e86e7b04df9669da9b53cd18c4cdd9"], - ["scripts/check_local_proto_tools.mjs", "9e2168572f62d179cb1004a201a02d68c5ed8ac796c42486c539cd4c28e91084"], + ["scripts/check_local_proto_tools.mjs", "048b2bbb41eb3417a416b59534a7d1d6ae22fbb322fbe8358a0afc3ff105a3e5"], ["scripts/generate_codec_proto.mjs", "07979a127107e964eb5c1cf1727e1d7f117fe17dd15e97afd101d683d03cf11b"], ["scripts/generate_codec_proto_support.mjs", "6ec4f0c7727003fd2d36e537a51f27a0f20bf5cbdf194de912857d94c0ba462a"], ["scripts/harden_codec_sdk_proto.mjs", "4bf1c51dcb1f1a29f0d31d9d7dc4c8c01fd61208ead65cc26a997858c60d3255"], @@ -376,8 +376,8 @@ for (const workflow of [".github/workflows/fuzz.yml", ".github/workflows/fuzz-sc }); } -const codecPackageVersion = "0.4.5"; -const codecProtoPackageVersion = "0.4.5"; +const codecPackageVersion = "0.4.6"; +const codecProtoPackageVersion = "0.4.6"; assertContains("Package.swift", `let ffiArtifactVersion = "${codecPackageVersion}"`); // The probes are separate Cargo workspaces. Root workspace metadata cannot // detect a release bump that leaves their own lockfile package entries stale. @@ -1751,7 +1751,7 @@ assertContains("buf.gen.yaml", "protoc_builtin: java"); assertContains("buf.gen.yaml", "protoc_builtin: kotlin"); assertNotContains("buf.gen.yaml", "remote:"); assertContains("scripts/check_local_proto_tools.mjs", "libprotoc 36.2"); -assertContains("scripts/check_local_proto_tools.mjs", "protoc-gen-swift 1.39.0"); +assertContains("scripts/check_local_proto_tools.mjs", "protoc-gen-swift 1.41.0"); assertContains("crates/proto/src/generated/buffa/mod.rs", "pub mod codec"); assertContains("crates/proto/src/error.rs", "pub struct CodecWireError"); assertContains("crates/proto/src/error.rs", "pub fn try_new"); @@ -1849,7 +1849,7 @@ if (tsCodecPackage.private === true) { } assertContains("packages/ts/README.md", "@reallyme/codec/wasm/reallyme_codec_wasm.js"); assertContains("packages/ts/package.json", '"@bufbuild/protobuf": "2.17.0"'); -assertContains("packages/ts/package.json", '"fast-check": "4.10.2"'); +assertContains("packages/ts/package.json", '"fast-check": "4.11.0"'); assertContains("packages/ts/package.json", '"typescript": "7.0.2"'); assertContains("packages/ts/package.json", '"NOTICE"'); readText("packages/ts/NOTICE"); @@ -1867,8 +1867,14 @@ assertContains("packages/kotlin/build.gradle.kts", 'artifactId = "codec"'); assertContains("packages/kotlin/build.gradle.kts", "Java, Kotlin, JVM, and Android"); assertContains("packages/kotlin/build.gradle.kts", "com.google.protobuf:protobuf-javalite:4.36.2"); assertContains("packages/kotlin/build.gradle.kts", "com.google.protobuf:protobuf-kotlin-lite:4.36.2"); -assertContains("packages/kotlin/build.gradle.kts", 'val bouncyCastleSecurityVersion = "1.87"'); -assertContains("packages/kotlin/build.gradle.kts", 'if (name == kotlinBouncyCastleConfiguration)'); +for (const settings of ["packages/kotlin/settings.gradle.kts", "packages/kotlin-android/settings.gradle.kts"]) { + assertContains(settings, 'apply(from = file("../dependency-security.gradle.kts"))'); +} +assertContains("packages/dependency-security.gradle.kts", "gradle.beforeProject"); +assertContains("packages/dependency-security.gradle.kts", "buildscript.configurations.configureEach"); +assertContains("packages/dependency-security.gradle.kts", "resolutionStrategy.activateDependencyLocking()"); +assertContains("packages/dependency-security.gradle.kts", 'requested.group == "org.bouncycastle"'); +assertContains("packages/dependency-security.gradle.kts", '"1.87"'); for (const artifact of ["bcpg", "bcpkix", "bcprov", "bcutil"]) { assertContains( "packages/kotlin/gradle.lockfile", @@ -1898,11 +1904,11 @@ assertContains("packages/kotlin/build.gradle.kts", "dependencyLocking {"); assertContains("packages/kotlin/build.gradle.kts", "lockAllConfigurations()"); assertContains( "packages/kotlin/gradle/wrapper/gradle-wrapper.properties", - "distributionSha256Sum=d8a18a7a841dd5df825d35a685fad6f2d7f12ac0c280e57b67c27b4a520ba228", + "distributionSha256Sum=971fcd7150ca4ba04852c0b2ca0d2d0ab9468e14b03473eab19528809914c76b", ); assertContains( "packages/kotlin/gradle/wrapper/gradle-wrapper.properties", - "distributionUrl=https\\://services.gradle.org/distributions/gradle-9.9.1-bin.zip", + "distributionUrl=https\\://services.gradle.org/distributions/gradle-9.9.2-bin.zip", ); assertContains( "packages/kotlin/gradle.properties", @@ -2110,9 +2116,17 @@ assertContains(".github/workflows/dependency-security.yml", "python3 scripts/gra assertContains(".github/workflows/dependency-security.yml", "packages/kotlin/runtime/gradle.lockfile"); assertContains(".github/workflows/dependency-security.yml", "packages/kotlin-android/runtime/gradle.lockfile"); assertContains(".github/workflows/dependency-security.yml", "name: Gate published runtime dependencies"); -assertContains(".github/workflows/dependency-security.yml", "name: Report Gradle build tooling advisories"); +assertContains(".github/workflows/dependency-security.yml", "name: Gate Gradle build tooling advisories"); assertContains(".github/workflows/dependency-security.yml", "fail-on-vuln: true"); -assertContains(".github/workflows/dependency-security.yml", "fail-on-vuln: false"); +assertNotContains(".github/workflows/dependency-security.yml", "fail-on-vuln: false"); +for (const lockfile of [ + "packages/kotlin/buildscript-gradle.lockfile", + "packages/kotlin-android/buildscript-gradle.lockfile", + "packages/kotlin-android/consumer-r8-runtime/buildscript-gradle.lockfile", +]) { + readText(lockfile); + assertContains(".github/workflows/dependency-security.yml", `--lockfile=./${lockfile}`); +} assertNotContains(".github/workflows/dependency-security.yml", "python3 -m unittest"); assertContains(".github/workflows/codeql.yml", "queries: security-and-quality"); assertContains(".github/workflows/codeql.yml", "- language: java-kotlin"); @@ -2192,7 +2206,7 @@ assertContains(".github/workflows/kotlin-android-package-release.yml", "Sign and assertNotContains(".github/workflows/kotlin-android-package-release.yml", "bundleReleaseAar"); assertContains(".github/workflows/kotlin-android-package-preflight.yml", "requireFullNativeResources=true"); assertContains("packages/kotlin/settings.gradle.kts", 'rootProject.name = "reallyme-codec"'); -assertContains("packages/kotlin/README.md", "me.really:codec:0.4.5"); +assertContains("packages/kotlin/README.md", "me.really:codec:0.4.6"); assertContains("packages/kotlin/README.md", "JNI libraries as platform resources"); assertContains( "packages/kotlin/src/main/kotlin/me/really/codec/ReallyMeCodecRustNativeProvider.kt", @@ -2844,8 +2858,8 @@ if (!androidCodecBuild.includes(`version = "${codecPackageVersion}"`)) { assertContains("packages/kotlin-android/settings.gradle.kts", 'rootProject.name = "reallyme-codec-android"'); assertContains("packages/kotlin-android/settings.gradle.kts", 'include(":consumer-r8-runtime")'); assertContains("packages/kotlin-android/build.gradle.kts", 'id("com.android.library")'); -assertContains("packages/kotlin-android/build.gradle.kts", 'id("com.android.library") version "9.5.1"'); -assertContains("packages/kotlin-android/build.gradle.kts", 'id("com.android.application") version "9.5.1" apply false'); +assertContains("packages/kotlin-android/build.gradle.kts", 'id("com.android.library") version "9.5.2"'); +assertContains("packages/kotlin-android/build.gradle.kts", 'id("com.android.application") version "9.5.2" apply false'); assertContains("packages/kotlin-android/build.gradle.kts", "compileSdk = 37"); assertContains("packages/kotlin-android/consumer-r8-runtime/build.gradle.kts", "compileSdk = 37"); assertContains("packages/kotlin-android/consumer-r8-runtime/build.gradle.kts", "targetSdk = 37"); @@ -2882,11 +2896,11 @@ assertContains( ); assertContains( "packages/kotlin-android/gradle/verification-metadata.xml", - '', + '', ); assertContains( "packages/kotlin-android/gradle/verification-metadata.xml", - 'artifact name="aapt2-9.5.1-16666295-linux.jar"', + 'artifact name="aapt2-9.5.2-16666295-linux.jar"', ); assertContains( "packages/kotlin-android/gradle/verification-metadata.xml", @@ -2894,11 +2908,11 @@ assertContains( ); assertContains( "packages/kotlin-android/gradle/verification-metadata.xml", - 'artifact name="bc-jdk18on-bom-1.80.2.module"', + 'artifact name="bcpkix-jdk18on-1.87.jar"', ); assertContains( "packages/kotlin-android/gradle/verification-metadata.xml", - "dd652f7a3141dd8ad81406ae5efc9ebeb47c99c0ab136931d1cd087bccd80474", + "a44be2660d72ed88673372b8cc2d53a25a5aaf27122fb803ed93f07147536aa1", ); assertContains("packages/kotlin-android/build.gradle.kts", "fun nonBlank(value: String?): String?"); assertContains("packages/kotlin-android/build.gradle.kts", "verifyRemoteMavenPublishingConfigured"); @@ -2947,7 +2961,7 @@ assertContains("scripts/test_android_consumer_r8_runtime.sh", "$SDKMANAGER\" \"e assertContains("scripts/test_android_consumer_r8_runtime.sh", "Android AVD was not available after creation"); assertContains("scripts/test_android_consumer_r8_runtime.sh", "$AVDMANAGER\" create avd --force"); assertContains("scripts/test_android_consumer_r8_runtime.sh", "Android consumer R8 runtime gate passed"); -assertContains("packages/kotlin-android/README.md", "me.really:codec-android:0.4.5"); +assertContains("packages/kotlin-android/README.md", "me.really:codec-android:0.4.6"); assertContains( "packages/kotlin-android/gradle.properties", "org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=768m -Dfile.encoding=UTF-8", @@ -3031,7 +3045,7 @@ assertContains(".github/workflows/release-readiness.yml", "Test TypeScript codec assertContains(".github/workflows/npm-package-preflight.yml", "Test TypeScript codec package in browser"); assertContains("README.md", "https://www.npmjs.com/package/@reallyme/codec"); -assertContains("README.md", "me.really:codec:0.4.5"); +assertContains("README.md", "me.really:codec:0.4.6"); assertContains("README.md", "reallyme-codec-proto"); assertContains("README.md", "`me.really:codec-android` AAR"); assertContains("CONTRACT.md", "crates/proto/proto/reallyme/codec/v1/codec.proto"); diff --git a/scripts/gradle_runtime_lockfiles.py b/scripts/gradle_runtime_lockfiles.py index 9a33e884..e8f82696 100644 --- a/scripts/gradle_runtime_lockfiles.py +++ b/scripts/gradle_runtime_lockfiles.py @@ -6,8 +6,8 @@ """Derive published runtime dependency records from Gradle's full locks. Gradle also locks Android lint, compiler, and test tooling. Those artifacts are -not shipped in either SDK, so the release vulnerability gate scans the runtime -classpaths derived here while the full locks remain pinned for builds. +not shipped in either SDK. Separate advisory gates scan the runtime classpaths +derived here and the full build-tool locks. """ import argparse diff --git a/scripts/install_local_proto_tools.sh b/scripts/install_local_proto_tools.sh index 45684c47..31e1ed66 100755 --- a/scripts/install_local_proto_tools.sh +++ b/scripts/install_local_proto_tools.sh @@ -8,7 +8,7 @@ set -euo pipefail cd "$(dirname "$0")/.." if [[ "$(uname -s)" != Darwin ]]; then - printf '%s\n' 'Install protoc 36.2 and protoc-gen-swift 1.39.0 locally on this platform.' >&2 + printf '%s\n' 'Install protoc 36.2 and protoc-gen-swift 1.41.0 locally on this platform.' >&2 exit 1 fi @@ -22,9 +22,9 @@ if [[ ! -x "$tools_root/bin/protoc" ]] || [[ "$("$tools_root/bin/protoc" --versi printf '%s %s\n' '83d0dc80672f53486f54299bca6177159f9cad1fd54d4d3143eeea53c4423e1b' "$archive" | shasum -a 256 --check unzip -q -o "$archive" -d "$tools_root" fi -if [[ ! -x "$tools_root/bin/protoc-gen-swift" ]] || [[ "$("$tools_root/bin/protoc-gen-swift" --version)" != 'protoc-gen-swift 1.39.0' ]]; then +if [[ ! -x "$tools_root/bin/protoc-gen-swift" ]] || [[ "$("$tools_root/bin/protoc-gen-swift" --version)" != 'protoc-gen-swift 1.41.0' ]]; then swift_source="$tools_root/swift-protobuf" - swift_revision=3d537cb81aef272a03cb3be815439e9bf0eb3bd3 + swift_revision=fed2f76413026cb0ae90999a8c9116949dfe6aa6 git init --quiet "$swift_source" git -C "$swift_source" fetch --depth 1 https://github.com/apple/swift-protobuf.git "$swift_revision" test "$(git -C "$swift_source" rev-parse FETCH_HEAD)" = "$swift_revision" diff --git a/scripts/promote_maven_publications.test.mjs b/scripts/promote_maven_publications.test.mjs index 9da9f3c4..e524518d 100644 --- a/scripts/promote_maven_publications.test.mjs +++ b/scripts/promote_maven_publications.test.mjs @@ -27,8 +27,8 @@ set -euo pipefail [[ -z "\${CENTRAL_PORTAL_USERNAME+x}" && -z "\${CENTRAL_PORTAL_PASSWORD+x}" && -z "\${MAVEN_SIGNING_KEY+x}" && -z "\${MAVEN_SIGNING_PASSWORD+x}" ]] || exit 91 case "$1" in */stage_maven_publications.mjs) - mkdir -p "$5/me/really/codec/0.4.5" - printf 'fixture' > "$5/me/really/codec/0.4.5/codec-0.4.5.pom" + mkdir -p "$5/me/really/codec/0.4.6" + printf 'fixture' > "$5/me/really/codec/0.4.6/codec-0.4.6.pom" printf 'stage\\n' >> "$TEST_EVENTS" ;; */run_pinned_release_readiness.mjs) printf 'authenticate\\n' >> "$TEST_EVENTS" ;; */repository-privacy.mjs) @@ -60,7 +60,7 @@ case " $* " in esac `, { mode: 0o700 }); writeFileSync(join(bin, "gpgconf"), "#!/bin/bash\nexit 0\n", { mode: 0o700 }); - const result = spawnSync("bash", ["-x", join(scripts, "promote.sh"), directory, "0.4.5", "a".repeat(40)], { + const result = spawnSync("bash", ["-x", join(scripts, "promote.sh"), directory, "0.4.6", "a".repeat(40)], { encoding: "utf8", timeout: 10_000, env: { ...process.env, PATH: `${bin}:${process.env.PATH}`, diff --git a/scripts/publish_crates_in_order.mjs b/scripts/publish_crates_in_order.mjs index a2bcdc65..cdea7dd9 100644 --- a/scripts/publish_crates_in_order.mjs +++ b/scripts/publish_crates_in_order.mjs @@ -284,7 +284,7 @@ function packageChecksum(pkg) { async function publishedChecksum(pkg) { const response = await fetch( `https://crates.io/api/v1/crates/${encodeURIComponent(pkg.name)}/${encodeURIComponent(pkg.version)}`, - { headers: { "User-Agent": "reallyme-codec-release/0.4.5" }, signal: AbortSignal.timeout(20000) }, + { headers: { "User-Agent": "reallyme-codec-release/0.4.6" }, signal: AbortSignal.timeout(20000) }, ); if (response.status === 404) { return null; diff --git a/scripts/release-readiness/sdk-source-policy.mjs b/scripts/release-readiness/sdk-source-policy.mjs index de816103..d06bc2f4 100644 --- a/scripts/release-readiness/sdk-source-policy.mjs +++ b/scripts/release-readiness/sdk-source-policy.mjs @@ -59,7 +59,7 @@ export function assertSdkSourcePolicies(context) { generatedPrefixes: ["gen/kotlin", "packages/kotlin/src/main/kotlin/me/really/codec/generated"], configuration: { files: [{ path: "packages/kotlin/build.gradle.kts", - required: ["explicitApi()", "allWarningsAsErrors.set(true)", 'version.set("1.5.0")'], + required: ["explicitApi()", "allWarningsAsErrors.set(true)", 'version.set("1.8.0")'], }] }, verification: [ { roles: ["format", "static-analysis", "compile", "test"], command: "./gradlew", diff --git a/scripts/run_pinned_release_readiness.mjs b/scripts/run_pinned_release_readiness.mjs index 1487b157..7865fbfe 100644 --- a/scripts/run_pinned_release_readiness.mjs +++ b/scripts/run_pinned_release_readiness.mjs @@ -16,7 +16,7 @@ const RELEASE_READINESS_COMMIT = "16aab5287de498e858ff3b85d9e66d7c9f7ebb74"; const RELEASE_READINESS_CORE_SHA256 = "56ae3823215f5bca908d2fce3c9304d4ea6bab0334038f37ebe33023dadb8594"; const LOCAL_CHECKER_SHA256 = - "e41ab3a680c1df283d572ec8fced7d1071550b5afc507d20103c6a6b96429b66"; + "3fd4ad704762dde957c65115baa27f740e4a69b721f9a29834891fb130cb48a6"; const RELEASE_READINESS_CORE_URL = `https://raw.githubusercontent.com/reallyme/release-readiness/${RELEASE_READINESS_COMMIT}/core.mjs`; const RELEASE_READINESS_RUNNER_SHA256 = diff --git a/scripts/verify_gradle_checksum_provenance.py b/scripts/verify_gradle_checksum_provenance.py index d98ae838..2afc6399 100644 --- a/scripts/verify_gradle_checksum_provenance.py +++ b/scripts/verify_gradle_checksum_provenance.py @@ -46,6 +46,10 @@ PUBLISHED_ARTIFACT_NAMES = { ("com.github.ajalt.clikt", "clikt-jvm", "5.0.2", "clikt-mordant-jvm-sources.jar"): "clikt-jvm-5.0.2-sources.jar", + ("com.github.ajalt.clikt", "clikt-jvm", "5.0.3", "clikt-mordant-jvm-sources.jar"): + "clikt-jvm-5.0.3-sources.jar", + ("com.github.ajalt.clikt", "clikt-jvm", "5.2.1", "clikt-mordant-jvm-5.2.1-sources.jar"): + "clikt-jvm-5.2.1-sources.jar", } diff --git a/scripts/verify_gradle_checksum_provenance_test.py b/scripts/verify_gradle_checksum_provenance_test.py index 05ccb85e..e4aba238 100644 --- a/scripts/verify_gradle_checksum_provenance_test.py +++ b/scripts/verify_gradle_checksum_provenance_test.py @@ -49,6 +49,23 @@ def test_sha256_sidecar_matches_pinned_digest(self): status, _, _ = provenance.verify(item) self.assertEqual(status, "match-sha256") + def test_variant_source_names_follow_publisher_urls(self): + digest = "a" * 64 + for version, variant in ( + ("5.0.3", "clikt-mordant-jvm-sources.jar"), + ("5.2.1", "clikt-mordant-jvm-5.2.1-sources.jar"), + ): + with self.subTest(version=version): + item = (("com.github.ajalt.clikt", "clikt-jvm", version, variant), digest) + response = subprocess.CompletedProcess((), 0, digest, "") + with patch.object(provenance.subprocess, "run", return_value=response) as fetch: + status, source, _ = provenance.verify(item) + self.assertEqual(status, "match-sha256") + self.assertEqual(source, provenance.REPOSITORIES[0]) + self.assertTrue(fetch.call_args.args[0][-1].endswith( + f"/clikt-jvm/{version}/clikt-jvm-{version}-sources.jar.sha256" + )) + def test_preferred_repository_mismatch_cannot_be_masked_by_mirror(self): item = (("example.org", "artifact", "1.0", "artifact-1.0.jar"), "0" * 64) responses = [ From 4224aec62c1fea8da6d853680e04d2da73e1bea2 Mon Sep 17 00:00:00 2001 From: vanderbr <11340250+vanderbr@users.noreply.github.com> Date: Sun, 22 Nov 2026 14:57:44 +0000 Subject: [PATCH 2/3] Update dependency verification --- packages/kotlin-android/gradle/verification-metadata.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/kotlin-android/gradle/verification-metadata.xml b/packages/kotlin-android/gradle/verification-metadata.xml index ee7813b7..2f79b7d0 100644 --- a/packages/kotlin-android/gradle/verification-metadata.xml +++ b/packages/kotlin-android/gradle/verification-metadata.xml @@ -2697,6 +2697,11 @@ + + + + + @@ -4930,6 +4935,9 @@ + + + From 23b79677893a0341dd20465fd4e8f5b0cecb26f3 Mon Sep 17 00:00:00 2001 From: vanderbr <11340250+vanderbr@users.noreply.github.com> Date: Sun, 22 Nov 2026 15:06:50 +0000 Subject: [PATCH 3/3] Update Android build staging --- scripts/prepare-android-runtime.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/prepare-android-runtime.sh b/scripts/prepare-android-runtime.sh index e30a4d8c..96dd49cb 100755 --- a/scripts/prepare-android-runtime.sh +++ b/scripts/prepare-android-runtime.sh @@ -24,7 +24,8 @@ test "$source_sha" = "${GITHUB_SHA:?candidate SHA is required}" node "$REPO_ROOT/.release-readiness/scripts/android-runtime.mjs" verify-publication "$MAVEN_REPOSITORY" "$source_sha" consumer_build="$(mktemp -d)" trap 'rm -rf -- "$consumer_build"' EXIT -git -C "$REPO_ROOT" archive --format=tar "$source_sha" -- packages/kotlin-android | +git -C "$REPO_ROOT" archive --format=tar "$source_sha" -- \ + packages/kotlin-android packages/dependency-security.gradle.kts | tar -xf - -C "$consumer_build" consumer_project="$consumer_build/packages/kotlin-android" node "$REPO_ROOT/scripts/pin_android_consumer_publication.mjs" \