@capacitor-community/sqlite 4.6.2 → 4.6.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.
Files changed (2) hide show
  1. package/README.md +79 -11
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -46,6 +46,37 @@ pnpm install --save sql.js
46
46
  npx cap sync
47
47
  ```
48
48
 
49
+ then add plugin to main `capacitor.config.json` file:
50
+
51
+ ```json
52
+ {
53
+ "appId": "com.example.app",
54
+ "appName": "cap",
55
+ "webDir": "dist",
56
+ "bundledWebRuntime": false,
57
+ "plugins": {
58
+ "CapacitorSQLite": {
59
+ "iosDatabaseLocation": "Library/CapacitorDatabase",
60
+ "iosIsEncryption": false,
61
+ "iosKeychainPrefix": "cap",
62
+ "iosBiometric": {
63
+ "biometricAuth": false,
64
+ "biometricTitle" : "Biometric login for capacitor sqlite"
65
+ },
66
+ "androidIsEncryption": false,
67
+ "androidBiometric": {
68
+ "biometricAuth" : false,
69
+ "biometricTitle" : "Biometric login for capacitor sqlite",
70
+ "biometricSubTitle" : "Log in using your biometric"
71
+ },
72
+ "electronWindowsLocation": "C:\\ProgramData\\CapacitorDatabases",
73
+ "electronMacLocation": "YOUR_VOLUME/CapacitorDatabases",
74
+ "electronLinuxLocation": "Databases"
75
+ }
76
+ }
77
+ }
78
+ ```
79
+
49
80
  ## More Reading:
50
81
 
51
82
  - [Releases](https://github.com/capacitor-community/sqlite/blob/master/info_releases.md)
@@ -74,16 +105,52 @@ You'll need the usual capacitor/android/react npm script to build and copy the a
74
105
 
75
106
  ## Android Quirks
76
107
 
77
- In case you get the following error when building your app in Android Studio:
78
- `x files found with path 'build-data.properties'.`
79
- You can you add the following code to `app/build.gradle`:
80
- ```
81
- packagingOptions {
82
- exclude 'build-data.properties'
83
- }
84
- ```
85
- See [#301](https://github.com/capacitor-community/sqlite/issues/301) and [SO question](https://stackoverflow.com/questions/63291529/how-to-fix-more-than-one-file-was-found-with-os-independent-path-build-data-pro) for more information.
86
-
108
+ - In case you get the following error when building your app in Android Studio:
109
+ `x files found with path 'build-data.properties'.`
110
+ You can you add the following code to `app/build.gradle`:
111
+ ```
112
+ packagingOptions {
113
+ exclude 'build-data.properties'
114
+ }
115
+ ```
116
+ See [#301](https://github.com/capacitor-community/sqlite/issues/301) and [SO question](https://stackoverflow.com/questions/63291529/how-to-fix-more-than-one-file-was-found-with-os-independent-path-build-data-pro) for more information.
117
+
118
+ - Check/Add the following:
119
+ Gradle JDK version 11
120
+ Android Gradle Plugin Version 7.2.2
121
+ In variables.gradle
122
+
123
+ ```
124
+ minSdkVersion = 22
125
+ compileSdkVersion = 33
126
+ targetSdkVersion = 33
127
+ ```
128
+ In AndroidManifest.xml
129
+ ```
130
+ <application
131
+ android:allowBackup="false"
132
+ android:fullBackupContent="false"
133
+ android:dataExtractionRules="@xml/data_extraction_rules"
134
+ ```
135
+ In res/xml create a file `data_extraction_rules.xml` containing:
136
+ ```
137
+ <?xml version="1.0" encoding="utf-8"?>
138
+ <data-extraction-rules>
139
+ <cloud-backup>
140
+ <exclude domain="root" />
141
+ <exclude domain="database" />
142
+ <exclude domain="sharedpref" />
143
+ <exclude domain="external" />
144
+ </cloud-backup>
145
+ <device-transfer>
146
+ <exclude domain="root" />
147
+ <exclude domain="database" />
148
+ <exclude domain="sharedpref" />
149
+ <exclude domain="external" />
150
+ </device-transfer>
151
+ </data-extraction-rules>
152
+ ```
153
+
87
154
  ## Electron Quirks
88
155
 
89
156
  - On Electron, go to the Electron folder of YOUR_APPLICATION
@@ -221,7 +288,7 @@ npm install --save-dev @types/sqlite3
221
288
 
222
289
  ### Vue+Vite
223
290
 
224
- - [vue-vite-sqlite-app](https://github.com/jepiqueau/vuevite-app)
291
+ - [vite-vue-sqlite-app](https://github.com/jepiqueau/vite-vue-sqlite-app)
225
292
 
226
293
  ### Vue TypeORM app
227
294
 
@@ -276,6 +343,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
276
343
  <a href="https://github.com/TheNovemberRain" title="TheNovemberRain"><img src="https://github.com/TheNovemberRain.png?size=100" width="50" height="50" /></a>
277
344
  <a href="https://github.com/fizdalf" title="fizdalf"><img src="https://github.com/fizdalf.png?size=100" width="50" height="50" /></a>
278
345
  <a href="https://github.com/Micha-Richter" title="Micha-Richter"><img src="https://github.com/Micha-Richter.png?size=100" width="50" height="50" /></a>
346
+ <a href="https://github.com/ws-rush" title="ws-rush"><img src="https://github.com/ws-rush.png?size=100" width="50" height="50" /></a>
279
347
  </p>
280
348
 
281
349
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/sqlite",
3
- "version": "4.6.2",
3
+ "version": "4.6.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",
@@ -56,10 +56,11 @@
56
56
  "prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
57
57
  },
58
58
  "devDependencies": {
59
- "@capacitor/android": "^4.6.2",
60
- "@capacitor/core": "^4.6.2",
59
+ "@capacitor/android": "^4.6.3",
60
+ "@capacitor/cli": "^4.6.3",
61
+ "@capacitor/core": "^4.6.3",
61
62
  "@capacitor/docgen": "^0.0.17",
62
- "@capacitor/ios": "^4.6.2",
63
+ "@capacitor/ios": "^4.6.3",
63
64
  "@ionic/eslint-config": "^0.3.0",
64
65
  "@ionic/prettier-config": "^1.0.1",
65
66
  "@ionic/swiftlint-config": "^1.1.2",