Skip to content

Commit

Permalink
Fix issue#492, updata app's links in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jepiqueau committed Dec 13, 2023
1 parent 89ffbee commit 34c57d1
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 52 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# 5.5.0 (2023-12-13)

### Chore

- Update to @capacitor/core@5.5.0
- Update to @capacitor/ios@5.5.0
- Update to @capacitor/android@5.5.0

### Bug Fixes

- Deprecate Ionic-Angular-Usage.md
- Deprecate Ionic-React-Usage.md
- Deprecate Ionic-Vue-Usage.md
- Update Application's links in Readme.md
- importFromJson on android fails to build SQL Statement with ' in values. issue#492

# 5.4.2-2 (2023-11-04)

- Add nuxt3 kysely example PR#484 from DawidWetzler
Expand Down
42 changes: 20 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default config;
- [Issues](https://github.com/capacitor-community/sqlite/issues)
- [Capacitor documentation](https://capacitorjs.com/docs/)
- [Datatypes In SQLite Version 3](https://www.sqlite.org/datatype3.html)
- [IncrementalUpgradeDatabaseVersion](https://capacitorjs.com/docs/IncrementalUpgradeDatabaseVersion.md)
- [IncrementalUpgradeDatabaseVersion](https://github.com/capacitor-community/sqlite/blob/master/docs/IncrementalUpgradeDatabaseVersion.md)


## Tutorials Blog
Expand Down Expand Up @@ -298,58 +298,56 @@ npm install --save-dev [email protected]

### Ionic/Angular

- [Ionic/Angular Usage Documentation](https://github.com/capacitor-community/sqlite/blob/master/docs/Ionic-Angular-Usage.md)
- [Web ionic7-angular-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-angular-sqlite-app) Ionic 7 Angular 16 Capacitor 5 SQLite CRUD operations for Web.

- [ionic7-angular-sqlite-starter](https://github.com/jepiqueau/ionic7-angular-sqlite-starter) Ionic 7 Angular 16 Capacitor 5 SQLite CRUD operations.
- [Native ionic7-angular-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-angular-sqlite-app) Ionic 7 Angular 16 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.

- [angular-sqlite-app-starter](https://github.com/jepiqueau/angular-sqlite-app-starter) This one is now more for testing the issues.
- [angular-sqlite-synchronize-app](https://github.com/jepiqueau/angular-sqlite-synchronize-app) (Not Updated)

- [angular-sqlite-synchronize-app](https://github.com/jepiqueau/angular-sqlite-synchronize-app)

### Ionic/Angular TypeORM app
### Ionic/Angular TypeORM app (Not Updated)

- [ionic-sqlite-typeorm-app](https://github.com/jepiqueau/ionic-sqlite-typeorm-app)

### Ionic/React

- [Ionic/React Usage Documentation](https://github.com/capacitor-community/sqlite/blob/master/docs/Ionic-React-Usage.md)

- [react-sqlite-app-starter](https://github.com/jepiqueau/react-sqlite-app-starter)
- [Web ionic7-react-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-react-sqlite-app) Ionic7 React18.2.0 Vite4.3.9 Capacitor 5 SQLite CRUD operations for Web.

### React+Vite
- [Web ionic7-react-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-react-sqlite-app) Ionic7 React18.2.0 Vite4.3.9 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.

- [react-vite-sqlite-app](https://github.com/jepiqueau/react-vite-sqlite-app)

### Ionic/React Capacitor SQLite + TypeORM Example App
### Ionic/React Capacitor SQLite + TypeORM Example App

- [capacitor-sqlite-react-typeorm-app](https://github.com/cosentino/capacitor-sqlite-react-typeorm-app)

### Ionic/Vue

- [Ionic/Vue Usage Documentation](https://github.com/capacitor-community/sqlite/blob/master/docs/Ionic-Vue-Usage.md)
- [Web ionic7-vue-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/ionic7-vue-sqlite-app) Ionic7 Vue3.2.45 Vite4.3.9 Capacitor 5 SQLite CRUD operations for Web.

- [vue-sqlite-app-starter](https://github.com/jepiqueau/vue-sqlite-app-starter)
- [Web ionic7-vue-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/ionic7-vue-sqlite-app) Ionic7 Vue3.2.45 Vite4.3.9 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.

### Vue
### Vue (Not Updated)

- [vue-sqlite-app](https://github.com/jepiqueau/vue-sqlite-app)

### Vue+Vite

- [vite-vue-sqlite-app](https://github.com/jepiqueau/vite-vue-sqlite-app)

### Vue TypeORM app
### Vue TypeORM app (Not Updated)

- [vue-typeorm-app](https://github.com/jepiqueau/vue-typeorm-app)

### SolidJS+Vite
### SolidJS+Vite (Not Updated)

- [solidjs-vite-sqlite-app](https://github.com/jepiqueau/capacitor-solid-sqlite)

### Nuxt3 + Kysely

- [nuxt3-capacitor-sqlite-kysely-example](https://github.com/DawidWetzler/nuxt3-capacitor-sqlite-kysely-example)

### Quasar

- [Web quasar-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-1/quasar-sqlite-app) Quasar2.6.0 Capacitor 5 SQLite CRUD operations for Web.

- [Web quasar-sqlite-app](https://github.com/jepiqueau/blog-tutorials-apps/tree/main/SQLite/Part-2/quasar-sqlite-app) Quasar2.6.0 Capacitor 5 SQLite CRUD operations for iOS, Android and Electron.


## Dependencies

The iOS and Android codes are using `SQLCipher` allowing for database encryption.
Expand Down
Binary file modified android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ private JSONObject generateInsertAndDeletedStrings(ArrayList<String> tColNames,
String formattedRow = null;
formattedRow = String.join(", ", rowIndex.stream().map(item -> {
if (item instanceof String) {
return "'" + item + "'";
StringBuilder formattedValue = new StringBuilder();
formattedValue.append('"').append(item).append('"');
return formattedValue.toString();
} else {
return item.toString();
}
Expand All @@ -472,7 +474,7 @@ private JSONObject generateInsertAndDeletedStrings(ArrayList<String> tColNames,
}
Object item = rowIndex.get(i);
if (item instanceof String) {
formattedRow.append("'").append(item).append("'");
formattedRow.append('"').append(item).append('"');
} else {
formattedRow.append(item);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void moveDatabasesAndAddSuffix(Context context, String folderPath, ArrayL
toFile = file.replace(".db", "SQLite.db");
}
}
if (toFile.length() > 0) {
if (toFile.length() > 0) {
boolean ret = new File(pathFiles, fromFile).renameTo(new File(pathDB, toFile));
if (!ret) {
String msg = "Failed in move " + fromFile + " to " + file;
Expand Down
5 changes: 5 additions & 0 deletions docs/Ionic-Angular-Usage.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>
<h2 align="center">IONIC/ANGULAR USAGE DOCUMENTATION</h2>
<h2 align="center" style="color: red;">DEPRECATED</h2>
<a href="https://jepiqueau.github.io/">
<p align="center"><strong><code>Visit Tutorials https://jepiqueau.github.io/</code></strong></p>
</a>
<p align="center"><strong><code>@capacitor-community/sqlite</code></strong></p>
<p align="center">
In Ionic/Angular Applications, the <code>@capacitor-community/sqlite</code> can be accessed through a Singleton Service initialized in the <code>app.component.ts</code></p>
<br>


## Angular Singleton Service

- [`Singleton Service Definition`](#singleton-service-definition)
Expand Down
4 changes: 4 additions & 0 deletions docs/Ionic-React-Usage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>
<h2 align="center">IONIC/REACT USAGE DOCUMENTATION</h2>
<h2 align="center" style="color: red;">DEPRECATED</h2>
<a href="https://jepiqueau.github.io/">
<p align="center"><strong><code>Visit Tutorials https://jepiqueau.github.io/</code></strong></p>
</a>
<p align="center"><strong><code>@capacitor-community/sqlite@latest</code></strong></p>
<p align="center">
In Ionic/React Applications, the <code>@capacitor-community/sqlite@latest</code> can be accessed through a Singleton React Hook initialized in the <code>App.tsx</code> component</p>
Expand Down
4 changes: 4 additions & 0 deletions docs/Ionic-Vue-Usage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>
<h2 align="center">IONIC/Vue USAGE DOCUMENTATION</h2>
<h2 align="center" style="color: red;">DEPRECATED</h2>
<a href="https://jepiqueau.github.io/">
<p align="center"><strong><code>Visit Tutorials https://jepiqueau.github.io/</code></strong></p>
</a>
<p align="center"><strong><code>@capacitor-community/sqlite@latest</code></strong></p>
<p align="center" style="font-size:50px;color:red"><strong>CAPACITOR 3</strong></p><br>
<p align="center">
Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
"prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
},
"devDependencies": {
"@capacitor/android": "^5.4.2",
"@capacitor/cli": "^5.4.2",
"@capacitor/core": "^5.4.2",
"@capacitor/android": "^5.5.0",
"@capacitor/cli": "^5.5.0",
"@capacitor/core": "^5.5.0",
"@capacitor/docgen": "^0.0.17",
"@capacitor/ios": "^5.4.2",
"@capacitor/ios": "^5.5.0",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^1.0.1",
"@ionic/swiftlint-config": "^1.1.2",
Expand Down Expand Up @@ -97,6 +97,6 @@
}
},
"dependencies": {
"jeep-sqlite": "^2.5.3"
"jeep-sqlite": "^2.5.4"
}
}

0 comments on commit 34c57d1

Please sign in to comment.