Skip to content

chore: Update Wire Apps JVM SDK to 0.4.0 #WPB-30289 - #174

Merged
alexandreferris merged 1 commit into
mainfrom
chore/update_to_jvm_sdk_0_4_0
Nov 23, 2026
Merged

alexandreferris merged 1 commit into
mainfrom
chore/update_to_jvm_sdk_0_4_0

Conversation

@alexandreferris

Copy link
Copy Markdown
Member

PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Application startup fails against staging with a TLS ProtocolVersion error, eventually surfacing as a failure to create WireAppSdk.

Causes (Optional)

The previous SDK uses Ktor’s CIO client, which supports TLS 1.2, while staging’s HTTP endpoint requires TLS 1.3. Automatic retries delay reporting the failure by approximately five minutes.

Solutions

Update the Wire Apps JVM SDK to 0.4.0, which uses OkHttp and supports TLS 1.3 connections.

Upgrade Wire Apps JVM SDK from 0.3.1 to 0.4.0 to use the
OkHttp transport and support TLS 1.3 backend connections.
@alexandreferris alexandreferris self-assigned this Nov 23, 2026
@alexandreferris
alexandreferris requested a review from a team as a code owner November 23, 2026 10:05
@claude

claude Bot commented Nov 23, 2026

Copy link
Copy Markdown

Review: bump Wire Apps JVM SDK to 0.4.0

Summary: This is a one-line version bump, and it's a good fix for the TLS 1.3 handshake failure on staging. The PR description explains the root cause clearly (Ktor CIO doesn't support TLS 1.3, and 0.4.0 moves to OkHttp). 👍

Things to verify before merging

  1. Possible API changes in a 0.x minor release. In 0.x versions, a minor bump can break the API. The app uses WireAppSdk, WireEventsHandlerSuspending, WireMessage, Conversation, ConversationMember and QualifiedId from com.wire.sdk. Please make sure CI compiles and runs ApplicationTest / GitHubCommandHandlerTest. The tests use mockk<WireAppSdk>() without relaxed in places, so a renamed or changed SDK method would fail there rather than at compile time. I couldn't run the Gradle build in my review environment, so I'm relying on CI for this.
  2. Changes to transitive dependencies. The SDK now brings in OkHttp and may also change which Ktor client version Gradle resolves. gradle/libs.versions.toml already pins ktor-server-metrics-micrometer to 3.4.0 because of an earlier binary-compatibility clash. It's worth running ./gradlew dependencies --configuration runtimeClasspath | grep -E 'ktor|okhttp|kotlinx-coroutines' to confirm the SDK doesn't pull mismatched io.ktor or coroutines versions next to Ktor 3.5.2.
  3. Shadow JAR. shadowJar uses duplicatesStrategy = INCLUDE plus mergeServiceFiles(). OkHttp/Okio include service files and multi-release classes. A quick smoke run of the built github-app.jar against staging would confirm the TLS 1.3 fix actually holds in the deployed artifact, not just in the IDE.

Smaller points

  • Retry delay: The description says retries hold back the error for about 5 minutes. That's unrelated to this PR, but it may be worth a follow-up to fail faster or log the TLS cause earlier during SDK initialisation, so the next problem like this is easier to diagnose.
  • Checklist: The JIRA reference box is unchecked. Please add a ticket if one exists.
  • Release notes: Linking the SDK 0.4.0 changelog in the description would help reviewers check for behaviour changes beyond the HTTP client swap.

Security: Moving to a client that supports TLS 1.3 is a security improvement. No secrets or config changes are involved.

Tests: There are no test changes, which is expected for a dependency bump. Coverage relies on the existing suite plus a manual check against staging (see point 3).

Verdict: LGTM once CI is green and the staging smoke test is done.

🤖 Generated with Claude Code

@alexandreferris alexandreferris changed the title chore: Update Wire Apps JVM SDK to 0.4.0 chore: Update Wire Apps JVM SDK to 0.4.0 #WPB-30289 Nov 23, 2026
@alexandreferris
alexandreferris merged commit 23eb24f into main Nov 23, 2026
5 checks passed
@alexandreferris
alexandreferris deleted the chore/update_to_jvm_sdk_0_4_0 branch November 23, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants