@capacitor-community/sqlite 7.0.2-dev.5a79381.1766041651 → 7.0.2
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.
- package/CapacitorCommunitySqlite.podspec +1 -1
- package/electron/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorSQLitePlugin.h +10 -0
- package/ios/Plugin/CapacitorSQLitePlugin.m +56 -0
- package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/CapacitorSQLitePlugin.swift +1 -54
- package/ios/Plugin/Info.plist +24 -0
- package/package.json +76 -78
- package/Package.swift +0 -32
- package/ios/Tests/CapacitorSQLitePluginTests/CapacitorSQLitePluginTests.swift +0 -16
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/BiometricIDAuthentication.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/CapacitorSQLite.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Database.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Extensions/Array.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Extensions/Data.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Extensions/Notification.Name.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Extensions/String.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/GlobalSQLite.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/ImportExportJson/ExportToJson.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/ImportExportJson/ImportData.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/ImportExportJson/ImportFromJson.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/ImportExportJson/JsonSQLite.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Models/KeychainServices.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/ReturnHandler.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/SqliteConfig.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsBinding.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsDelete.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsDownloadFromHTTP.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsDrop.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsEncryption.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsFile.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsJson.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsMigrate.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsNCDatabase.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsSQLCipher.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsSQLStatement.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsSecret.swift +0 -0
- /package/ios/{Sources/CapacitorSQLitePlugin → Plugin}/Utils/UtilsUpgrade.swift +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
|
|
3
|
+
//! Project version number for Plugin.
|
|
4
|
+
FOUNDATION_EXPORT double PluginVersionNumber;
|
|
5
|
+
|
|
6
|
+
//! Project version string for Plugin.
|
|
7
|
+
FOUNDATION_EXPORT const unsigned char PluginVersionString[];
|
|
8
|
+
|
|
9
|
+
// In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
|
|
10
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import <Capacitor/Capacitor.h>
|
|
3
|
+
|
|
4
|
+
// Define the plugin using the CAP_PLUGIN Macro, and
|
|
5
|
+
// each method the plugin supports using the CAP_PLUGIN_METHOD macro.
|
|
6
|
+
CAP_PLUGIN(CapacitorSQLitePlugin, "CapacitorSQLite",
|
|
7
|
+
CAP_PLUGIN_METHOD(echo, CAPPluginReturnPromise);
|
|
8
|
+
CAP_PLUGIN_METHOD(createConnection, CAPPluginReturnPromise);
|
|
9
|
+
CAP_PLUGIN_METHOD(closeConnection, CAPPluginReturnPromise);
|
|
10
|
+
CAP_PLUGIN_METHOD(createNCConnection, CAPPluginReturnPromise);
|
|
11
|
+
CAP_PLUGIN_METHOD(closeNCConnection, CAPPluginReturnPromise);
|
|
12
|
+
CAP_PLUGIN_METHOD(getNCDatabasePath, CAPPluginReturnPromise);
|
|
13
|
+
CAP_PLUGIN_METHOD(open, CAPPluginReturnPromise);
|
|
14
|
+
CAP_PLUGIN_METHOD(close, CAPPluginReturnPromise);
|
|
15
|
+
CAP_PLUGIN_METHOD(getUrl, CAPPluginReturnPromise);
|
|
16
|
+
CAP_PLUGIN_METHOD(getVersion, CAPPluginReturnPromise);
|
|
17
|
+
CAP_PLUGIN_METHOD(execute, CAPPluginReturnPromise);
|
|
18
|
+
CAP_PLUGIN_METHOD(executeSet, CAPPluginReturnPromise);
|
|
19
|
+
CAP_PLUGIN_METHOD(run, CAPPluginReturnPromise);
|
|
20
|
+
CAP_PLUGIN_METHOD(query, CAPPluginReturnPromise);
|
|
21
|
+
CAP_PLUGIN_METHOD(isDBExists, CAPPluginReturnPromise);
|
|
22
|
+
CAP_PLUGIN_METHOD(isDBOpen, CAPPluginReturnPromise);
|
|
23
|
+
CAP_PLUGIN_METHOD(deleteDatabase, CAPPluginReturnPromise);
|
|
24
|
+
CAP_PLUGIN_METHOD(importFromJson, CAPPluginReturnPromise);
|
|
25
|
+
CAP_PLUGIN_METHOD(isJsonValid, CAPPluginReturnPromise);
|
|
26
|
+
CAP_PLUGIN_METHOD(exportToJson, CAPPluginReturnPromise);
|
|
27
|
+
CAP_PLUGIN_METHOD(deleteExportedRows, CAPPluginReturnPromise);
|
|
28
|
+
CAP_PLUGIN_METHOD(createSyncTable, CAPPluginReturnPromise);
|
|
29
|
+
CAP_PLUGIN_METHOD(setSyncDate, CAPPluginReturnPromise);
|
|
30
|
+
CAP_PLUGIN_METHOD(getSyncDate, CAPPluginReturnPromise);
|
|
31
|
+
CAP_PLUGIN_METHOD(addUpgradeStatement, CAPPluginReturnPromise);
|
|
32
|
+
CAP_PLUGIN_METHOD(copyFromAssets, CAPPluginReturnPromise);
|
|
33
|
+
CAP_PLUGIN_METHOD(isDatabase, CAPPluginReturnPromise);
|
|
34
|
+
CAP_PLUGIN_METHOD(isNCDatabase, CAPPluginReturnPromise);
|
|
35
|
+
CAP_PLUGIN_METHOD(isTableExists, CAPPluginReturnPromise);
|
|
36
|
+
CAP_PLUGIN_METHOD(getDatabaseList, CAPPluginReturnPromise);
|
|
37
|
+
CAP_PLUGIN_METHOD(getTableList, CAPPluginReturnPromise);
|
|
38
|
+
CAP_PLUGIN_METHOD(getMigratableDbList, CAPPluginReturnPromise);
|
|
39
|
+
CAP_PLUGIN_METHOD(addSQLiteSuffix, CAPPluginReturnPromise);
|
|
40
|
+
CAP_PLUGIN_METHOD(deleteOldDatabases, CAPPluginReturnPromise);
|
|
41
|
+
CAP_PLUGIN_METHOD(moveDatabasesAndAddSuffix, CAPPluginReturnPromise);
|
|
42
|
+
CAP_PLUGIN_METHOD(checkConnectionsConsistency, CAPPluginReturnPromise);
|
|
43
|
+
CAP_PLUGIN_METHOD(isSecretStored, CAPPluginReturnPromise);
|
|
44
|
+
CAP_PLUGIN_METHOD(setEncryptionSecret, CAPPluginReturnPromise);
|
|
45
|
+
CAP_PLUGIN_METHOD(changeEncryptionSecret, CAPPluginReturnPromise);
|
|
46
|
+
CAP_PLUGIN_METHOD(clearEncryptionSecret, CAPPluginReturnPromise);
|
|
47
|
+
CAP_PLUGIN_METHOD(getFromHTTPRequest, CAPPluginReturnPromise);
|
|
48
|
+
CAP_PLUGIN_METHOD(checkEncryptionSecret, CAPPluginReturnPromise);
|
|
49
|
+
CAP_PLUGIN_METHOD(isInConfigEncryption, CAPPluginReturnPromise);
|
|
50
|
+
CAP_PLUGIN_METHOD(isInConfigBiometricAuth, CAPPluginReturnPromise);
|
|
51
|
+
CAP_PLUGIN_METHOD(isDatabaseEncrypted, CAPPluginReturnPromise);
|
|
52
|
+
CAP_PLUGIN_METHOD(beginTransaction, CAPPluginReturnPromise);
|
|
53
|
+
CAP_PLUGIN_METHOD(commitTransaction, CAPPluginReturnPromise);
|
|
54
|
+
CAP_PLUGIN_METHOD(rollbackTransaction, CAPPluginReturnPromise);
|
|
55
|
+
CAP_PLUGIN_METHOD(isTransactionActive, CAPPluginReturnPromise);
|
|
56
|
+
)
|
|
@@ -4,60 +4,7 @@ import Capacitor
|
|
|
4
4
|
@objc(CapacitorSQLitePlugin)
|
|
5
5
|
// swiftlint:disable file_length
|
|
6
6
|
// swiftlint:disable type_body_length
|
|
7
|
-
public class CapacitorSQLitePlugin: CAPPlugin
|
|
8
|
-
public let identifier = "CapacitorSQLitePlugin"
|
|
9
|
-
public let jsName = "CapacitorSQLite"
|
|
10
|
-
public let pluginMethods: [CAPPluginMethod] = [
|
|
11
|
-
CAPPluginMethod(name: "echo", returnType: CAPPluginReturnPromise),
|
|
12
|
-
CAPPluginMethod(name: "createConnection", returnType: CAPPluginReturnPromise),
|
|
13
|
-
CAPPluginMethod(name: "closeConnection", returnType: CAPPluginReturnPromise),
|
|
14
|
-
CAPPluginMethod(name: "createNCConnection", returnType: CAPPluginReturnPromise),
|
|
15
|
-
CAPPluginMethod(name: "closeNCConnection", returnType: CAPPluginReturnPromise),
|
|
16
|
-
CAPPluginMethod(name: "getNCDatabasePath", returnType: CAPPluginReturnPromise),
|
|
17
|
-
CAPPluginMethod(name: "open", returnType: CAPPluginReturnPromise),
|
|
18
|
-
CAPPluginMethod(name: "close", returnType: CAPPluginReturnPromise),
|
|
19
|
-
CAPPluginMethod(name: "getUrl", returnType: CAPPluginReturnPromise),
|
|
20
|
-
CAPPluginMethod(name: "getVersion", returnType: CAPPluginReturnPromise),
|
|
21
|
-
CAPPluginMethod(name: "execute", returnType: CAPPluginReturnPromise),
|
|
22
|
-
CAPPluginMethod(name: "executeSet", returnType: CAPPluginReturnPromise),
|
|
23
|
-
CAPPluginMethod(name: "run", returnType: CAPPluginReturnPromise),
|
|
24
|
-
CAPPluginMethod(name: "query", returnType: CAPPluginReturnPromise),
|
|
25
|
-
CAPPluginMethod(name: "isDBExists", returnType: CAPPluginReturnPromise),
|
|
26
|
-
CAPPluginMethod(name: "isDBOpen", returnType: CAPPluginReturnPromise),
|
|
27
|
-
CAPPluginMethod(name: "deleteDatabase", returnType: CAPPluginReturnPromise),
|
|
28
|
-
CAPPluginMethod(name: "importFromJson", returnType: CAPPluginReturnPromise),
|
|
29
|
-
CAPPluginMethod(name: "isJsonValid", returnType: CAPPluginReturnPromise),
|
|
30
|
-
CAPPluginMethod(name: "exportToJson", returnType: CAPPluginReturnPromise),
|
|
31
|
-
CAPPluginMethod(name: "deleteExportedRows", returnType: CAPPluginReturnPromise),
|
|
32
|
-
CAPPluginMethod(name: "createSyncTable", returnType: CAPPluginReturnPromise),
|
|
33
|
-
CAPPluginMethod(name: "setSyncDate", returnType: CAPPluginReturnPromise),
|
|
34
|
-
CAPPluginMethod(name: "getSyncDate", returnType: CAPPluginReturnPromise),
|
|
35
|
-
CAPPluginMethod(name: "addUpgradeStatement", returnType: CAPPluginReturnPromise),
|
|
36
|
-
CAPPluginMethod(name: "copyFromAssets", returnType: CAPPluginReturnPromise),
|
|
37
|
-
CAPPluginMethod(name: "isDatabase", returnType: CAPPluginReturnPromise),
|
|
38
|
-
CAPPluginMethod(name: "isNCDatabase", returnType: CAPPluginReturnPromise),
|
|
39
|
-
CAPPluginMethod(name: "isTableExists", returnType: CAPPluginReturnPromise),
|
|
40
|
-
CAPPluginMethod(name: "getDatabaseList", returnType: CAPPluginReturnPromise),
|
|
41
|
-
CAPPluginMethod(name: "getTableList", returnType: CAPPluginReturnPromise),
|
|
42
|
-
CAPPluginMethod(name: "getMigratableDbList", returnType: CAPPluginReturnPromise),
|
|
43
|
-
CAPPluginMethod(name: "addSQLiteSuffix", returnType: CAPPluginReturnPromise),
|
|
44
|
-
CAPPluginMethod(name: "deleteOldDatabases", returnType: CAPPluginReturnPromise),
|
|
45
|
-
CAPPluginMethod(name: "moveDatabasesAndAddSuffix", returnType: CAPPluginReturnPromise),
|
|
46
|
-
CAPPluginMethod(name: "checkConnectionsConsistency", returnType: CAPPluginReturnPromise),
|
|
47
|
-
CAPPluginMethod(name: "isSecretStored", returnType: CAPPluginReturnPromise),
|
|
48
|
-
CAPPluginMethod(name: "setEncryptionSecret", returnType: CAPPluginReturnPromise),
|
|
49
|
-
CAPPluginMethod(name: "changeEncryptionSecret", returnType: CAPPluginReturnPromise),
|
|
50
|
-
CAPPluginMethod(name: "clearEncryptionSecret", returnType: CAPPluginReturnPromise),
|
|
51
|
-
CAPPluginMethod(name: "getFromHTTPRequest", returnType: CAPPluginReturnPromise),
|
|
52
|
-
CAPPluginMethod(name: "checkEncryptionSecret", returnType: CAPPluginReturnPromise),
|
|
53
|
-
CAPPluginMethod(name: "isInConfigEncryption", returnType: CAPPluginReturnPromise),
|
|
54
|
-
CAPPluginMethod(name: "isInConfigBiometricAuth", returnType: CAPPluginReturnPromise),
|
|
55
|
-
CAPPluginMethod(name: "isDatabaseEncrypted", returnType: CAPPluginReturnPromise),
|
|
56
|
-
CAPPluginMethod(name: "beginTransaction", returnType: CAPPluginReturnPromise),
|
|
57
|
-
CAPPluginMethod(name: "commitTransaction", returnType: CAPPluginReturnPromise),
|
|
58
|
-
CAPPluginMethod(name: "rollbackTransaction", returnType: CAPPluginReturnPromise),
|
|
59
|
-
CAPPluginMethod(name: "isTransactionActive", returnType: CAPPluginReturnPromise),
|
|
60
|
-
]
|
|
7
|
+
public class CapacitorSQLitePlugin: CAPPlugin {
|
|
61
8
|
private var implementation: CapacitorSQLite?
|
|
62
9
|
private let modeList: [String] = ["no-encryption", "encryption", "secret",
|
|
63
10
|
"decryption", "newsecret", "wrongsecret"]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>FMWK</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
21
|
+
<key>NSPrincipalClass</key>
|
|
22
|
+
<string></string>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"unpkg": "dist/plugin.js",
|
|
3
|
-
"peerDependencies": {
|
|
4
|
-
"@capacitor/core": ">=7.0.0"
|
|
5
|
-
},
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/capacitor-community/sqlite/issues"
|
|
8
|
-
},
|
|
9
2
|
"name": "@capacitor-community/sqlite",
|
|
10
|
-
"
|
|
3
|
+
"version": "7.0.2",
|
|
4
|
+
"description": "Community plugin for native & electron SQLite databases",
|
|
5
|
+
"main": "dist/plugin.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"unpkg": "dist/plugin.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"android/src/main/",
|
|
11
|
+
"android/build.gradle",
|
|
12
|
+
"dist/",
|
|
13
|
+
"src/",
|
|
14
|
+
"ios/Plugin/",
|
|
15
|
+
"electron/",
|
|
16
|
+
"CapacitorCommunitySqlite.podspec"
|
|
17
|
+
],
|
|
18
|
+
"author": "Robin Genz <mail@robingenz.dev>",
|
|
19
|
+
"license": "MIT",
|
|
11
20
|
"engines": {
|
|
12
21
|
"node": ">=16.0.0"
|
|
13
22
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"ios": {
|
|
18
|
-
"src": "ios"
|
|
19
|
-
},
|
|
20
|
-
"android": {
|
|
21
|
-
"src": "android"
|
|
22
|
-
},
|
|
23
|
-
"electron": {
|
|
24
|
-
"src": "electron"
|
|
25
|
-
}
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/capacitor-community/sqlite.git"
|
|
26
26
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/capacitor-community/sqlite/issues"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"capacitor",
|
|
@@ -36,71 +36,69 @@
|
|
|
36
36
|
"database",
|
|
37
37
|
"sqlite"
|
|
38
38
|
],
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"android
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
39
|
+
"scripts": {
|
|
40
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web && npm run verify:electron",
|
|
41
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin OTHER_CFLAGS='-DHAVE_GETHOSTUUID=0' && cd ..",
|
|
42
|
+
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
43
|
+
"verify:web": "npm run build",
|
|
44
|
+
"verify:electron": "npm run build-electron",
|
|
45
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
46
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
47
|
+
"eslint": "eslint . --ext ts",
|
|
48
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
49
|
+
"swiftlint": "node-swiftlint",
|
|
50
|
+
"docgen": "npm run docgenPlugin && npm run docgenConnection && npm run docgenDBConnection",
|
|
51
|
+
"docgenPlugin": "docgen --api CapacitorSQLitePlugin --output-readme docs/API.md",
|
|
52
|
+
"docgenConnection": "docgen --api ISQLiteConnection --output-readme docs/APIConnection.md",
|
|
53
|
+
"docgenDBConnection": "docgen --api ISQLiteDBConnection --output-readme docs/APIDBConnection.md",
|
|
54
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
55
|
+
"build-electron": "tsc --project electron/tsconfig.json && rollup -c electron/rollup.config.mjs && rimraf ./electron/build",
|
|
56
|
+
"clean": "rimraf ./dist",
|
|
57
|
+
"watch": "tsc --watch",
|
|
58
|
+
"test": "echo \"No test specified\"",
|
|
59
|
+
"prepublishOnly": "npm run build && npm run build-electron && npm run docgen",
|
|
60
|
+
"release": "standard-version"
|
|
55
61
|
},
|
|
56
|
-
"types": "dist/esm/index.d.ts",
|
|
57
|
-
"license": "MIT",
|
|
58
62
|
"devDependencies": {
|
|
59
|
-
"standard-version": "9.5.0",
|
|
60
|
-
"@rollup/plugin-commonjs": "28.0.2",
|
|
61
|
-
"eslint": "8.57.0",
|
|
62
|
-
"typescript": "4.1.5",
|
|
63
63
|
"@capacitor/android": "7.0.0",
|
|
64
|
-
"@rollup/plugin-node-resolve": "16.0.0",
|
|
65
64
|
"@capacitor/cli": "7.0.0",
|
|
66
|
-
"@ionic/prettier-config": "4.0.0",
|
|
67
|
-
"@capacitor/ios": "7.0.0",
|
|
68
|
-
"swiftlint": "2.0.0",
|
|
69
|
-
"rimraf": "6.0.1",
|
|
70
|
-
"@ionic/eslint-config": "0.4.0",
|
|
71
65
|
"@capacitor/core": "7.0.0",
|
|
72
|
-
"rollup": "4.30.1",
|
|
73
66
|
"@capacitor/docgen": "0.3.0",
|
|
74
|
-
"
|
|
67
|
+
"@capacitor/ios": "7.0.0",
|
|
68
|
+
"@ionic/eslint-config": "0.4.0",
|
|
69
|
+
"@ionic/prettier-config": "4.0.0",
|
|
75
70
|
"@ionic/swiftlint-config": "2.0.0",
|
|
76
|
-
"
|
|
71
|
+
"@rollup/plugin-commonjs": "28.0.2",
|
|
72
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
73
|
+
"eslint": "8.57.0",
|
|
74
|
+
"prettier": "3.4.2",
|
|
75
|
+
"prettier-plugin-java": "2.6.6",
|
|
76
|
+
"rimraf": "6.0.1",
|
|
77
|
+
"rollup": "4.30.1",
|
|
78
|
+
"standard-version": "9.5.0",
|
|
79
|
+
"swiftlint": "2.0.0",
|
|
80
|
+
"typescript": "4.1.5"
|
|
77
81
|
},
|
|
78
|
-
"
|
|
79
|
-
"
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"@capacitor/core": ">=7.0.0"
|
|
80
84
|
},
|
|
81
85
|
"prettier": "@ionic/prettier-config",
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
100
|
-
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
101
|
-
"swiftlint": "node-swiftlint",
|
|
102
|
-
"verify:electron": "npm run build-electron",
|
|
103
|
-
"test": "echo \"No test specified\"",
|
|
104
|
-
"verify:web": "npm run build"
|
|
86
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
87
|
+
"eslintConfig": {
|
|
88
|
+
"extends": "@ionic/eslint-config/recommended"
|
|
89
|
+
},
|
|
90
|
+
"capacitor": {
|
|
91
|
+
"ios": {
|
|
92
|
+
"src": "ios"
|
|
93
|
+
},
|
|
94
|
+
"android": {
|
|
95
|
+
"src": "android"
|
|
96
|
+
},
|
|
97
|
+
"electron": {
|
|
98
|
+
"src": "electron"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"jeep-sqlite": "^2.7.2"
|
|
105
103
|
}
|
|
106
104
|
}
|
package/Package.swift
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import XCTest
|
|
2
|
-
@testable import Plugin
|
|
3
|
-
|
|
4
|
-
class CapacitorSQLiteTests: XCTestCase {
|
|
5
|
-
|
|
6
|
-
func testEcho() {
|
|
7
|
-
// This is an example of a functional test case for a plugin.
|
|
8
|
-
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
9
|
-
|
|
10
|
-
let implementation = CapacitorSQLite()
|
|
11
|
-
let value = "Hello, World!"
|
|
12
|
-
let result = implementation.echo(value)
|
|
13
|
-
|
|
14
|
-
XCTAssertEqual(value, result)
|
|
15
|
-
}
|
|
16
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|