Skip to content

Update SDK to 4.0.0-9547-06f2c6f3 - #7459

Merged
david-livefront merged 37 commits into
mainfrom
sdlc/sdk-update
Oct 21, 2026
Merged

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

Conversation

@bw-ghapp

@bw-ghapp bw-ghapp Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Updates the SDK version from 4.0.0-9318-3b2c8fc3 to com.bitwarden:sdk-android 4.0.0-9547-06f2c6f3

Warning

Breaking changes detected :feelsgood:

What's Changed

Raw changelog
- fix(ipc): ignore RPC responses from a source other than the destination (#1599)
- [PM-44701] Persist last manual lock for shared unlock (#1595)
- [PM-44474] perf: Log per-field decryption spans at debug level (#1573)
- [PM-44474] perf: Build WASM with SIMD and bulk memory (#1570)
- [PM-44474] perf: Omit None fields from vault models sent to JS (#1596)
- [PM-42985] refactor: Adopt the wasm macros in the Platform crates (#1583)
- [deps] Platform (npm): Update @types/node to v24.19.1 (#1601)
- [deps] Platform (npm): Update lint-staged to v17.6.0 (#1477)
- Update API bindings to 8730608ccf14daaabb1e4117f374adaeabefc712 (#1604)
- [PM-42705] feat: Add organization state to the SDK (#1588)
- [PM-42985] refactor: Adopt the wasm macros in bitwarden-organization-domains (#1584)
- [PM-44303] Add emergency access integration tests (#1543)
- [PAM-373] feat: Add bitwarden-access-token and bitwarden-access-token-crypto crates (#1610)
- [PM-44474] perf: Build heavy crypto crates for speed (#1606)
- Update API bindings to 747d2e80546507cb25c39379e10a82bba04776d1 (#1611)
- [PM-44981] Tell whether a 1Password account signs in with a password or SSO (#1613)
- [PM-44942] fix: Stop logging secrets in identity token requests (#1612)
- [PM-42985] refactor: Adopt the wasm macros in the IPC crates (#1582)
- Update Identity bindings to 8730608ccf14daaabb1e4117f374adaeabefc712 (#1551)
- [PM-45050] Run wasm integration tests with vitest (#1617)
- Update API bindings to 37f932cf6552f95777de599921ed959615e1fec7 (#1619)
- [PM-45089] Report an email 1Password refuses as malformed (#1621)
- [deps] Tools: Update Rust crate keepass to >=0.13.7, <0.16 (#1602)
- [PM-42705] refactor: Add ProviderId newtype and split organization models into modules (#1608)
- [PM-39040] PAM: bring the rotation module to main (#1591)
- [PM-45164] perf: Build COSE and CBOR crates for speed (#1622)
- [PM-42819] Add SendReceiveClient for cross-instance Send receive (#1586)
- [PM-42985] refactor: Add the wasm wire traits (#1581)
- PAM-390: Declare has_enabled_access_rule on the SDK collection models (#1632)
- Fix Broken Cargo Build (#1637)
- [PM-42985] refactor: Adopt the wasm macros in the Vault crates (#1560)
- [PM-45165] Persist peer-applied lock before locking (#1623)
- [PM-45165] Relay changed peer state before applying it (#1624)
- [PM-42985] refactor: Adopt the wasm macros in the Tools crates (#1648)
- [PM-42985] refactor: Adopt the wasm macros in the Key Management crates (#1646)
- [PM-44932] Import 1Password accounts that sign in with SSO (#1607)
- [PM-44932] correct the curve25519-dalek dependency version (#1653)

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

claude Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @bw-ghapp[bot]'s task in 55m 21s โ€”โ€” View job


SDK bump evaluated

4.0.0-9318-3b2c8fc3 โ†’ 4.0.0-9472-c159ee88 โ€” 30 commits in 3b2c8fc3..c159ee88.

Note: the PR title and body still say 4.0.0-9470-c9ff1a0e; the branch has since been synchronized to 4.0.0-9472-c159ee88, which adds bitwarden/sdk-internal#1637. This evaluation covers the full range through c159ee88.

Compile-time breaks

Both found by ./gradlew app:compileStandardDebugKotlin authenticator:compileDebugKotlin, and both fixed.

1. Repositories gained a required organization field โ€” bitwarden/sdk-internal#1588 (229c5b9a)

com.bitwarden.sdk.Repositories is generated by create_client_managed_repositories!, which gained a ProfileOrganizationRepository entry. Call site: app/src/main/kotlin/com/x8bit/bitwarden/data/platform/manager/sdk/SdkRepositoryFactoryImpl.kt:39 (No value passed for parameter 'organization').

Fixed by passing organization = null, matching the folder, organizationSharedKey, policy and send entries already stubbed null there โ€” Android has no SDK-managed organization repository.

2. ProfileOrganization restructured from flat to nested โ€” bitwarden/sdk-internal#1588 (229c5b9a) and bitwarden/sdk-internal#1608 (1ae5d44f)

com.bitwarden.organizations.ProfileOrganization went from ~60 flat fields to 7 nested records: OrganizationDetails, OrganizationPlan, OrganizationMembership, CollectionManagementSettings, OrganizationProvider (nullable), SsoSettings, FamilySponsorship. Call site: SyncResponseJsonExtensions.kt:69 (No value passed for parameter 'details', plus 29 No parameter with name 'โ€ฆ' found errors).

Fixed by rewriting toSdkProfileOrganization() against the nested shape, carrying every prior source expression across โ€” including the moves and renames: identifier โ†’ sso.identifier, keyConnectorEnabled/keyConnectorUrl โ†’ sso.*, userIsManagedByOrganization โ†’ membership.userIsClaimedByOrganization, familySponsorship* โ†’ the FamilySponsorship record. provider is built from providerId/providerType/providerName when present, else null. The OrganizationId/UserId/OrganizationUserId/ProviderId newtypes all surface as Kotlin String, so no call-site type changes were needed. Test mirrors in ProfileOrganizationUtil.kt and SyncResponseJsonExtensionsTest.kt were updated to match.

Runtime considerations

OrganizationMembership.userId narrowed from optional to required. It was Option<Uuid> at 3b2c8fc3 and is now UserId (non-optional). Since SyncResponseJson.Profile.Organization.userId is String?, the mapper now returns null for an org with no userId, extending the null-guard it already applied to name. A placeholder like orEmpty() was rejected deliberately: uniffi lifts that String through Uuid::parse_str, so an empty value would throw at the FFI boundary rather than stub cleanly. This has no runtime effect today โ€” toSdkProfileOrganizations() has no production call site, only test coverage, pending the organization repository. Worth a second look from whoever wires that repository up, in case the intended semantics are "keep the org and let the SDK decide."

usePam and useInviteLinks are new OrganizationPlan fields with no sync-response source. Verified neither exists on SyncResponseJson.Profile.Organization. Both are stubbed false with a comment; extending the network model is out of scope for an SDK bump.

Collection/CollectionView gained hasEnabledAccessRule โ€” bitwarden/sdk-internal#1632 (c9ff1a0e). Declared uniffi(default = None), so toEncryptedSdkCollection() at app/.../data/vault/repository/util/VaultSdkCollectionExtensions.kt:14 compiles unchanged and the flag defaults to null. Deliberately left unwired โ€” the SDK PR says clients should only send it once a published SDK carries the field, and Android has no PAM surface. Noting it so it isn't mistaken for an oversight later.

Everything else in range โ€” confirmed safe

Commit

c9dc93eb6 โ€” Resolve compile breaks from the organization SDK model changes (4 files, +172/โˆ’101).

Verified green: app:compileStandardDebugKotlin + authenticator:compileDebugKotlin, the full app:testStandardDebugUnitTest suite, and detekt. ./gradlew lint was not run locally โ€” CI covers it.
ยท sdlc/sdk-update

@codecov

codecov Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codecov Report

โŒ Patch coverage is 93.75000% with 3 lines in your changes missing coverage. Please review.
โœ… Project coverage is 86.79%. Comparing base (9bdf4d2) to head (331f226).

Files with missing lines Patch % Lines
...auth/repository/util/SyncResponseJsonExtensions.kt 93.61% 0 Missing and 3 partials โš ๏ธ
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7459   +/-   ##
=======================================
  Coverage   86.79%   86.79%           
=======================================
  Files         894      894           
  Lines       65661    65674   +13     
  Branches     9384     9386    +2     
=======================================
+ Hits        56992    57004   +12     
  Misses       5189     5189           
- Partials     3480     3481    +1     
Flag Coverage ฮ”
app-data 18.67% <93.75%> (+0.01%) โฌ†๏ธ
app-ui-auth-tools 18.65% <0.00%> (-0.01%) โฌ‡๏ธ
app-ui-platform 16.49% <0.00%> (-0.01%) โฌ‡๏ธ
app-ui-vault 26.89% <0.00%> (-0.01%) โฌ‡๏ธ
authenticator 6.03% <0.00%> (-0.01%) โฌ‡๏ธ
lib-core-network-bridge 4.11% <0.00%> (-0.01%) โฌ‡๏ธ
lib-data-ui 1.25% <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 4.0.0-9336-0723ca9b Update SDK to 4.0.0-9337-f1b6380f Oct 9, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9337-f1b6380f Update SDK to 4.0.0-9339-5f088181 Oct 9, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9339-5f088181 Update SDK to 4.0.0-9341-7d5b1010 Oct 9, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9341-7d5b1010 Update SDK to 4.0.0-9364-4f510e44 Oct 12, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9364-4f510e44 Update SDK to 4.0.0-9366-a2b18b06 Oct 12, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9366-a2b18b06 Update SDK to 4.0.0-9369-9f80bb96 Oct 12, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9369-9f80bb96 Update SDK to 4.0.0-9370-d08db8fa Oct 12, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9370-d08db8fa Update SDK to 4.0.0-9376-229c5b9a Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9376-229c5b9a Update SDK to 4.0.0-9379-a249a7d8 Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9379-a249a7d8 Update SDK to 4.0.0-9385-c17009b1 Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9385-c17009b1 Update SDK to 4.0.0-9386-c12b276e Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9386-c12b276e Update SDK to 4.0.0-9400-eb9e208b Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9400-eb9e208b Update SDK to 4.0.0-9401-2f761f9e Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9401-2f761f9e Update SDK to 4.0.0-9405-a5cf71d9 Oct 13, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9405-a5cf71d9 Update SDK to 4.0.0-9407-1fc34e4c Oct 14, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9407-1fc34e4c Update SDK to 4.0.0-9408-ad85932d Oct 14, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9408-ad85932d Update SDK to 4.0.0-9409-f8b8f3b3 Oct 14, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9409-f8b8f3b3 Update SDK to 4.0.0-9421-f336d5a0 Oct 15, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9421-f336d5a0 Update SDK to 4.0.0-9424-69e256ab Oct 15, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9424-69e256ab Update SDK to 4.0.0-9429-c899f40c Oct 15, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9429-c899f40c Update SDK to 4.0.0-9432-3571232a Oct 15, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9432-3571232a Update SDK to 4.0.0-9434-1ae5d44f Oct 16, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9470-c9ff1a0e Update SDK to 4.0.0-9472-c159ee88 Oct 16, 2026
bw-ghapp Bot added 2 commits October 16, 2026 19:02
`Repositories` gained an `organization` field (bitwarden/sdk-internal#1588).
Android has no SDK-managed organization repository, so this is passed as
`null` like the other repositories the client does not manage.

`ProfileOrganization` was restructured from a flat record into nested
`details`/`plan`/`membership`/`collectionManagement`/`provider`/`sso`/
`familySponsorship` records (bitwarden/sdk-internal#1588 and
bitwarden/sdk-internal#1608). Every flat field in the sync response mapping
moves to its new home; `userIsManagedByOrganization` is now
`membership.userIsClaimedByOrganization`.

Two new plan fields, `usePam` and `useInviteLinks`, have no counterpart in
`SyncResponseJson.Profile.Organization` and are passed as `false`.
`OrganizationMembership.userId` is no longer optional, so organizations
without a user ID are now filtered out alongside those without a name.
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9472-c159ee88 Update SDK to 4.0.0-9491-243483d1 Oct 19, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9491-243483d1 Update SDK to 4.0.0-9517-25b6c8c3 Oct 20, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9517-25b6c8c3 Update SDK to 4.0.0-9518-0f590dcc Oct 20, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9518-0f590dcc Update SDK to 4.0.0-9519-dbfc4aaa Oct 20, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9519-dbfc4aaa Update SDK to 4.0.0-9542-4ea5e6f6 Oct 20, 2026
@bw-ghapp bw-ghapp Bot changed the title Update SDK to 4.0.0-9542-4ea5e6f6 Update SDK to 4.0.0-9547-06f2c6f3 Oct 20, 2026
@david-livefront
david-livefront added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 6d08ab5 Oct 21, 2026
29 checks passed
@david-livefront
david-livefront deleted the sdlc/sdk-update branch October 21, 2026 16:58
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.

2 participants