Skip to content

chore: bump core crypto to v9.2.1 - WPB-20920#4030

Merged
netbe merged 23 commits intorelease/cycle-4.16from
chore/bump-cc-v9.2.0
Feb 23, 2026
Merged

chore: bump core crypto to v9.2.1 - WPB-20920#4030
netbe merged 23 commits intorelease/cycle-4.16from
chore/bump-cc-v9.2.0

Conversation

@David-Henner
Copy link
Copy Markdown
Contributor

@David-Henner David-Henner commented Dec 18, 2025

TaskWPB-20920 [iOS] Update to CC 9.1.0

Issue

Bumping core crypto to version 9.1.2 9.2.1.

Core crypto now handles safe multi-process access, so SafeCoreCrypto becomes redundant, hence why we're removing it in this PR

Testing

Creating channels, sending messages, adding / removing users


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the core crypto dependency and removes the SafeCoreCrypto wrapper class, which is now redundant since core crypto v9.x handles safe multi-process access internally. The main changes include replacing SafeCoreCryptoProtocol with direct CoreCryptoProtocol usage, renaming the transaction method from perform to transaction, and updating error constructors to use named parameters.

Key changes:

  • Removed SafeCoreCrypto wrapper class and its tests
  • Updated all usages to directly use CoreCryptoProtocol instead of SafeCoreCryptoProtocol
  • Changed method calls from perform to transaction throughout the codebase
  • Updated CoreCrypto error constructors to use named parameters (e.g., errorCode:, mlsError:, msg:)

Reviewed changes

