Skip to content

APPS-3623 Kotlin 2.2.21 and OkHttp 5.3.2#997

Open
XanderZhu wants to merge 2 commits into
developmentfrom
feature/APPS-3623
Open

APPS-3623 Kotlin 2.2.21 and OkHttp 5.3.2#997
XanderZhu wants to merge 2 commits into
developmentfrom
feature/APPS-3623

Conversation

@XanderZhu

@XanderZhu XanderZhu commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update Kotlin to 2.2.21, AGP to 8.10.1 and Gradle wrapper to 8.11.1
  • migrate Kotlin JVM target configuration to compilerOptions
  • update OkHttp from 4.9.0 to 5.3.2 as a potential mitigation for APPS-3623 network/transport failures

APPS-3623 context

  • Direct reproduction has not been achieved yet. The user log confirms the login flow, but does not contain a concrete network error: no HTTP code, endpoint, exception class, or stack trace.
  • Code investigation confirms that real network/transport failures can be shown to the user as “Невозможно установить соединение с сервером”: timeout, DNS/TLS/socket/connect errors and other non-HTTP failures are mapped to this message. Similar fallback behavior exists outside auth, so the same class of problem can affect courses/notifications.
  • The exact root cause for affected users cannot be confirmed with the available data. The most likely area is either real network/transport issues on device/network/route level or OkHttp edge cases.
  • Crashlytics contains similar production errors: DNS failures, TLS failures, connect timeouts, HTTP/2 timeout/interruption. There is also an auth-adjacent case with SocketTimeoutException after social_login.
  • OkHttp 5.x is relevant because newer versions include HTTP/2/DNS/connect behavior fixes and Happy Eyeballs for IPv4/IPv6 fallback. This can potentially reduce the issue rate, but cannot guarantee that all cases are fixed because such failures depend on device, network, route, edge/backend behavior and connection pool state.

Notes

  • OkHttp 5.4.0 requires compileSdk 36; current project stays on compileSdk 35, so 5.3.2 is the latest compatible version checked here.
  • Okio is allowed to move with OkHttp transitively.
  • User-facing error text is intentionally not changed in this PR.
  • Follow-up diagnostics are still needed to monitor the issue precisely: connection_problem_shown, network_request_failed, error_kind, path_group, protocol, duration_ms.

Verification

  • ./gradlew :app:compileDebugKotlin
  • ./gradlew :app:assembleDebug

@XanderZhu XanderZhu changed the title APPS-3623 Update Android toolchain and OkHttp APPS-3623 Kotlin 2.2.21, Android toolchain and OkHttp Jun 26, 2026
@XanderZhu XanderZhu changed the title APPS-3623 Kotlin 2.2.21, Android toolchain and OkHttp APPS-3623 Kotlin 2.2.21 and OkHttp 5.3.2 Jun 26, 2026
@XanderZhu XanderZhu force-pushed the feature/APPS-3623 branch from 182bbcd to 39b91b5 Compare June 26, 2026 10:33
@XanderZhu XanderZhu self-assigned this Jun 26, 2026
@XanderZhu XanderZhu requested a review from tikhokhod June 26, 2026 10:43
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.

1 participant