@capacitor-community/sqlite 7.0.1 → 7.0.2-dev.5a79381.1766041651

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CapacitorCommunitySqlite.podspec +1 -1
  2. package/Package.swift +32 -0
  3. package/README.md +4 -1
  4. package/android/build.gradle +1 -1
  5. package/electron/dist/plugin.js.map +1 -1
  6. package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/CapacitorSQLitePlugin.swift +54 -1
  7. package/ios/Tests/CapacitorSQLitePluginTests/CapacitorSQLitePluginTests.swift +16 -0
  8. package/package.json +78 -76
  9. package/ios/Plugin/CapacitorSQLitePlugin.h +0 -10
  10. package/ios/Plugin/CapacitorSQLitePlugin.m +0 -56
  11. package/ios/Plugin/Info.plist +0 -24
  12. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/BiometricIDAuthentication.swift +0 -0
  13. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/CapacitorSQLite.swift +0 -0
  14. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Database.swift +0 -0
  15. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Extensions/Array.swift +0 -0
  16. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Extensions/Data.swift +0 -0
  17. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Extensions/Notification.Name.swift +0 -0
  18. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Extensions/String.swift +0 -0
  19. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/GlobalSQLite.swift +0 -0
  20. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/ImportExportJson/ExportToJson.swift +0 -0
  21. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/ImportExportJson/ImportData.swift +0 -0
  22. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/ImportExportJson/ImportFromJson.swift +0 -0
  23. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/ImportExportJson/JsonSQLite.swift +0 -0
  24. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Models/KeychainServices.swift +0 -0
  25. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/ReturnHandler.swift +0 -0
  26. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/SqliteConfig.swift +0 -0
  27. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsBinding.swift +0 -0
  28. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsDelete.swift +0 -0
  29. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsDownloadFromHTTP.swift +0 -0
  30. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsDrop.swift +0 -0
  31. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsEncryption.swift +0 -0
  32. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsFile.swift +0 -0
  33. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsJson.swift +0 -0
  34. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsMigrate.swift +0 -0
  35. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsNCDatabase.swift +0 -0
  36. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsSQLCipher.swift +0 -0
  37. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsSQLStatement.swift +0 -0
  38. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsSecret.swift +0 -0
  39. /package/ios/{Plugin → Sources/CapacitorSQLitePlugin}/Utils/UtilsUpgrade.swift +0 -0
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.homepage = package['repository']['url']
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.dependency 'SQLCipher'
package/Package.swift ADDED
@@ -0,0 +1,32 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "CapacitorCommunitySqlite",
6
+ platforms: [.iOS(.v15)],
7
+ products: [
8
+ .library(
9
+ name: "CapacitorCommunitySqlite",
10
+ targets: ["CapacitorSQLitePlugin"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
14
+ .package(url: "https://github.com/sqlcipher/SQLCipher.swift.git", from: "4.12.0"),
15
+ .package(url: "https://github.com/weichsel/ZIPFoundation.git", from: "0.9.20")
16
+ ],
17
+ targets: [
18
+ .target(
19
+ name: "CapacitorSQLitePlugin",
20
+ dependencies: [
21
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
22
+ .product(name: "Cordova", package: "capacitor-swift-pm"),
23
+ .product(name: "SQLCipher", package: "SQLCipher.swift"),
24
+ .product(name: "ZIPFoundation", package: "ZIPFoundation")
25
+ ],
26
+ path: "ios/Sources/CapacitorSQLitePlugin"),
27
+ .testTarget(
28
+ name: "CapacitorSQLitePluginTests",
29
+ dependencies: ["CapacitorSQLitePlugin"],
30
+ path: "ios/Tests/CapacitorSQLitePluginTests")
31
+ ]
32
+ )
package/README.md CHANGED
@@ -28,7 +28,10 @@
28
28
  | ---------- | ----------------------------------------- | --------------------------------------------- |
29
29
  | Robin Genz | [robingenz](https://github.com/robingenz) | [@robin_genz](https://twitter.com/robin_genz) |
30
30
 
31
- To install:
31
+ # Installation
32
+
33
+ > [!IMPORTANT]
34
+ > This plugin uses the [SQLCipher](https://www.zetetic.net/sqlcipher/) library (even for unencrypted databases), which is subject to the [Encryption Export Regulations](https://developer.apple.com/documentation/security/complying-with-encryption-export-regulations) and may require you to submit a year-end self-classification report to the U.S. government. Read more [here](https://discuss.zetetic.net/t/export-requirements-for-applications-using-sqlcipher/47).
32
35
 
33
36
  ```
34
37
  npm install --save @capacitor-community/sqlite
@@ -61,7 +61,7 @@ dependencies {
61
61
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
62
62
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
63
63
  implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"
64
- implementation 'net.zetetic:sqlcipher-android:4.6.1@aar'
64
+ implementation 'net.zetetic:sqlcipher-android:4.10.0@aar'
65
65
  implementation "androidx.sqlite:sqlite:2.4.0"
66
66
  //security library
67
67
  implementation "androidx.security:security-crypto:1.1.0-alpha06"