diff --git a/Incremental Store/EncryptedStore.m b/Incremental Store/EncryptedStore.m index 9fb0010..5a22273 100755 --- a/Incremental Store/EncryptedStore.m +++ b/Incremental Store/EncryptedStore.m @@ -12,6 +12,7 @@ #import #import "EncryptedStore.h" +#import typedef sqlite3_stmt sqlite3_statement; diff --git a/Incremental Store/EncryptedStore.h b/Incremental Store/include/EncryptedStore.h similarity index 99% rename from Incremental Store/EncryptedStore.h rename to Incremental Store/include/EncryptedStore.h index 81ec5a8..1b595bb 100755 --- a/Incremental Store/EncryptedStore.h +++ b/Incremental Store/include/EncryptedStore.h @@ -6,6 +6,7 @@ // #import +#import typedef struct _options { char * passphrase; diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..81dd901 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,14 @@ +{ + "pins" : [ + { + "identity" : "sqlcipher.swift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/sqlcipher/SQLCipher.swift.git", + "state" : { + "revision" : "46e687b829dce3f9262e16e9f941a9e159136085", + "version" : "4.10.0" + } + } + ], + "version" : 2 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..7af230d --- /dev/null +++ b/Package.swift @@ -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"), + ] + ), + ] +)