├── .gitignore
├── README.md
├── demo
├── .editorconfig
├── .gitignore
├── LICENSE
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-1024.png
│ │ │ │ ├── icon-20.png
│ │ │ │ ├── icon-20@2x.png
│ │ │ │ ├── icon-20@3x.png
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-50.png
│ │ │ │ ├── icon-50@2x.png
│ │ │ │ ├── icon-57.png
│ │ │ │ ├── icon-57@2x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-72.png
│ │ │ │ ├── icon-72@2x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-1125h.png
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.png
│ │ │ │ ├── Default-Landscape-X.png
│ │ │ │ ├── Default-Landscape-XR.png
│ │ │ │ ├── Default-Landscape-XS-Max.png
│ │ │ │ ├── Default-Landscape.png
│ │ │ │ ├── Default-Landscape@2x.png
│ │ │ │ ├── Default-Landscape@3x.png
│ │ │ │ ├── Default-Portrait-XR.png
│ │ │ │ ├── Default-Portrait-XS-Max.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ └── Default@2x.png
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ ├── LaunchScreen-AspectFill@2x.png
│ │ │ │ └── LaunchScreen-AspectFill@3x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ ├── LaunchScreen-Center@2x.png
│ │ │ │ └── LaunchScreen-Center@3x.png
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── app-root.xml
│ ├── app.css
│ ├── app.js
│ ├── main-page.js
│ ├── main-page.xml
│ ├── main-view-model.js
│ ├── package.json
│ └── references.d.ts
├── jsconfig.json
├── nsconfig.json
├── package.json
└── webpack.config.js
├── docs
└── localstorage.gif
└── src
├── .npmignore
├── LICENSE
├── README.md
├── changelog
├── localstorage.js
├── package.json
├── postinstall.js
└── unmaintained.svg
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vscode/
3 | .tscache/
4 | /demo/node_modules/
5 | /demo/platforms/
6 | /demo/hooks/
7 | node_modules/
8 | .settings/
9 |
10 | .DS_Store
11 | *.js.map
12 | *.tar
13 | *.tgz
14 | *.gz
15 | *.zip
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # NativeScript-LocalStorage
2 |
3 | This plugin is no longer being maintained in this repo! It has moved to a new home.
4 |
5 |

