Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d662786
Add SPM support
mRoRo Sep 5, 2025
07f3dd9
Include package
mRoRo Sep 5, 2025
cfa1e10
Modify swift-tools-version
mRoRo Sep 5, 2025
385b137
Fix wrong url
mRoRo Sep 5, 2025
a729388
remove dependencies
mRoRo Sep 5, 2025
b0beb53
Add path to the Package.swift file
mRoRo Sep 5, 2025
acfb292
Add include
mRoRo Sep 5, 2025
64fbeaf
New Package structure
mRoRo Sep 5, 2025
d4f3d88
Add include folder
mRoRo Sep 5, 2025
454a23d
Add sqlcipher dependency
mRoRo Sep 10, 2025
8a05753
Increase the sqlcipher version
mRoRo Sep 10, 2025
a0076d3
Fix 'dependencies' must precede 'path' error
mRoRo Sep 10, 2025
4b51b1a
Add dependencies in the correct place
mRoRo Sep 10, 2025
5f50790
Fix tag name
mRoRo Sep 10, 2025
31e4ead
Add cSettings and linkerSettings
mRoRo Sep 10, 2025
a60a8c0
Use swift.git
mRoRo Sep 10, 2025
76a75ef
Remove space in path
mRoRo Sep 10, 2025
b54b0c2
Remove sources in Package.swift
mRoRo Sep 10, 2025
7e3f147
Simplify the Package.swift file
mRoRo Sep 10, 2025
678bf37
Back to old name
mRoRo Sep 10, 2025
75ecab4
fix header and search paths
mRoRo Sep 10, 2025
26f731d
Add SQLITE_HAS_CODEC and SQLCIPHER_CRYPTO_CC
mRoRo Sep 10, 2025
4d5253c
Add sqlcipher as a dependency
mRoRo Sep 10, 2025
135f955
Add SQLCipher dependency
mRoRo Sep 10, 2025
4934cf8
Use SQLCipher.swift
mRoRo Sep 10, 2025
00dc2d5
Add SQLCipher import
mRoRo Sep 10, 2025
d95d3d3
Add linker settings
mRoRo Sep 10, 2025
02f745d
Add #import <Foundation/Foundation.h>
mRoRo Sep 10, 2025
f810372
Check without linker
mRoRo Sep 10, 2025
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
1 change: 1 addition & 0 deletions Incremental Store/EncryptedStore.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#import <objc/runtime.h>

#import "EncryptedStore.h"
#import <SQLCipher/SQLCipher.h>

typedef sqlite3_stmt sqlite3_statement;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

#import <CoreData/CoreData.h>
#import <Foundation/Foundation.h>

typedef struct _options {
char * passphrase;
Expand Down
14 changes: 14 additions & 0 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "EncryptedCoreData",
platforms: [
.iOS(.v15)
],
products: [
.library(
name: "EncryptedCoreData",
targets: ["EncryptedCoreData"]
),
],
dependencies: [
.package(
url: "https://github.com/sqlcipher/SQLCipher.swift.git",
from: "4.10.0"
)
],
targets: [
.target(
name: "EncryptedCoreData",
dependencies: [
.product(name: "SQLCipher", package: "SQLCipher.swift")
],
path: "Incremental Store",
sources: [
"."
],
publicHeadersPath: "include",
cSettings: [
.define("SQLITE_HAS_CODEC"),
.define("SQLCIPHER_CRYPTO_CC"),
.headerSearchPath("include"),
]
),
]
)