@capacitor-community/sqlite 3.4.1 → 3.4.2-1
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/README.md
CHANGED
|
@@ -30,15 +30,34 @@
|
|
|
30
30
|
|
|
31
31
|
🚨 Since release 3.4.1 ->> 🚨
|
|
32
32
|
Databases location for Electron can be set in `the config.config.ts` as followed:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
|
|
34
|
+
- for sharing databases between users:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
plugins: {
|
|
38
|
+
CapacitorSQLite: {
|
|
39
|
+
electronMacLocation: "/YOUR_DATABASES_PATH",
|
|
40
|
+
electronWindowsLocation: "C:\\ProgramData\\CapacitorDatabases",
|
|
41
|
+
electronLinuxLocation: "/home/CapacitorDatabases"
|
|
42
|
+
}
|
|
38
43
|
}
|
|
39
|
-
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
- for only the user in its Home folder
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
Plugins: {
|
|
50
|
+
CapacitorSQLite: {
|
|
51
|
+
electronMacLocation: "Databases",
|
|
52
|
+
electronWindowsLocation: "Databases",
|
|
53
|
+
electronLinuxLocation: "Databases"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
40
58
|
For existing databases, YOU MUST COPY old databases to the new location
|
|
41
59
|
You MUST remove the Electron folder and add it again with
|
|
60
|
+
|
|
42
61
|
```
|
|
43
62
|
npx cap add @capacitor-community/electron
|
|
44
63
|
npm run build
|
|
@@ -51,6 +70,7 @@
|
|
|
51
70
|
npm run build
|
|
52
71
|
npx cap copy @capacitor-community/electron
|
|
53
72
|
npx cap open @capacitor-community/electron
|
|
73
|
+
```
|
|
54
74
|
🚨 Since release 3.4.1 <<- 🚨
|
|
55
75
|
|
|
56
76
|
🚨 Since release 3.4.1-1 ->> 🚨
|
package/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLitePlugin.java
CHANGED
|
@@ -159,6 +159,7 @@ public class CapacitorSQLitePlugin extends Plugin {
|
|
|
159
159
|
public void run() {
|
|
160
160
|
try {
|
|
161
161
|
implementation.changeEncryptionSecret(call, passphrase, oldpassphrase);
|
|
162
|
+
rHandler.retResult(call, null, null);
|
|
162
163
|
return;
|
|
163
164
|
} catch (Exception e) {
|
|
164
165
|
String msg = "ChangeEncryptionSecret: " + e.getMessage();
|
|
@@ -109,6 +109,7 @@ public class CapacitorSQLitePlugin: CAPPlugin {
|
|
|
109
109
|
}
|
|
110
110
|
do {
|
|
111
111
|
try implementation?.changeEncryptionSecret(call: call, passphrase: passphrase, oldPassphrase: oldPassphrase)
|
|
112
|
+
retHandler.rResult(call: call)
|
|
112
113
|
return
|
|
113
114
|
} catch CapacitorSQLiteError.failed(let message) {
|
|
114
115
|
let msg = "ChangeEncryptionSecret: \(message)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/sqlite",
|
|
3
|
-
"version": "3.4.1",
|
|
3
|
+
"version": "3.4.2-1",
|
|
4
4
|
"description": "Community plugin for native & electron SQLite databases",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
"prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@capacitor/android": "^3.4.
|
|
59
|
-
"@capacitor/core": "^3.4.
|
|
58
|
+
"@capacitor/android": "^3.4.2",
|
|
59
|
+
"@capacitor/core": "^3.4.2",
|
|
60
60
|
"@capacitor/docgen": "^0.0.17",
|
|
61
|
-
"@capacitor/ios": "^3.4.
|
|
61
|
+
"@capacitor/ios": "^3.4.2",
|
|
62
62
|
"@ionic/eslint-config": "^0.3.0",
|
|
63
63
|
"@ionic/prettier-config": "^1.0.1",
|
|
64
64
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
65
65
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
66
66
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
67
|
-
"electron": "^14.
|
|
67
|
+
"electron": "^14.2.4",
|
|
68
68
|
"eslint": "^7.11.0",
|
|
69
69
|
"prettier": "~2.2.0",
|
|
70
70
|
"prettier-plugin-java": "~1.0.0",
|