Skip to content

Update SDK to 3.0.0-8685-752729a9 - #7355

Merged
david-livefront merged 4 commits into
mainfrom
sdlc/sdk-update
Sep 4, 2026
Merged

david-livefront merged 4 commits into
mainfrom
sdlc/sdk-update

Conversation

@bw-ghapp

@bw-ghapp bw-ghapp Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Updates the SDK version from 3.0.0-8671-5d8ae614 to com.bitwarden:sdk-android 3.0.0-8685-752729a9

What's Changed

Raw changelog
- [PM-40985] Wire managed settings into bitwarden-core and bitwarden-pm (#1405)
- [PM-40985] Fix broken integration tests (#1449)
- feat(crypto): expose get_key_id_for_symmetric_key for uniffi (#1437)
- Pin tsify (#1448)

@bw-ghapp
bw-ghapp Bot requested review from a team and david-livefront as code owners September 4, 2026 08:40
@bw-ghapp bw-ghapp Bot added automated-pr PR created by workflow or other automation t:deps Change Type - Dependencies labels Sep 4, 2026
@github-actions github-actions Bot added app:authenticator Bitwarden Authenticator app context app:password-manager Bitwarden Password Manager app context labels Sep 4, 2026
@claude

claude Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @bw-ghapp[bot]'s task in 2m 57s —— View job


SDK bump evaluated

3.0.0-8671-5d8ae614 → 3.0.0-8685-752729a9 (branch HEAD; the PR description still names the intermediate 3.0.0-8683-ff11928d). 4 commits in range.

./gradlew app:compileStandardDebugKotlin authenticator:compileDebugKotlin → BUILD SUCCESSFUL at HEAD.

Compile-time breaks

One, already fixed on this branch by ceae62c (pushed before the 8683/8685 bumps).

bitwarden/sdk-internal#1405 (a09d9a86) added a required third parameter to the UniFFI Client constructor:

pub fn new(
    token_provider: Arc<dyn ClientManagedTokens>,
    settings: Option<ClientSettings>,
    managed_settings: Arc<ManagedSettingsBindingClient>,   // new, non-optional
) -> Self

Both Android call sites were updated to pass a fresh handle:

  • app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/SdkClientManagerImpl.kt:38
  • authenticator/src/main/kotlin/com/bitwarden/authenticator/data/platform/manager/SdkClientManagerImpl.kt:19

Those are the only Client( construction sites in the repo. No further action needed.

Runtime considerations

None that change behavior today, but two things worth recording:

1. The managed-settings profile is plumbing only — nothing in the SDK reads it yet. managed_profile is stored on InternalClient and surfaced through ManagedSettingsClientExt::managed_settings, but no feature crate consumes it for behavior. Passing an empty handle is inert, so there's no regression from leaving it unwired.

2. The explanatory comment on both call sites is inaccurate. It reads "There is no unified endpoint management source on Android" — but there is one: RestrictionManagerImpl (app/.../platform/manager/restriction/RestrictionManagerImpl.kt:20) already reads RestrictionsManager.applicationRestrictions and applies the baseEnvironmentUrl app restriction. That is precisely an Android UEM channel; the SDK's WASM sibling maps the same concept to environment.base. Two consequences for whoever picks up PM-40985 on Android:

  • The accurate statement is "the Android UEM source isn't wired into the SDK yet," not "there is no source." Left as-is here rather than reworded, since the wording came from a deliberate prior commit and the fix is cosmetic — flagging for the author's call.
  • The ManagedSettingsBindingClient() is constructed inline and its Kotlin reference is dropped immediately, so updateProfile is unreachable from Android. (The Rust-side cell survives — PasswordManagerClient clones the Arc — so this is safe, just not updatable.) Wiring this up later means holding the handle, and doing so per-user: SdkClientManagerImpl builds one Client per user ID, and each currently gets an independent, unshared cell.

Also verified as behaviorally neutral: #1405 replaced Client::new_with_token_handler with an inlined ClientBuilder chain inside PasswordManagerClient::new_with_client_tokens. The old path already applied ReqwestTracingMiddleware and the same settings handling, so the rewrite is equivalent — no change to network middleware.

Everything else in range — confirmed safe

Commit Assessment
sdk-internal#1437 ff11928d — expose get_key_id_for_symmetric_key for UniFFI Purely additive method on CryptoClient. No Android call site (getKeyIdForSymmetricKey appears nowhere in the repo).
sdk-internal#1449 a8f87fc3 — fix broken integration tests Tests, docs, and Swift/Kotlin example apps only. The single crates/bitwarden-uniffi/src/lib.rs hunk is a doc-comment update to the new 3-arg Client(...) call. No binding surface change.
sdk-internal#1448 752729a9 — pin tsify Cargo.toml/Cargo.lock/renovate + bitwarden-wasm-internal only. No Rust source, no UniFFI impact.
a09d9a86 remaining hunks Beyond the constructor break above: WASM client, bitwarden-managed-settings internals (from_profile, ManagedSettingsClientExt), READMEs, and Rust unit tests. The only new #[derive(uniffi::Object)] is ManagedSettingsBindingClient itself — new type, no existing consumer to break. No callback interfaces (with_foreign) added or modified anywhere in range.

Commit

No commit — nothing needed fixing. The one compile-time break was resolved earlier on this branch in ceae62c52 ("Pass managed settings handle to SDK Client constructor"); the two subsequent SDK bumps introduced no new breaks.
• branch sdlc/sdk-update

The SDK's Client constructor gained a required managedSettings parameter
in bitwarden/sdk-internal#1405. Android has no unified endpoint management
source, so both call sites pass a fresh ManagedSettingsBindingClient, which
has no active profile and therefore reports no setting as
administrator-forced. This matches current behavior.
@codecov

codecov Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.99%. Comparing base (7d1fdd8) to head (1d1466a).

Files with missing lines Patch % Lines
...rden/data/platform/manager/SdkClientManagerImpl.kt 0.00% 1 Missing ⚠️
...ator/data/platform/manager/SdkClientManagerImpl.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7355      +/-   ##
==========================================
- Coverage   86.21%   85.99%   -0.22%     
==========================================
  Files         901     1039     +138     
  Lines       66274    68903    +2629     
  Branches    10172    10246      +74     
==========================================
+ Hits        57135    59254    +2119     
- Misses       5561     6036     +475     
- Partials     3578     3613      +35     
Flag Coverage Δ
app-data 18.54% <0.00%> (+0.15%) ⬆️
app-ui-auth-tools 19.08% <0.00%> (+0.33%) ⬆️
app-ui-platform 16.84% <0.00%> (+0.54%) ⬆️
app-ui-vault 27.64% <0.00%> (+0.56%) ⬆️
authenticator 6.02% <0.00%> (+<0.01%) ⬆️
lib-core-network-bridge 4.03% <0.00%> (-0.01%) ⬇️
lib-data-ui 1.19% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bw-ghapp bw-ghapp Bot changed the title Update SDK to 3.0.0-8682-a8f87fc3 Update SDK to 3.0.0-8683-ff11928d Sep 4, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 3.0.0-8683-ff11928d Update SDK to 3.0.0-8685-752729a9 Sep 4, 2026
@david-livefront
david-livefront added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit b99ad92 Sep 4, 2026
28 checks passed
@david-livefront
david-livefront deleted the sdlc/sdk-update branch September 4, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:authenticator Bitwarden Authenticator app context app:password-manager Bitwarden Password Manager app context automated-pr PR created by workflow or other automation t:deps Change Type - Dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant