forked from styleseat/cordova-plugin-ionic-migrate-storage
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename plugin to cordova-plugin-ionic-migrate-ios-storage
- Loading branch information
Zoe
committed
Dec 9, 2019
1 parent
0fd2c32
commit cbc3f53
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | ||
|
@@ -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" | ||
|
@@ -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! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters