@capacitor-community/sqlite 3.2.5 → 3.3.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 3.3.1 (2021-11-25)
|
|
2
|
+
|
|
3
|
+
### Chore
|
|
4
|
+
|
|
5
|
+
- Update to @capacitor/core 3.3.1
|
|
6
|
+
- Update to @capacitor/ios 3.3.1
|
|
7
|
+
- Update to @capacitor/android 3.3.1
|
|
8
|
+
|
|
9
|
+
### Added Features
|
|
10
|
+
|
|
11
|
+
- add link to React-Vite and Vue-Vite application
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- fix Plugin failed to register in Android 11 physical device issue#196
|
|
16
|
+
- fix Ionic-React-Usage.md
|
|
17
|
+
- fix Ionic-Vue-Usage.md
|
|
18
|
+
- fix Electron `npm install --save jszip`in README issue#197
|
|
19
|
+
|
|
1
20
|
## 3.2.5 (2021-11-07)
|
|
2
21
|
|
|
3
22
|
- stable release
|
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ npx cap sync @capacitor-community/electron
|
|
|
115
115
|
```bash
|
|
116
116
|
cd electron
|
|
117
117
|
npm install --save sqlite3
|
|
118
|
+
npm install --save jszip
|
|
118
119
|
npm install --save-dev @types/sqlite3
|
|
119
120
|
npm run build
|
|
120
121
|
```
|
|
@@ -255,6 +256,11 @@ No configuration required for this plugin
|
|
|
255
256
|
|
|
256
257
|
- [react-sqlite-app-starter](https://github.com/jepiqueau/react-sqlite-app-starter)
|
|
257
258
|
|
|
259
|
+
### React+Vite
|
|
260
|
+
|
|
261
|
+
- [react-vite-sqlite-app](https://github.com/jepiqueau/react-vite-sqlite-app)
|
|
262
|
+
|
|
263
|
+
|
|
258
264
|
### Ionic/Vue
|
|
259
265
|
|
|
260
266
|
- [vue-sqlite-app-starter](https://github.com/jepiqueau/vue-sqlite-app-starter)
|
|
@@ -263,6 +269,10 @@ No configuration required for this plugin
|
|
|
263
269
|
|
|
264
270
|
- [vue-sqlite-app](https://github.com/jepiqueau/vue-sqlite-app)
|
|
265
271
|
|
|
272
|
+
### Vue+Vite
|
|
273
|
+
|
|
274
|
+
- [vue-vite-sqlite-app](https://github.com/jepiqueau/vuevite-app)
|
|
275
|
+
|
|
266
276
|
## Usage
|
|
267
277
|
|
|
268
278
|
- [see capacitor documentation](https://capacitor.ionicframework.com/docs/getting-started/with-ionic)
|
package/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLite.java
CHANGED
|
@@ -5,6 +5,7 @@ import android.content.SharedPreferences;
|
|
|
5
5
|
import android.text.TextUtils;
|
|
6
6
|
import android.util.Log;
|
|
7
7
|
import androidx.security.crypto.EncryptedSharedPreferences;
|
|
8
|
+
import androidx.security.crypto.MasterKey;
|
|
8
9
|
import androidx.security.crypto.MasterKeys;
|
|
9
10
|
import com.getcapacitor.JSArray;
|
|
10
11
|
import com.getcapacitor.JSObject;
|
|
@@ -46,14 +47,13 @@ public class CapacitorSQLite {
|
|
|
46
47
|
try {
|
|
47
48
|
// create or retrieve masterkey from Android keystore
|
|
48
49
|
// it will be used to encrypt the passphrase for a database
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
MasterKey masterKeyAlias = new MasterKey.Builder(context).setKeyScheme(MasterKey.KeyScheme.AES256_GCM).build();
|
|
51
51
|
// get instance of the EncryptedSharedPreferences class
|
|
52
52
|
this.sharedPreferences =
|
|
53
53
|
EncryptedSharedPreferences.create(
|
|
54
|
+
context,
|
|
54
55
|
"sqlite_encrypted_shared_prefs",
|
|
55
56
|
masterKeyAlias,
|
|
56
|
-
context,
|
|
57
57
|
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,
|
|
58
58
|
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
|
|
59
59
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/sqlite",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.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,10 +55,10 @@
|
|
|
55
55
|
"prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@capacitor/android": "^3.
|
|
59
|
-
"@capacitor/core": "3.
|
|
58
|
+
"@capacitor/android": "^3.3.1",
|
|
59
|
+
"@capacitor/core": "3.3.1",
|
|
60
60
|
"@capacitor/docgen": "^0.0.17",
|
|
61
|
-
"@capacitor/ios": "^3.
|
|
61
|
+
"@capacitor/ios": "^3.3.1",
|
|
62
62
|
"@ionic/eslint-config": "^0.3.0",
|
|
63
63
|
"@ionic/prettier-config": "^1.0.1",
|
|
64
64
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "~4.0.5"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@capacitor/core": "^3.
|
|
77
|
+
"@capacitor/core": "^3.3.1"
|
|
78
78
|
},
|
|
79
79
|
"prettier": "@ionic/prettier-config",
|
|
80
80
|
"swiftlint": "@ionic/swiftlint-config",
|