Skip to content

Moving to SQLCipher 4.10.0 - #7

Merged
wmathurin merged 9 commits into
forcedotcom:masterfrom
wmathurin:sqlcipher410_changes
Aug 19, 2025
Merged

Moving to SQLCipher 4.10.0#7
wmathurin merged 9 commits into
forcedotcom:masterfrom
wmathurin:sqlcipher410_changes

Conversation

@wmathurin

Copy link
Copy Markdown
Collaborator

Important, only merge after:

SQLCipher 4.10.0 added support for SPM.
As a result we no longer link it as a static library in SalesforceMobileSDK-iOS.
With the changes below, our Swift package now depends on FMDB/SQLCipher instead of embedding them.

Comment thread Package.swift
.binaryTarget(
name: "MobileSync",
path:"archives/MobileSync.xcframework.zip"
),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The wrapper is needed because binary target cannot have dependencies

Comment thread Package.swift Outdated
],
dependencies: [
.package(url: "https://github.com/sqlcipher/SQLCipher.swift.git", exact: "4.10.0"),
.package(url: "https://github.com/wmathurin/fmdb.git", branch: "spm_with_sqlcipher")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

NB: will switch that to forcedotcom/fmdb once forcedotcom/fmdb#15 gets merged

// Re-export the SmartStore framework
@_exported import SmartStore

// Re-export SQLCipher for encryption capabilities

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We don't really need to re-export SQLCipher and FMDB but that way consuming apps can use those APIs if they wish to.

@wmathurin
wmathurin marked this pull request as ready for review August 19, 2025 22:05
@wmathurin
wmathurin requested a review from bbirman August 19, 2025 22:05
@wmathurin
wmathurin merged commit 7aa7340 into forcedotcom:master Aug 19, 2025
1 check passed
@wmathurin
wmathurin deleted the sqlcipher410_changes branch September 10, 2025 22:09
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