6 |
7 |
--------------------------------------------------------------------------------
/demo/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | end_of_line = lf
5 | insert_final_newline = true
6 | trim_trailing_whitespace = true
7 | charset = utf-8
8 |
9 | [*.json]
10 | indent_style = space
11 | indent_size = 2
12 |
13 | [*.js]
14 | indent_style = space
15 | indent_size = 4
16 |
--------------------------------------------------------------------------------
/demo/.gitignore:
--------------------------------------------------------------------------------
1 | # NativeScript
2 | hooks/
3 | node_modules/
4 | platforms/
5 |
6 | # NativeScript Template
7 | *.js.map
8 |
9 | # Logs
10 | logs
11 | *.log
12 | npm-debug.log*
13 | yarn-debug.log*
14 | yarn-error.log*
15 |
16 | # General
17 | .DS_Store
18 | .AppleDouble
19 | .LSOverride
20 | .idea
21 | .cloud
22 | .project
23 | tmp/
24 | typings/
25 |
26 | # Visual Studio Code
27 | .vscode/*
28 | !.vscode/settings.json
29 | !.vscode/tasks.json
30 | !.vscode/launch.json
31 | !.vscode/extensions.json
32 |
33 | package-lock.json
--------------------------------------------------------------------------------
/demo/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright (c) 2015-2019 Progress Software Corporation
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // implementation 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | // If you want to add something to be applied before applying plugins' include.gradle files
9 | // e.g. project.ext.googlePlayServicesVersion = "15.0.1"
10 | // create a file named before-plugins.gradle in the current directory and place it there
11 |
12 | android {
13 | defaultConfig {
14 | minSdkVersion 17
15 | generatedDensities = []
16 | }
17 | aaptOptions {
18 | additionalParameters "--no-version-vectors"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
14 |
15 |
16 |
17 |
23 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "icon-20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "icon-20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "icon-29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "icon-29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "icon-40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "icon-40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "icon-60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "icon-60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "icon-20.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "icon-20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "icon-29.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "icon-29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "icon-40.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "icon-40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "icon-76.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "icon-76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "icon-83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "icon-1024.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "extent" : "full-screen",
5 | "idiom" : "iphone",
6 | "subtype" : "2688h",
7 | "filename" : "Default-Portrait-XS-Max.png",
8 | "minimum-system-version" : "12.0",
9 | "orientation" : "portrait",
10 | "scale" : "3x"
11 | },
12 | {
13 | "extent" : "full-screen",
14 | "idiom" : "iphone",
15 | "subtype" : "2688h",
16 | "filename" : "Default-Landscape-XS-Max.png",
17 | "minimum-system-version" : "12.0",
18 | "orientation" : "landscape",
19 | "scale" : "3x"
20 | },
21 | {
22 | "extent" : "full-screen",
23 | "idiom" : "iphone",
24 | "subtype" : "1792h",
25 | "filename" : "Default-Portrait-XR.png",
26 | "minimum-system-version" : "12.0",
27 | "orientation" : "portrait",
28 | "scale" : "2x"
29 | },
30 | {
31 | "extent" : "full-screen",
32 | "idiom" : "iphone",
33 | "subtype" : "1792h",
34 | "filename" : "Default-Landscape-XR.png",
35 | "minimum-system-version" : "12.0",
36 | "orientation" : "landscape",
37 | "scale" : "2x"
38 | },
39 | {
40 | "extent" : "full-screen",
41 | "idiom" : "iphone",
42 | "subtype" : "2436h",
43 | "filename" : "Default-1125h.png",
44 | "minimum-system-version" : "11.0",
45 | "orientation" : "portrait",
46 | "scale" : "3x"
47 | },
48 | {
49 | "extent" : "full-screen",
50 | "idiom" : "iphone",
51 | "subtype" : "2436h",
52 | "filename" : "Default-Landscape-X.png",
53 | "minimum-system-version" : "11.0",
54 | "orientation" : "landscape",
55 | "scale" : "3x"
56 | },
57 | {
58 | "extent" : "full-screen",
59 | "idiom" : "iphone",
60 | "subtype" : "736h",
61 | "filename" : "Default-736h@3x.png",
62 | "minimum-system-version" : "8.0",
63 | "orientation" : "portrait",
64 | "scale" : "3x"
65 | },
66 | {
67 | "extent" : "full-screen",
68 | "idiom" : "iphone",
69 | "subtype" : "736h",
70 | "filename" : "Default-Landscape@3x.png",
71 | "minimum-system-version" : "8.0",
72 | "orientation" : "landscape",
73 | "scale" : "3x"
74 | },
75 | {
76 | "extent" : "full-screen",
77 | "idiom" : "iphone",
78 | "subtype" : "667h",
79 | "filename" : "Default-667h@2x.png",
80 | "minimum-system-version" : "8.0",
81 | "orientation" : "portrait",
82 | "scale" : "2x"
83 | },
84 | {
85 | "orientation" : "portrait",
86 | "idiom" : "iphone",
87 | "filename" : "Default@2x.png",
88 | "extent" : "full-screen",
89 | "minimum-system-version" : "7.0",
90 | "scale" : "2x"
91 | },
92 | {
93 | "extent" : "full-screen",
94 | "idiom" : "iphone",
95 | "subtype" : "retina4",
96 | "filename" : "Default-568h@2x.png",
97 | "minimum-system-version" : "7.0",
98 | "orientation" : "portrait",
99 | "scale" : "2x"
100 | },
101 | {
102 | "orientation" : "portrait",
103 | "idiom" : "ipad",
104 | "filename" : "Default-Portrait.png",
105 | "extent" : "full-screen",
106 | "minimum-system-version" : "7.0",
107 | "scale" : "1x"
108 | },
109 | {
110 | "orientation" : "landscape",
111 | "idiom" : "ipad",
112 | "filename" : "Default-Landscape.png",
113 | "extent" : "full-screen",
114 | "minimum-system-version" : "7.0",
115 | "scale" : "1x"
116 | },
117 | {
118 | "orientation" : "portrait",
119 | "idiom" : "ipad",
120 | "filename" : "Default-Portrait@2x.png",
121 | "extent" : "full-screen",
122 | "minimum-system-version" : "7.0",
123 | "scale" : "2x"
124 | },
125 | {
126 | "orientation" : "landscape",
127 | "idiom" : "ipad",
128 | "filename" : "Default-Landscape@2x.png",
129 | "extent" : "full-screen",
130 | "minimum-system-version" : "7.0",
131 | "scale" : "2x"
132 | },
133 | {
134 | "orientation" : "portrait",
135 | "idiom" : "iphone",
136 | "filename" : "Default.png",
137 | "extent" : "full-screen",
138 | "scale" : "1x"
139 | },
140 | {
141 | "orientation" : "portrait",
142 | "idiom" : "iphone",
143 | "filename" : "Default@2x.png",
144 | "extent" : "full-screen",
145 | "scale" : "2x"
146 | },
147 | {
148 | "orientation" : "portrait",
149 | "idiom" : "iphone",
150 | "filename" : "Default-568h@2x.png",
151 | "extent" : "full-screen",
152 | "subtype" : "retina4",
153 | "scale" : "2x"
154 | },
155 | {
156 | "orientation" : "portrait",
157 | "idiom" : "ipad",
158 | "extent" : "to-status-bar",
159 | "scale" : "1x"
160 | },
161 | {
162 | "orientation" : "portrait",
163 | "idiom" : "ipad",
164 | "filename" : "Default-Portrait.png",
165 | "extent" : "full-screen",
166 | "scale" : "1x"
167 | },
168 | {
169 | "orientation" : "landscape",
170 | "idiom" : "ipad",
171 | "extent" : "to-status-bar",
172 | "scale" : "1x"
173 | },
174 | {
175 | "orientation" : "landscape",
176 | "idiom" : "ipad",
177 | "filename" : "Default-Landscape.png",
178 | "extent" : "full-screen",
179 | "scale" : "1x"
180 | },
181 | {
182 | "orientation" : "portrait",
183 | "idiom" : "ipad",
184 | "extent" : "to-status-bar",
185 | "scale" : "2x"
186 | },
187 | {
188 | "orientation" : "portrait",
189 | "idiom" : "ipad",
190 | "filename" : "Default-Portrait@2x.png",
191 | "extent" : "full-screen",
192 | "scale" : "2x"
193 | },
194 | {
195 | "orientation" : "landscape",
196 | "idiom" : "ipad",
197 | "extent" : "to-status-bar",
198 | "scale" : "2x"
199 | },
200 | {
201 | "orientation" : "landscape",
202 | "idiom" : "ipad",
203 | "filename" : "Default-Landscape@2x.png",
204 | "extent" : "full-screen",
205 | "scale" : "2x"
206 | }
207 | ],
208 | "info" : {
209 | "version" : 1,
210 | "author" : "xcode"
211 | }
212 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScreen-AspectFill@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScreen-Center@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
8 |
--------------------------------------------------------------------------------
/demo/app/app-root.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/demo/app/app.css:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.css file is where you place CSS rules that
3 | you would like to apply to your entire application. Check out
4 | http://docs.nativescript.org/ui/styling for a full list of the CSS
5 | selectors and properties you can use to style UI components.
6 |
7 | /*
8 | In many cases you may want to use the NativeScript core theme instead
9 | of writing your own CSS rules. For a full list of class names in the theme
10 | refer to http://docs.nativescript.org/ui/theme.
11 | The imported CSS rules must precede all other types of rules.
12 | */
13 | @import '~nativescript-theme-core/css/core.light.css';
14 |
15 | /*
16 | The following CSS rule changes the font size of all UI
17 | components that have the btn class name.
18 | */
19 | .btn {
20 | font-size: 18;
21 | }
22 |
--------------------------------------------------------------------------------
/demo/app/app.js:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.js file is the entry point to your application.
3 | You can use this file to perform app-level initialization, but the primary
4 | purpose of the file is to pass control to the app’s first module.
5 | */
6 |
7 | const application = require("tns-core-modules/application");
8 |
9 | application.run({ moduleName: "app-root" });
10 |
11 | /*
12 | Do not place any code after the application has been started as it will not
13 | be executed on iOS.
14 | */
15 |
--------------------------------------------------------------------------------
/demo/app/main-page.js:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, a file with the same name as an XML file is known as
3 | a code-behind file. The code-behind is a great place to place your view
4 | logic, and to set up your page’s data binding.
5 | */
6 |
7 | /*
8 | NativeScript adheres to the CommonJS specification for dealing with
9 | JavaScript modules. The CommonJS require() function is how you import
10 | JavaScript modules defined in other files.
11 | */
12 | var createViewModel = require("./main-view-model").createViewModel;
13 | require("nativescript-localstorage");
14 | console.log("MainPAge3");
15 |
16 | function onNavigatingTo(args) {
17 | /*
18 | This gets a reference this page’s UI component. You can
19 | view the API reference of the Page to see what’s available at
20 | https://docs.nativescript.org/api-reference/classes/_ui_page_.page.html
21 | */
22 | var page = args.object;
23 |
24 | /*
25 | A page’s bindingContext is an object that should be used to perform
26 | data binding between XML markup and JavaScript code. Properties
27 | on the bindingContext can be accessed using the {{ }} syntax in XML.
28 | In this example, the {{ message }} and {{ onTap }} bindings are resolved
29 | against the object returned by createViewModel().
30 |
31 | You can learn more about data binding in NativeScript at
32 | https://docs.nativescript.org/core-concepts/data-binding.
33 | */
34 | page.bindingContext = createViewModel();
35 | }
36 |
37 | /*
38 | Exporting a function in a NativeScript code-behind file makes it accessible
39 | to the file’s corresponding XML file. In this case, exporting the onNavigatingTo
40 | function here makes the navigatingTo="onNavigatingTo" binding in this page’s XML
41 | file work.
42 | */
43 | exports.onNavigatingTo = onNavigatingTo;
--------------------------------------------------------------------------------
/demo/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/demo/app/main-view-model.js:
--------------------------------------------------------------------------------
1 | var Observable = require("data/observable").Observable;
2 |
3 | function getMessage(counter) {
4 | if (counter <= 0) {
5 | localStorage.clear();
6 | //console.log("Length", localStorage.length);
7 | return "Hoorraaay! You unlocked the NativeScript clicker achievement!";
8 | } else {
9 | console.log("Length", localStorage.length);
10 | return counter + " taps left";
11 | }
12 | }
13 |
14 | function createViewModel() {
15 | var viewModel = new Observable();
16 | var test = localStorage.getItem("test");
17 | console.log("Test", test);
18 |
19 | localStorage.setItemObject("test", {a: 1, b: 2});
20 | var test = localStorage.getItem("test");
21 | console.log("Test2", test);
22 | viewModel.counter = localStorage.getItem("counter") || 42;
23 | viewModel.message = getMessage(viewModel.counter);
24 |
25 | viewModel.onTap = function() {
26 | this.counter--;
27 | localStorage.setItem("counter", this.counter);
28 | this.set("message", getMessage(this.counter));
29 | }
30 |
31 | return viewModel;
32 | }
33 |
34 | exports.createViewModel = createViewModel;
--------------------------------------------------------------------------------
/demo/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "app.js",
3 | "android": {
4 | "v8Flags": "--expose_gc"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/demo/app/references.d.ts:
--------------------------------------------------------------------------------
1 | /// Enable smart suggestions and completions in Visual Studio Code JavaScript projects.
2 |
--------------------------------------------------------------------------------
/demo/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": "./",
4 | "paths": {
5 | "*": ["./node_modules/tns-core-modules/*", "./node_modules/*"],
6 | "~/*": ["app/*"]
7 | }
8 | },
9 | "include": ["app/**/*"]
10 | }
11 |
--------------------------------------------------------------------------------
/demo/nsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "useLegacyWorkflow": false
3 | }
4 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "org.nativescript.demo",
4 | "tns-android": {
5 | "version": "5.4.0"
6 | },
7 | "tns-ios": {
8 | "version": "5.4.2"
9 | }
10 | },
11 | "description": "NativeScript Application",
12 | "license": "SEE LICENSE IN ",
13 | "repository": "",
14 | "dependencies": {
15 | "nativescript-localstorage": "file:../src",
16 | "nativescript-theme-core": "~1.0.4",
17 | "tns-core-modules": "~5.4.0"
18 | },
19 | "devDependencies": {
20 | "nativescript-dev-webpack": "~0.24.0"
21 | },
22 | "gitHead": "8c1a4866a66daab09bf5ef8e5a96472687192373",
23 | "readme": "NativeScript Application"
24 | }
25 |
--------------------------------------------------------------------------------
/demo/webpack.config.js:
--------------------------------------------------------------------------------
1 | const { join, relative, resolve, sep } = require("path");
2 |
3 | const webpack = require("webpack");
4 | const nsWebpack = require("nativescript-dev-webpack");
5 | const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target");
6 | const CleanWebpackPlugin = require("clean-webpack-plugin");
7 | const CopyWebpackPlugin = require("copy-webpack-plugin");
8 | const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
9 | const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin");
10 | const TerserPlugin = require("terser-webpack-plugin");
11 | const hashSalt = Date.now().toString();
12 |
13 | module.exports = env => {
14 | // Add your custom Activities, Services and other android app components here.
15 | const appComponents = [
16 | "tns-core-modules/ui/frame",
17 | "tns-core-modules/ui/frame/activity",
18 | ];
19 |
20 | const platform = env && (env.android && "android" || env.ios && "ios");
21 | if (!platform) {
22 | throw new Error("You need to provide a target platform!");
23 | }
24 |
25 | const platforms = ["ios", "android"];
26 | const projectRoot = __dirname;
27 |
28 | // Default destination inside platforms//...
29 | const dist = resolve(projectRoot, nsWebpack.getAppPath(platform, projectRoot));
30 | const appResourcesPlatformDir = platform === "android" ? "Android" : "iOS";
31 |
32 | const {
33 | // The 'appPath' and 'appResourcesPath' values are fetched from
34 | // the nsconfig.json configuration file
35 | // when bundling with `tns run android|ios --bundle`.
36 | appPath = "app",
37 | appResourcesPath = "app/App_Resources",
38 |
39 | // You can provide the following flags when running 'tns run android|ios'
40 | snapshot, // --env.snapshot
41 | uglify, // --env.uglify
42 | report, // --env.report
43 | sourceMap, // --env.sourceMap
44 | hiddenSourceMap, // --env.hiddenSourceMap
45 | hmr, // --env.hmr,
46 | unitTesting, // --env.unitTesting
47 | } = env;
48 |
49 | const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap;
50 | const externals = nsWebpack.getConvertedExternals(env.externals);
51 | const appFullPath = resolve(projectRoot, appPath);
52 | const appResourcesFullPath = resolve(projectRoot, appResourcesPath);
53 |
54 | const entryModule = nsWebpack.getEntryModule(appFullPath, platform);
55 | const entryPath = `.${sep}${entryModule}.js`;
56 | const entries = { bundle: entryPath };
57 | if (platform === "ios") {
58 | entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js";
59 | };
60 |
61 | let sourceMapFilename = nsWebpack.getSourceMapFilename(hiddenSourceMap, __dirname, dist);
62 |
63 | const config = {
64 | mode: uglify ? "production" : "development",
65 | context: appFullPath,
66 | externals,
67 | watchOptions: {
68 | ignored: [
69 | appResourcesFullPath,
70 | // Don't watch hidden files
71 | "**/.*",
72 | ]
73 | },
74 | target: nativescriptTarget,
75 | entry: entries,
76 | output: {
77 | pathinfo: false,
78 | path: dist,
79 | sourceMapFilename,
80 | libraryTarget: "commonjs2",
81 | filename: "[name].js",
82 | globalObject: "global",
83 | hashSalt
84 | },
85 | resolve: {
86 | extensions: [".js", ".scss", ".css"],
87 | // Resolve {N} system modules from tns-core-modules
88 | modules: [
89 | "node_modules/tns-core-modules",
90 | "node_modules",
91 | ],
92 | alias: {
93 | '~': appFullPath
94 | },
95 | // don't resolve symlinks to symlinked modules
96 | symlinks: false
97 | },
98 | resolveLoader: {
99 | // don't resolve symlinks to symlinked loaders
100 | symlinks: false
101 | },
102 | node: {
103 | // Disable node shims that conflict with NativeScript
104 | "http": false,
105 | "timers": false,
106 | "setImmediate": false,
107 | "fs": "empty",
108 | "__dirname": false,
109 | },
110 | devtool: hiddenSourceMap ? "hidden-source-map" : (sourceMap ? "inline-source-map" : "none"),
111 | optimization: {
112 | runtimeChunk: "single",
113 | splitChunks: {
114 | cacheGroups: {
115 | vendor: {
116 | name: "vendor",
117 | chunks: "all",
118 | test: (module, chunks) => {
119 | const moduleName = module.nameForCondition ? module.nameForCondition() : '';
120 | return /[\\/]node_modules[\\/]/.test(moduleName) ||
121 | appComponents.some(comp => comp === moduleName);
122 |
123 | },
124 | enforce: true,
125 | },
126 | }
127 | },
128 | minimize: !!uglify,
129 | minimizer: [
130 | new TerserPlugin({
131 | parallel: true,
132 | cache: true,
133 | sourceMap: isAnySourceMapEnabled,
134 | terserOptions: {
135 | output: {
136 | comments: false,
137 | semicolons: !isAnySourceMapEnabled
138 | },
139 | compress: {
140 | // The Android SBG has problems parsing the output
141 | // when these options are enabled
142 | 'collapse_vars': platform !== "android",
143 | sequences: platform !== "android",
144 | }
145 | }
146 | })
147 | ],
148 | },
149 | module: {
150 | rules: [
151 | {
152 | test: nsWebpack.getEntryPathRegExp(appFullPath, entryPath),
153 | use: [
154 | // Require all Android app components
155 | platform === "android" && {
156 | loader: "nativescript-dev-webpack/android-app-components-loader",
157 | options: { modules: appComponents }
158 | },
159 |
160 | {
161 | loader: "nativescript-dev-webpack/bundle-config-loader",
162 | options: {
163 | loadCss: !snapshot, // load the application css if in debug mode
164 | unitTesting,
165 | appFullPath,
166 | projectRoot,
167 | }
168 | },
169 | ].filter(loader => !!loader)
170 | },
171 |
172 | {
173 | test: /-page\.js$/,
174 | use: "nativescript-dev-webpack/script-hot-loader"
175 | },
176 |
177 | {
178 | test: /\.(css|scss)$/,
179 | use: "nativescript-dev-webpack/style-hot-loader"
180 | },
181 |
182 | {
183 | test: /\.(html|xml)$/,
184 | use: "nativescript-dev-webpack/markup-hot-loader"
185 | },
186 |
187 | { test: /\.(html|xml)$/, use: "nativescript-dev-webpack/xml-namespace-loader" },
188 |
189 | {
190 | test: /\.css$/,
191 | use: { loader: "css-loader", options: { url: false } }
192 | },
193 |
194 | {
195 | test: /\.scss$/,
196 | use: [
197 | { loader: "css-loader", options: { url: false } },
198 | "sass-loader"
199 | ]
200 | },
201 | ]
202 | },
203 | plugins: [
204 | // Define useful constants like TNS_WEBPACK
205 | new webpack.DefinePlugin({
206 | "global.TNS_WEBPACK": "true",
207 | "process": undefined,
208 | }),
209 | // Remove all files from the out dir.
210 | new CleanWebpackPlugin([`${dist}/**/*`]),
211 | // Copy assets to out dir. Add your own globs as needed.
212 | new CopyWebpackPlugin([
213 | { from: { glob: "fonts/**" } },
214 | { from: { glob: "**/*.jpg" } },
215 | { from: { glob: "**/*.png" } },
216 | ], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }),
217 | // Generate a bundle starter script and activate it in package.json
218 | new nsWebpack.GenerateBundleStarterPlugin(
219 | // Don't include `runtime.js` when creating a snapshot. The plugin
220 | // configures the WebPack runtime to be generated inside the snapshot
221 | // module and no `runtime.js` module exist.
222 | (snapshot ? [] : ["./runtime"])
223 | .concat([
224 | "./vendor",
225 | "./bundle",
226 | ])
227 | ),
228 | // For instructions on how to set up workers with webpack
229 | // check out https://github.com/nativescript/worker-loader
230 | new NativeScriptWorkerPlugin(),
231 | new nsWebpack.PlatformFSPlugin({
232 | platform,
233 | platforms,
234 | }),
235 | // Does IPC communication with the {N} CLI to notify events when running in watch mode.
236 | new nsWebpack.WatchStateLoggerPlugin(),
237 | ],
238 | };
239 |
240 | // Copy the native app resources to the out dir
241 | // only if doing a full build (tns run/build) and not previewing (tns preview)
242 | if (!externals || externals.length === 0) {
243 | config.plugins.push(new CopyWebpackPlugin([
244 | {
245 | from: `${appResourcesFullPath}/${appResourcesPlatformDir}`,
246 | to: `${dist}/App_Resources/${appResourcesPlatformDir}`,
247 | context: projectRoot
248 | },
249 | ]));
250 | }
251 |
252 | if (report) {
253 | // Generate report files for bundles content
254 | config.plugins.push(new BundleAnalyzerPlugin({
255 | analyzerMode: "static",
256 | openAnalyzer: false,
257 | generateStatsFile: true,
258 | reportFilename: resolve(projectRoot, "report", `report.html`),
259 | statsFilename: resolve(projectRoot, "report", `stats.json`),
260 | }));
261 | }
262 |
263 | if (snapshot) {
264 | config.plugins.push(new nsWebpack.NativeScriptSnapshotPlugin({
265 | chunk: "vendor",
266 | requireModules: [
267 | "tns-core-modules/bundle-entry-points",
268 | ],
269 | projectRoot,
270 | webpackConfig: config,
271 | }));
272 | }
273 |
274 | if (hmr) {
275 | config.plugins.push(new webpack.HotModuleReplacementPlugin());
276 | }
277 |
278 |
279 | return config;
280 | };
281 |
--------------------------------------------------------------------------------
/docs/localstorage.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NathanaelA/nativescript-localstorage/f2aa10fea6a9d319d601f058401ff4ec607f0748/docs/localstorage.gif
--------------------------------------------------------------------------------
/src/.npmignore:
--------------------------------------------------------------------------------
1 | demo/
2 | .git/
3 | .idea/
4 | docs/
5 | bin/
6 | tests/
7 | screenshots/
8 | graphics/
9 | .vs/
10 | .settings/
11 | .vscode/
12 | node_modules/
13 | .tscache/
14 |
15 | .gitignore
16 | .npmignore
17 | .DS_Store
18 | .editorconfig
19 | .bablerc
20 | .eslintignore
21 | .travis.yml
22 | .jshintrc
23 | *.sln
24 | *.md
25 | *.tmp
26 | *.log
27 | *.ts
28 | *.js.map
29 | *.tar
30 | *.tgz
31 | *.gz
32 | *.zip
33 |
34 | !*.d.ts
35 |
36 | references.d.ts
37 | tsconfig.json
38 | tslint.json
39 | karma.conf.js
40 | typings.json
41 | typedoc.json
42 |
43 |
--------------------------------------------------------------------------------
/src/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | localstorage
4 | Copyright (c) 2016, Nathanael Anderson
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10 | the Software, and to permit persons to whom the Software is furnished to do so,
11 | subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/src/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # NativeScript-LocalStorage
4 |
5 |
6 | 
7 |
8 | This version is completely unsupported and untested on NativeScript 6. Please upgrade your plugin to the tested, supported and maintained version.
--------------------------------------------------------------------------------
/src/changelog:
--------------------------------------------------------------------------------
1 | v1.0.0 - Initial Release
2 |
3 | v2.0.0 - Fix setItem to only take strings (BREAKING CHANGE), and auto-convert to strings.
4 |
--------------------------------------------------------------------------------
/src/localstorage.js:
--------------------------------------------------------------------------------
1 | /**********************************************************************************
2 | * (c) 2017-2019, Nathanael Anderson.
3 | * Licensed under the MIT license.
4 | *
5 | * Version 1.1.8 nathan@master-technology.com
6 | **********************************************************************************/
7 | 'use strict';
8 |
9 |
10 | import {FileSystemAccess} from "@nativescript/core/file-system/file-system-access";
11 |
12 | // So that code that is looking for the "Storage" object will pass its check
13 | if (!global.Storage) {
14 | global.Storage = function Storage() { };
15 | }
16 |
17 | if (!global.localStorage || module.hot) {
18 | let localStorageData = {};
19 | let localStorageTimeout = null;
20 |
21 | const internalSaveData = function() {
22 | let fsa = new FileSystemAccess();
23 | let fileName = fsa.getDocumentsFolderPath() + "/localStorage.db";
24 | try {
25 | fsa.writeText(fileName, JSON.stringify(localStorageData));
26 | } catch (err) {
27 | // This should never happen on normal data, but if they tried to put non JS stuff it won't serialize
28 | console.log("localStorage: unable to write storage, error: ", err);
29 | }
30 |
31 | };
32 |
33 | const saveData = function() {
34 | if (localStorageTimeout !== null) {
35 | clearTimeout(localStorageTimeout);
36 | }
37 | localStorageTimeout = setTimeout(internalSaveData, 250);
38 | };
39 |
40 | const loadData = function() {
41 | let fsa = new FileSystemAccess();
42 | let fileName = fsa.getDocumentsFolderPath() + "/localStorage.db";
43 | if (!fsa.fileExists(fileName)) {
44 | return;
45 | }
46 |
47 | let data;
48 | try {
49 | let textData = fsa.readText(fileName);
50 | data = JSON.parse(textData);
51 | localStorageData = data;
52 | }
53 | catch (err) {
54 | console.log("localStorage: error reading storage, Error: ", err);
55 | }
56 | };
57 |
58 | loadData();
59 |
60 | global.localStorage = {
61 | getItem: function (name) {
62 | if (localStorageData.hasOwnProperty(name)) {
63 | return localStorageData[name];
64 | }
65 | return null;
66 | },
67 | key: function(id) {
68 | const keys = Object.keys(localStorageData);
69 | if (id >= keys.length) { return null; }
70 | return keys[id];
71 | },
72 | setItemObject: function(name, value) {
73 | localStorageData[name] = value;
74 | saveData();
75 | },
76 | // Revamp this to be "String" only
77 | // https://github.com/NathanaelA/nativescript-localstorage/issues/17
78 | setItem: function (name, value) {
79 | if (value == null) {
80 | if (value === null) {
81 | localStorageData[name] = "null";
82 | } else {
83 | localStorageData[name] = "undefined";
84 | }
85 | } else {
86 | localStorageData[name] = value.toString();
87 | }
88 | saveData();
89 | },
90 | removeItem: function (name) {
91 | if (localStorageData[name]) {
92 | delete localStorageData[name];
93 | saveData();
94 | }
95 | },
96 | clear: function () {
97 | localStorageData = {};
98 | saveData();
99 | }
100 | };
101 | Object.defineProperty(global.localStorage, "length", {
102 | get: function() {
103 | return (Object.keys(localStorageData).length);
104 | },
105 | enumerable: true,
106 | configurable: true
107 | });
108 | }
109 |
110 |
111 | if (!global.sessionStorage) {
112 | let sessionStorageData = {};
113 |
114 | global.sessionStorage = {
115 | getItem: function (name) {
116 | if (sessionStorageData.hasOwnProperty(name)) {
117 | return sessionStorageData[name];
118 | }
119 | return null;
120 | },
121 | key: function(id) {
122 | const keys = Object.keys(sessionStorageData);
123 | if (id >= keys.length) { return null; }
124 | return keys[id];
125 | },
126 | setItemObject: function(name, value) {
127 | sessionStorageData[name] = value;
128 | },
129 | setItem: function (name, value) {
130 | if (value == null) {
131 | if (value === null) {
132 | sessionStorageData[name] = "null";
133 | } else {
134 | sessionStorageData[name] = "undefined";
135 | }
136 | } else {
137 | sessionStorageData[name] = value.toString();
138 | }
139 | },
140 |
141 | removeItem: function (name) {
142 | if (sessionStorageData[name]) {
143 | delete sessionStorageData[name];
144 | }
145 | },
146 | clear: function () {
147 | sessionStorageData = {};
148 | }
149 | };
150 | Object.defineProperty(global.sessionStorage, "length", {
151 | get: function() {
152 | return (Object.keys(sessionStorageData).length);
153 | },
154 | enumerable: true,
155 | configurable: true
156 | });
157 | }
158 |
159 |
160 | export default global.localStorage;
161 |
162 |
163 | if (module.hot) {
164 | module.hot.accept();
165 | module.hot.dispose(() => {
166 | global.localStorage = undefined;
167 | })
168 | }
169 |
--------------------------------------------------------------------------------
/src/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-localstorage",
3 | "version": "2.0.2",
4 | "description": "LocalStorage/SessionStorage API",
5 | "main": "localstorage",
6 | "nativescript": {
7 | "platforms": {
8 | "android": "1.0.0",
9 | "ios": "1.0.0"
10 | },
11 | "plugin": {
12 | "nan": "true",
13 | "pan": "true",
14 | "core3": "true",
15 | "category": "Processing"
16 | }
17 | },
18 | "repository": {
19 | "type": "git",
20 | "url": "https://git.proplugins.org/proplugins/nativescript-localstorage.git"
21 | },
22 | "keywords": [
23 | "NativeScript",
24 | "local storage",
25 | "localstorage",
26 | "session storage",
27 | "sessionstorage",
28 | "nativescript",
29 | "data",
30 | "storage"
31 | ],
32 | "author": {
33 | "name": "Nathanael Anderson",
34 | "email": "nathan@master-technology.com"
35 | },
36 | "contributors": [
37 | {
38 | "name": "Stanimira Vlaeva",
39 | "email": "stanimira.vlaeva@gmail.com",
40 | "url": "https://github.com/sis0k0"
41 | },
42 | {
43 | "name": "Daniel Kucal",
44 | "email": "dkucal@gmail.com",
45 | "url": "https://github.com/danielkucal"
46 | }
47 | ],
48 | "license": "Unsupported",
49 | "bugs": {
50 | "url": "https://git.proplugins.org/proplugins/nativescript-localstorage/issues"
51 | },
52 | "homepage": "https://git.proplugins.org/proplugins/nativescript-localstorage",
53 | "readmeFilename": "README.md",
54 | "scripts": {
55 | "demo.ios": "npm run preparedemo && cd demo && tns emulate ios",
56 | "demo.android": "npm run preparedemo && cd demo && tns run android",
57 | "debug.ios": "npm run preparedemo && cd demo && tns debug ios --emulator",
58 | "debug.android": "npm run preparedemo && cd demo && tns debug android --emulator",
59 | "postinstall": "node postinstall.js || echo \"ignore\"",
60 | "preparedemo": "cd demo && tns plugin remove nativescript-localstorage && tns plugin add .. && tns install",
61 | "setup": "cd demo && npm install && tns plugin add .. && cd ..",
62 | "start": "npm run demo.android"
63 | }
64 | }
--------------------------------------------------------------------------------
/src/postinstall.js:
--------------------------------------------------------------------------------
1 |
2 | // Get the defaults
3 | const PROPLUGINS = isenv(process.env.PROPLUGINS);
4 | const plugin_name = process.env.npm_package_name || 'Unknown';
5 | const CI = isenv(process.env.CI);
6 | const COLOR = CI ? false : isenv(process.env.npm_config_color);
7 |
8 | function isenv(val) {
9 | return !!val && val !== '0' && val !== 'false';
10 | }
11 |
12 | function log(value) {
13 | console.log(COLOR ? value : value.replace(/\u001B\[[\d|1;\d]+m/g, ''));
14 | }
15 |
16 | function padr(value, size) {
17 | while(value.length < size) {
18 | value += ' ';
19 | }
20 | return value;
21 | }
22 |
23 | function padc(value, size) {
24 | while(value.length < size) {
25 | value = ' ' + value + ' ';
26 | }
27 | return value.substr(0, size);
28 | }
29 |
30 |
31 | function highlight(value, color) {
32 | if (color == null) { color = "33"; }
33 | return "\u001B["+color+"m"+value+"\u001B[37m";
34 | }
35 |
36 | if (!PROPLUGINS) {
37 | if (COLOR) { console.log('\x07'); }
38 | log('\n\u001B[37m\u001B[1;41m--------------------------------[ \u001B[5m\u001B[33mWARNING\u001B[0m\u001B[1;41m\u001B[37m ]------------------------------------\u001B[0m');
39 | log('\u001B[37m\u001B[1;41m'+padr('- '+highlight(plugin_name)+' is DEPRECATED and is not maintained!', 88)+'-\u001B[0m');
40 | log('\u001B[37m\u001B[1;41m'+padr('- This plugin has NOT been tested in NS 6.x, and is likely to crash or fail!', 78)+'-\u001B[0m');
41 | log('\u001B[37m\u001B[1;41m'+padr('- ', 78)+'-\u001B[0m');
42 | log('\u001B[37m\u001B[1;41m'+padr('- Please switch to the supported, tested, and maintained version:', 78)+'-\u001B[0m');
43 | log('\u001B[37m\u001B[1;41m-'+padc(highlight('@proplugins/'+plugin_name), 87)+'-\u001B[0m');
44 | log('\u001B[37m\u001B[1;41m'+padr('- ', 78)+'-\u001B[0m');
45 | log('\u001B[37m\u001B[1;41m'+padr('- For more information see '+highlight('https://proplugins.org/upgrade'), 88)+'-\u001B[0m');
46 | log('\u001B[37m\u001B[1;41m-------------------------------------------------------------------------------\u001B[0m\n');
47 |
48 | if (!COLOR) {
49 | // console.log("\u001B[0m");
50 | }
51 |
52 | delay();
53 | }
54 |
55 | async function delay() {
56 | await new Promise( (resolve) => { setTimeout(resolve, 5000); } );
57 | }
58 |
59 |
--------------------------------------------------------------------------------
/src/unmaintained.svg:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
--------------------------------------------------------------------------------