Copilot reviewed 50 out of 51 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
WireCoreCrypto/Package.swift Updated core crypto framework URLs and checksums to v9.1.2
wire-ios-data-model/Support/Sources/MockSafeCoreCrypto.swift Removed redundant SafeCoreCrypto mock class
wire-ios-data-model/Support/Sources/MockCoreCryptoProtocol.swift Added mockTransaction helper method and updated transaction method signature
wire-ios-data-model/Support/Sourcery/generated/AutoMockable.generated.swift Updated generated mocks to reflect CoreCryptoProtocol return type and removed proteusCryptoboxMigrate method
wire-ios-data-model/Source/Utilis/CoreCryptoContextProtocolExt.swift Removed proteusCryptoboxMigrate method and added documentation for new methods
wire-ios-data-model/Source/ManagedObjectContext/NSManagedObjectContext+CoreCrypto.swift Changed property type from SafeCoreCryptoProtocol to CoreCryptoProtocol
wire-ios-data-model/Source/Proteus/ProteusService.swift Updated to use CoreCryptoProtocol and transaction method instead of perform
wire-ios-data-model/Source/MLS/MLSService.swift Updated to use CoreCryptoProtocol and transaction method
wire-ios-data-model/Source/MLS/MLSEncryptionService.swift Updated to use CoreCryptoProtocol and transaction method
wire-ios-data-model/Source/MLS/MLSActionExecutor.swift Updated to use CoreCryptoProtocol, transaction method, and updated error constructor
wire-ios-data-model/Source/MLS/CreateMLSGroupUseCase.swift Updated to use CoreCryptoProtocol and transaction method
wire-ios-data-model/Source/E2EIdentity/E2EIVerificationStatusService.swift Updated to use CoreCryptoProtocol and transaction method
wire-ios-data-model/Source/E2EIdentity/E2EISetupService.swift Updated to use CoreCryptoProtocol and transaction method
wire-ios-data-model/Source/E2EIdentity/E2EIService.swift Updated to use CoreCryptoProtocol
wire-ios-data-model/Source/UseCases/IsUserE2EICertifiedUseCase.swift Updated to use transaction method
wire-ios-data-model/WireDataModel.xcodeproj/project.pbxproj Removed SafeCoreCrypto.swift and SafeCoreCryptoTests.swift from build targets
wire-ios-data-model/Tests/**/*.swift Updated all test files to use MockCoreCryptoProtocol with mockTransaction helper, removed MockSafeCoreCrypto usage, and updated error constructors to use named parameters
wire-ios-sync-engine/Source/UserSession/NSManagedObject+CryptoStack.swift Removed explicit tearDown call for coreCrypto
wire-ios-sync-engine/Tests/**/*.swift Updated test files to use MockCoreCryptoProtocol instead of MockSafeCoreCrypto
wire-ios-request-strategy/Sources/E2EIdentity/E2EIKeyPackageRotator.swift Updated to use CoreCryptoProtocol and transaction method
wire-ios-request-strategy/Tests/Helpers/*.swift Updated test helpers to use CoreCrypto instead of SafeCoreCrypto and removed tearDown calls
WireDomain/Sources/WireDomain/Synchronization/*.swift Updated synchronization components to use transaction method
WireDomain/Tests/WireDomainTests/Synchronization/*.swift Updated test files to use MockCoreCryptoProtocol with mockTransaction

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread WireCoreCrypto/Package.swift Outdated
@David-Henner David-Henner changed the title chore: bump core crypto to v9.2.0 - WPB-20920 chore: bump core crypto to v9.1.2 - WPB-20920 Dec 18, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 18, 2025

Test Results

    7 files    978 suites   9m 44s ⏱️
7 060 tests 7 032 ✅ 28 💤 0 ❌
7 061 runs  7 033 ✅ 28 💤 0 ❌

Results for commit ee52df4.

♻️ This comment has been updated with latest results.

Summary: workflow run #22317761743
Allure report (download zip): html-report-28092-chore_bump-cc-v9.2.0

@github-actions
Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 30 days with no activity. Please update it or close it in case is not relevant anymore.

@github-actions github-actions Bot added the stale label Jan 18, 2026
# Conflicts:
#	wire-ios-data-model/Source/Core Crypto/SafeCoreCrypto.swift
#	wire-ios-data-model/Support/Sources/MockSafeCoreCrypto.swift
#	wire-ios-data-model/Tests/Core Crypto/SafeCoreCryptoTests.swift
#	wire-ios-request-strategy/Tests/Helpers/MessagingTestBase.swift
#	wire-ios-sync-engine/Tests/Source/E2EE/UserClientEventConsumerTests.swift
@David-Henner David-Henner requested review from a team, jullianm and samwyndham and removed request for a team January 22, 2026 10:25
@David-Henner David-Henner requested a review from netbe January 23, 2026 13:42
Copy link
Copy Markdown
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Copy link
Copy Markdown
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments before approving

Comment thread wire-ios-data-model/Support/Sources/CoreCryptoMocksEnvelope.swift
Comment thread wire-ios-data-model/Source/Proteus/ProteusService.swift
@netbe netbe changed the title chore: bump core crypto to v9.1.2 - WPB-20920 chore: bump core crypto to v9.2.1 - WPB-20920 Feb 17, 2026
@netbe netbe self-assigned this Feb 17, 2026
@netbe netbe changed the base branch from develop to release/cycle-4.16 February 18, 2026 17:57
@netbe netbe added the release label Feb 18, 2026
Comment thread wire-ios-data-model/Source/Core Crypto/SafeCoreCrypto.swift
Copy link
Copy Markdown
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM;)

Comment thread wire-ios-data-model/Source/Core Crypto/CoreCryptoProvider.swift
Copy link
Copy Markdown
Contributor Author

@David-Henner David-Henner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 Thanks for taking over @netbe

Copy link
Copy Markdown
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@netbe netbe enabled auto-merge (squash) February 23, 2026 17:29
@sonarqubecloud
Copy link
Copy Markdown

@netbe netbe merged commit f0d1c47 into release/cycle-4.16 Feb 23, 2026
17 checks passed
@netbe netbe deleted the chore/bump-cc-v9.2.0 branch February 23, 2026 18:23
zenkins pushed a commit that referenced this pull request Feb 23, 2026
Co-authored-by: François Benaiteau <francois.benaiteau@wire.com>
Co-authored-by: François Benaiteau <netbe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants