Skip to content

Commit

Permalink
rename plugin to cordova-plugin-ionic-migrate-ios-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe committed Dec 9, 2019
1 parent 0fd2c32 commit cbc3f53
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `cordova-plugin-ionic-migrate-storage`
# `cordova-plugin-ionic-migrate-ios-storage`

> Cordova plugin that migrates localStorage data from [email protected] to [email protected] and above. This works for iOS only!
Expand All @@ -7,11 +7,11 @@
Straight forward, just via `cordova plugin add`.

```
cordova plugin add --save @kassamina/[email protected].5
cordova plugin add --save cordova-plugin-ionic-migrate-ios-[email protected].6
```

This work is forked from https://github.com/pointmanhq/cordova-plugin-ionic-migrate-storage, which migrates IndexedDB, LocalStorage, and WebSQL from cordova's default UIWebView to cordova-plugin-ionic-webview. We needed to migrate not from the default UIWebView, but from [email protected] to [email protected], and only localStorage was needed, so IndexedDB and WebSQL support were removed and the migration locations were made configurable. Theoretically, this plugin could also be used to migrate from UIWebView to cordova-plugin-ionic-migrate-storage. The following settings are configurable (defaults listed):
This work is forked from https://github.com/pointmanhq/cordova-plugin-ionic-migrate-storage, which migrates IndexedDB, LocalStorage, and WebSQL from cordova's default UIWebView to cordova-plugin-ionic-webview. We needed to migrate not from the default UIWebView, but from [email protected] to [email protected], and only localStorage was needed, so IndexedDB and WebSQL support were removed and the migration locations were made configurable. Theoretically, this plugin could also be used to migrate from UIWebView to cordova-plugin-ionic-migrate-storage. The following settings are configurable (defaults listed):
This work is forked from https://github.com/pointmanhq/cordova-plugin-ionic-migrate-ios-storage, which migrates IndexedDB, LocalStorage, and WebSQL from cordova's default UIWebView to cordova-plugin-ionic-webview. We needed to migrate not from the default UIWebView, but from [email protected] to [email protected], and only localStorage was needed, so IndexedDB and WebSQL support were removed and the migration locations were made configurable. Theoretically, this plugin could also be used to migrate from UIWebView to cordova-plugin-ionic-migrate-ios-storage. The following settings are configurable (defaults listed):
This work is forked from https://github.com/pointmanhq/cordova-plugin-ionic-migrate-ios-storage, which migrates IndexedDB, LocalStorage, and WebSQL from cordova's default UIWebView to cordova-plugin-ionic-webview. We needed to migrate not from the default UIWebView, but from [email protected] to [email protected], and only localStorage was needed, so IndexedDB and WebSQL support were removed and the migration locations were made configurable. Theoretically, this plugin could also be used to migrate from UIWebView to cordova-plugin-ionic-migrate-ios-storage. The following settings are configurable (defaults listed):

#define DEFAULT_TARGET_HOSTNAME @"localhost"
#define DEFAULT_TARGET_SCHEME @"ionic"
Expand Down Expand Up @@ -43,14 +43,14 @@ To test this, you will have to do the following:
* Remove the webview and migrate plugins from your app:

```
cordova plugin rm --save cordova-plugin-ionic-webview @kassamina/cordova-plugin-ionic-migrate-storage
cordova plugin rm --save cordova-plugin-ionic-webview @kassamina/cordova-plugin-ionic-migrate-ios-storage
```

* Build your app and run it. Store something in localStorage, WebSQL and IndexedDB.
* Add the plugins back:

```
cordova plugin add --save [email protected] @kassamina/[email protected].5
cordova plugin add --save [email protected] cordova-plugin-ionic-migrate-ios-[email protected].6
```

* Build your app and run it. The stored data must all exist!
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@kassamina/cordova-plugin-ionic-migrate-storage",
"version": "0.3.5",
"name": "cordova-plugin-ionic-migrate-ios-storage",
"version": "0.3.6",
"cordova": {
"id": "cordova-plugin-ionic-migrate-storage",
"id": "cordova-plugin-ionic-migrate-ios-storage",
"platforms": [
"ios"
]
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-ionic-migrate-storage" version="0.3.5">
<name>cordova-plugin-ionic-migrate-storage</name>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-ionic-migrate-ios-storage" version="0.3.6">
<name>cordova-plugin-ionic-migrate-ios-storage</name>
<description>
Cordova plugin that migrates localStorage datafrom `cordova-plugin-ionic-webview` 1.x to 4.x
This works iOS only!
Expand Down

0 comments on commit cbc3f53

Please sign in to comment.