Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ let package = Package(
platforms: [
.iOS(.v17),
.watchOS(.v8),
.visionOS(.v2)
.visionOS(.v2),
.macCatalyst(.v13)
],
products: [
.library(
Expand All @@ -24,14 +25,16 @@ let package = Package(
),
.library(
name: "SmartStore",
targets: ["SmartStore"]
targets: ["SmartStoreWrapper"]
),
.library(
name: "MobileSync",
targets: ["MobileSync"]
),
],
dependencies: [
.package(url: "https://github.com/sqlcipher/SQLCipher.swift.git", exact: "4.10.0"),
.package(url: "https://github.com/forcedotcom/fmdb.git", branch: "spm")
],
targets: [
.binaryTarget(
Expand All @@ -53,6 +56,14 @@ let package = Package(
.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

.target(
name: "SmartStoreWrapper",
dependencies: [
"SmartStore",
.product(name: "SQLCipher", package: "SQLCipher.swift"),
.product(name: "FMDB", package: "fmdb")
]
)
],
swiftLanguageVersions: [.v5]
Expand Down
11 changes: 11 additions & 0 deletions Sources/SmartStoreWrapper/SmartStoreWrapper.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// SmartStoreWrapper.swift
// Re-exports SmartStore framework along with its dependencies

// 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.

@_exported import SQLCipher

// Re-export FMDB for SQLite wrapper functionality
@_exported import FMDB
Binary file modified archives/MobileSync.xcframework.zip
Binary file not shown.
Binary file modified archives/SalesforceAnalytics.xcframework.zip
Binary file not shown.
Binary file modified archives/SalesforceSDKCommon.xcframework.zip
Binary file not shown.
Binary file modified archives/SalesforceSDKCore.xcframework.zip
Binary file not shown.
Binary file modified archives/SmartStore.xcframework.zip
Binary file not shown.