Skip to content

Commit

Permalink
#1698 - Migrate to Capacitor - Added sqlite-ext plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jul 20, 2022
1 parent ea921d3 commit d5411e0
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
4 changes: 4 additions & 0 deletions IsraelHiking.Web/android/app/src/main/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
<param name="android-package" value="cc.fovea.PurchasePlugin"/>
</feature>

<feature name="SQLitePlugin">
<param name="android-package" value="io.sqlc.SQLitePlugin"/>
</feature>


</widget>
4 changes: 4 additions & 0 deletions IsraelHiking.Web/ios/App/App/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
<param name="onload" value="true"/>
</feature>

<feature name="SQLitePlugin">
<param name="ios-package" value="SQLitePlugin"/>
</feature>


</widget>
27 changes: 27 additions & 0 deletions IsraelHiking.Web/package-lock.json

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

1 change: 1 addition & 0 deletions IsraelHiking.Web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"broadcast-channel": "^4.8.0",
"cordova-android": "^10.1.1",
"cordova-plugin-purchase": "^11.0.0",
"cordova-sqlite-ext": "^6.0.0",
"core-js": "^3.18.1",
"d3-regression": "^1.3.9",
"deepmerge": "4.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class DatabaseService {
arrayMerge: (destinationArray, sourceArray) => sourceArray == null ? destinationArray : sourceArray
});
storedState.inMemoryState = initialState.inMemoryState;
if (!this.runningContext.isCordova) {
if (!this.runningContext.isCapacitor) {
storedState.routes = initialState.routes;
storedState.poiState = initialState.poiState;
storedState.gpsState = initialState.gpsState;
Expand Down

0 comments on commit d5411e0

Please sign in to comment.