@capacitor-community/sqlite
Advanced tools
Comparing version 2.4.0 to 2.4.1-1
@@ -1,3 +0,11 @@ | ||
## 2.4.0-beta.3 (2020-08-07) | ||
## 2.4.1-1 (2020-09-22) | ||
### Bug Fixes | ||
- Fix Better permission request on Android issue#40 | ||
- Update APIdocumentation.md, .gitignore & .npmignore | ||
- Fix bug in setSyncDate iOS & electron | ||
## 2.4.0 (2020-08-07) | ||
### Chores | ||
@@ -4,0 +12,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { Plugin } from '@capacitor/core/dist/esm/definitions'; | ||
declare module '@capacitor/core' { | ||
@@ -6,3 +7,3 @@ interface PluginRegistry { | ||
} | ||
export interface CapacitorSQLitePlugin { | ||
export interface CapacitorSQLitePlugin extends Plugin { | ||
echo(options: { | ||
@@ -9,0 +10,0 @@ value: string; |
@@ -9,3 +9,3 @@ import { JsonSQLite } from './JsonUtils'; | ||
createSyncTable(): Promise<any>; | ||
setSyncDate(syncDate: string): Promise<boolean>; | ||
setSyncDate(syncDate: string): Promise<any>; | ||
close(databaseName: string): Promise<boolean>; | ||
@@ -12,0 +12,0 @@ exec(statements: string): Promise<any>; |
{ | ||
"name": "@capacitor-community/sqlite", | ||
"version": "2.4.0", | ||
"version": "2.4.1-1", | ||
"description": "Capacitor SQLite Plugin", | ||
@@ -31,3 +31,3 @@ "homepage": "https://github.com/capacitor-community/sqlite", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-java": "^0.8.0", | ||
"prettier-plugin-java": "^0.8.1", | ||
"pretty-quick": "^2.0.1", | ||
@@ -34,0 +34,0 @@ "rimraf": "^3.0.0", |
@@ -306,2 +306,29 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
On android, you must request permissions to read and write in storage : | ||
```ts | ||
export class MyPage { | ||
_sqlite: any; | ||
... | ||
async ngAfterViewInit()() { | ||
const info = await Device.getInfo(); | ||
if (info.platform === "android") { | ||
this._sqlite = CapacitorSQLite; | ||
try { | ||
// Show request popup | ||
await this._sqlite.requestPermissions(); | ||
} catch (e) { | ||
// Permissions declined | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
## Dependencies | ||
@@ -322,2 +349,3 @@ | ||
<td align="center"><a href="https://github.com/jepiqueau"><img src="https://avatars3.githubusercontent.com/u/16580653?v=4" width="100px;" alt=""/><br /><sub><b>Jean Pierre Quéau</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/paulantoine2"><img src="https://avatars0.githubusercontent.com/u/22882943?s=64&v=4" width="100px;" alt=""/><br /><sub><b>Paul Antoine</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Code">💻</a></td> | ||
</tr> | ||
@@ -324,0 +352,0 @@ </table> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11250620
3344
358
1