diff --git a/demo-vue/LICENSE b/demo-vue/LICENSE new file mode 100644 index 0000000..4794b43 --- /dev/null +++ b/demo-vue/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2019 Progress Software Corporation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/demo-vue/app/App_Resources/Android/app.gradle b/demo-vue/app/App_Resources/Android/app.gradle new file mode 100644 index 0000000..d4b9f1a --- /dev/null +++ b/demo-vue/app/App_Resources/Android/app.gradle @@ -0,0 +1,35 @@ +// Add your native dependencies here: + +// Uncomment to add recyclerview-v7 dependency +//dependencies { +// implementation 'com.android.support:recyclerview-v7:+' +//} + +// If you want to add something to be applied before applying plugins' include.gradle files +// e.g. project.ext.googlePlayServicesVersion = "15.0.1" +// create a file named before-plugins.gradle in the current directory and place it there + +android { + defaultConfig { + minSdkVersion 17 + generatedDensities = [] + } + aaptOptions { + additionalParameters "--no-version-vectors" + } +} + +def settingsGradlePath + +if(project.hasProperty("appResourcesPath")){ + settingsGradlePath = "$project.appResourcesPath/Android/settings.gradle"; +} else { + settingsGradlePath = "$rootDir/../../app/App_Resources/Android/settings.gradle"; +} + +def settingsGradleFile = new File(settingsGradlePath); + +if(settingsGradleFile.exists()) +{ + apply from: settingsGradleFile; +} diff --git a/demo-vue/app/App_Resources/Android/settings.gradle b/demo-vue/app/App_Resources/Android/settings.gradle new file mode 100644 index 0000000..93cc6c5 --- /dev/null +++ b/demo-vue/app/App_Resources/Android/settings.gradle @@ -0,0 +1,51 @@ +import groovy.json.JsonSlurper + +task replaceSettings { + description "Replaces configuration settings." + def jsonSlurper = new JsonSlurper() + def pathToSettingsJson + + if (project.hasProperty("appResourcesPath")) { + pathToSettingsJson = "$project.appResourcesPath/Android/settings.json"; + } else { + pathToSettingsJson = "$rootDir/../../app/App_Resources/Android/settings.json"; + } + + def settingsJsonFile = file(pathToSettingsJson); + def settingsResolvedPath = settingsJsonFile.getAbsolutePath(); + + if(settingsJsonFile.exists()) + { + println "\t Applying settings from $settingsResolvedPath" + String settingsGradleTemplate = """android { + defaultConfig { + applicationId = "__appId__" + + if (__minSdkVersion__) { + minSdkVersion = __minSdkVersion__ + } + + if (__targetSdkVersion__) { + targetSdkVersion = __targetSdkVersion__ + } + } + }""" + + def settingsJsonContent = settingsJsonFile.getText("UTF-8"); + def settingsMap = jsonSlurper.parseText(settingsJsonContent); + + for ( setting in settingsMap ) { + def placeholder = "__${setting.key}__"; + def settingValue = setting.value; + + if (settingValue == null) { + settingValue = false + } + + settingsGradleTemplate = settingsGradleTemplate.replaceAll( placeholder, settingValue as String); + } + + new File( "$rootDir/temp_setting.gradle" ).write( settingsGradleTemplate, 'UTF-8'); + apply from: "$rootDir/temp_setting.gradle"; + } +} diff --git a/demo-vue/app/App_Resources/Android/settings.json b/demo-vue/app/App_Resources/Android/settings.json new file mode 100644 index 0000000..1db5033 --- /dev/null +++ b/demo-vue/app/App_Resources/Android/settings.json @@ -0,0 +1 @@ +{"appId":"org.nativescript.stripe.demo","minSdkVersion":null,"targetSdkVersion":null} \ No newline at end of file diff --git a/demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml b/demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml new file mode 100644 index 0000000..1bd256d --- /dev/null +++ b/demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png new file mode 100644 index 0000000..6420032 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png new file mode 100644 index 0000000..117b444 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png new file mode 100644 index 0000000..711905f Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png new file mode 100644 index 0000000..03befc2 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png new file mode 100644 index 0000000..bd04848 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png new file mode 100644 index 0000000..af908e4 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png new file mode 100644 index 0000000..cfe4a7c Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png new file mode 100644 index 0000000..32aa617 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png new file mode 100644 index 0000000..c21ae44 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml b/demo-vue/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml new file mode 100644 index 0000000..ada77f9 --- /dev/null +++ b/demo-vue/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png new file mode 100644 index 0000000..b06ae26 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png new file mode 100644 index 0000000..1295004 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png new file mode 100644 index 0000000..4ad5346 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png new file mode 100644 index 0000000..9bc7f01 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png new file mode 100644 index 0000000..541e759 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png new file mode 100644 index 0000000..bcc4011 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png new file mode 100644 index 0000000..d93c3d8 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png new file mode 100644 index 0000000..072b601 Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png new file mode 100644 index 0000000..96acb1e Binary files /dev/null and b/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png differ diff --git a/demo-vue/app/App_Resources/Android/src/main/res/values-v21/colors.xml b/demo-vue/app/App_Resources/Android/src/main/res/values-v21/colors.xml new file mode 100644 index 0000000..a64641a --- /dev/null +++ b/demo-vue/app/App_Resources/Android/src/main/res/values-v21/colors.xml @@ -0,0 +1,4 @@ + + + #3d5afe + \ No newline at end of file diff --git a/demo-vue/app/App_Resources/Android/src/main/res/values-v21/styles.xml b/demo-vue/app/App_Resources/Android/src/main/res/values-v21/styles.xml new file mode 100644 index 0000000..acff7c9 --- /dev/null +++ b/demo-vue/app/App_Resources/Android/src/main/res/values-v21/styles.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demo-vue/app/App_Resources/Android/src/main/res/values/colors.xml b/demo-vue/app/App_Resources/Android/src/main/res/values/colors.xml new file mode 100644 index 0000000..74ad882 --- /dev/null +++ b/demo-vue/app/App_Resources/Android/src/main/res/values/colors.xml @@ -0,0 +1,7 @@ + + + #F5F5F5 + #757575 + #33B5E5 + #272734 + \ No newline at end of file diff --git a/demo-vue/app/App_Resources/Android/src/main/res/values/styles.xml b/demo-vue/app/App_Resources/Android/src/main/res/values/styles.xml new file mode 100644 index 0000000..20a82f4 --- /dev/null +++ b/demo-vue/app/App_Resources/Android/src/main/res/values/styles.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..1a8b0e6 --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "icon-20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "icon-29.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "icon-29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "icon-40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "icon-60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "icon-60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "icon-20.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "icon-20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "icon-29.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "icon-29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "icon-40.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "icon-40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "icon-76.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "icon-76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "icon-83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "icon-1024.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png new file mode 100644 index 0000000..fe7c504 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png new file mode 100644 index 0000000..4642444 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png new file mode 100644 index 0000000..6a4738e Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png new file mode 100644 index 0000000..f47e3cd Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png new file mode 100644 index 0000000..275ddd1 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png new file mode 100644 index 0000000..906e4b4 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png new file mode 100644 index 0000000..5b9a78e Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png new file mode 100644 index 0000000..3e4a7ea Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png new file mode 100644 index 0000000..f1cf7ae Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png new file mode 100644 index 0000000..a6b0b6f Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png new file mode 100644 index 0000000..091c136 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png new file mode 100644 index 0000000..eb0279c Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png new file mode 100644 index 0000000..42d84e1 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png new file mode 100644 index 0000000..50f1e70 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png new file mode 100644 index 0000000..11dc75f Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/Contents.json b/demo-vue/app/App_Resources/iOS/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..bb3b4a5 --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,212 @@ +{ + "images" : [ + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "2688h", + "filename" : "Default-Portrait-XS-Max.png", + "minimum-system-version" : "12.0", + "orientation" : "portrait", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "2688h", + "filename" : "Default-Landscape-XS-Max.png", + "minimum-system-version" : "12.0", + "orientation" : "landscape", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "1792h", + "filename" : "Default-Portrait-XR.png", + "minimum-system-version" : "12.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "1792h", + "filename" : "Default-Landscape-XR.png", + "minimum-system-version" : "12.0", + "orientation" : "landscape", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "2436h", + "filename" : "Default-1125h.png", + "minimum-system-version" : "11.0", + "orientation" : "portrait", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "2436h", + "filename" : "Default-Landscape-X.png", + "minimum-system-version" : "11.0", + "orientation" : "landscape", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "736h", + "filename" : "Default-736h@3x.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "736h", + "filename" : "Default-Landscape@3x.png", + "minimum-system-version" : "8.0", + "orientation" : "landscape", + "scale" : "3x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "667h", + "filename" : "Default-667h@2x.png", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default@2x.png", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "Default-568h@2x.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "filename" : "Default-Portrait.png", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "filename" : "Default-Landscape.png", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "filename" : "Default-Portrait@2x.png", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "filename" : "Default-Landscape@2x.png", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default.png", + "extent" : "full-screen", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default@2x.png", + "extent" : "full-screen", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "filename" : "Default-568h@2x.png", + "extent" : "full-screen", + "subtype" : "retina4", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "filename" : "Default-Portrait.png", + "extent" : "full-screen", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "filename" : "Default-Landscape.png", + "extent" : "full-screen", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "filename" : "Default-Portrait@2x.png", + "extent" : "full-screen", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "to-status-bar", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "filename" : "Default-Landscape@2x.png", + "extent" : "full-screen", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png new file mode 100644 index 0000000..2913f85 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png new file mode 100644 index 0000000..d7f17fc Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png new file mode 100644 index 0000000..b884154 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png new file mode 100644 index 0000000..faab4b6 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png new file mode 100644 index 0000000..cd94a3a Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png new file mode 100644 index 0000000..686fda1 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png new file mode 100644 index 0000000..415e9c8 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png new file mode 100644 index 0000000..3365ba3 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png new file mode 100644 index 0000000..a44945c Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png new file mode 100644 index 0000000..e6dca62 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png new file mode 100644 index 0000000..b66a4f2 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png new file mode 100644 index 0000000..e34463d Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png new file mode 100644 index 0000000..1a50079 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png new file mode 100644 index 0000000..73d8b92 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png new file mode 100644 index 0000000..9f1f6ce Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png new file mode 100644 index 0000000..514fc5c Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json new file mode 100644 index 0000000..ab5edd0 --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchScreen-AspectFill.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-AspectFill@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-AspectFill@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png new file mode 100644 index 0000000..c293f9c Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png new file mode 100644 index 0000000..233693a Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png new file mode 100644 index 0000000..a954cc8 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json new file mode 100644 index 0000000..444d715 --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchScreen-Center.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-Center@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchScreen-Center@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png new file mode 100644 index 0000000..a5a775a Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png new file mode 100644 index 0000000..154c193 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png new file mode 100644 index 0000000..b2973b0 Binary files /dev/null and b/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png differ diff --git a/demo-vue/app/App_Resources/iOS/Info.plist b/demo-vue/app/App_Resources/iOS/Info.plist new file mode 100644 index 0000000..65b54cd --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/Info.plist @@ -0,0 +1,51 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiresFullScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIStatusBarStyle + UIStatusBarStyleLightContent + UIViewControllerBasedStatusBarAppearance + + + diff --git a/demo-vue/app/App_Resources/iOS/LaunchScreen.storyboard b/demo-vue/app/App_Resources/iOS/LaunchScreen.storyboard new file mode 100644 index 0000000..c4e5a3f --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/LaunchScreen.storyboard @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo-vue/app/App_Resources/iOS/build.xcconfig b/demo-vue/app/App_Resources/iOS/build.xcconfig new file mode 100644 index 0000000..4b01184 --- /dev/null +++ b/demo-vue/app/App_Resources/iOS/build.xcconfig @@ -0,0 +1,7 @@ +// You can add custom settings here +// for example you can uncomment the following line to force distribution code signing +// CODE_SIGN_IDENTITY = iPhone Distribution +// 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 +// DEVELOPMENT_TEAM = YOUR_TEAM_ID; +ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; +ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; diff --git a/demo-vue/app/_app-common.scss b/demo-vue/app/_app-common.scss new file mode 100644 index 0000000..052a9cc --- /dev/null +++ b/demo-vue/app/_app-common.scss @@ -0,0 +1,7 @@ +// Place any CSS rules you want to apply on both iOS and Android here. +// This is where the vast majority of your CSS code goes. + +//Font icon +.fa { + font-family: "FontAwesome"; +} diff --git a/demo-vue/app/_app-variables.scss b/demo-vue/app/_app-variables.scss new file mode 100644 index 0000000..08316a1 --- /dev/null +++ b/demo-vue/app/_app-variables.scss @@ -0,0 +1,78 @@ +// Import the theme’s variables. If you’re using a color scheme +// other than “light”, switch the path to the alternative scheme, +// for example '~nativescript-theme-core/scss/dark'. +@import '~nativescript-theme-core/scss/light'; + +// Custom colors +$background-dark: #F8F8F8 !default; +$background-light: #FFFFFF !default; + +$blue-dark: #022734 !default; +$blue-light: #02556E !default; +$blue-50: rgba($blue-dark, 0.5) !default; +$blue-20: rgba($blue-dark, 0.2) !default; +$blue-10: rgba($blue-dark, 0.1) !default; + +$accent-dark: #3A53FF !default; +$accent-light: #4781FE !default; + +$success-dark: #06CE6A !default; +$success-light: #00E676 !default; + +$warning-dark: #f39c11 !default; +$warning-light: #F2C112 !default; + +$error-dark: #D84039 !default; +$error-light: #ED473F !default; + +$midnight-dark: #0F336D !default; +$midnight-light: #14418B !default; + +$night-dark: #023141 !default; +$night-light: #01526C !default; + +// Sizes +$base-font-size: 11; + +$border-width: 1; +$border-radius: 3; + + +/** + * Theme variables overrides +**/ + +// Colors +$background: #fff; +$primary: lighten(#000, 13%); +$secondary: lighten(#000, 46%); +$disabled: lighten(#000, 62%); +$accent: $accent-dark; +$error: $error-light; + +// SideDrawer +$item-color-android : #737373; +$item-active-background: #F8F8F8; +$item-active-color: $accent; +$item-active-icon-color: $item-active-color; +$item-color-ios: $blue-dark; +$item-color-android: $blue-dark; + +$side-drawer-header-background: #fafafa; +$side-drawer-header-brand: #737373; +$side-drawer-background: #FFFFFF; + +// ActionBar +$ab-background: $accent; +$ab-color: $white; + +// Buttons +$btn-color-inverse: $white; +$btn-color: $accent; +$btn-color-secondary: darken($btn-color, 10%); +$btn-color-outline-highlighted: lighten($btn-color, 10%); + +//Text colors +$headings-color: $blue-dark; +$secondary: $blue-dark; +$text-color: $blue-dark; \ No newline at end of file diff --git a/demo-vue/app/app.scss b/demo-vue/app/app.scss new file mode 100644 index 0000000..320b1b2 --- /dev/null +++ b/demo-vue/app/app.scss @@ -0,0 +1,9 @@ +// Import app variables +@import 'app-variables'; + +// Import the theme’s main ruleset - both index and platform specific. +@import '~nativescript-theme-core/scss/index'; +@import '~nativescript-theme-core/scss/platforms/index.android'; + +// Import common styles +@import 'app-common'; diff --git a/demo-vue/app/components/Home.vue b/demo-vue/app/components/Home.vue new file mode 100644 index 0000000..2186b6c --- /dev/null +++ b/demo-vue/app/components/Home.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/demo-vue/app/fonts/FontAwesome.ttf b/demo-vue/app/fonts/FontAwesome.ttf new file mode 100644 index 0000000..35acda2 Binary files /dev/null and b/demo-vue/app/fonts/FontAwesome.ttf differ diff --git a/demo-vue/app/package.json b/demo-vue/app/package.json new file mode 100644 index 0000000..c13032c --- /dev/null +++ b/demo-vue/app/package.json @@ -0,0 +1,7 @@ +{ + "main": "app.js", + "android": { + "v8Flags": "--expose_gc", + "markingMode": "none" + } +} diff --git a/demo-vue/app/services/stripe.service.ts b/demo-vue/app/services/stripe.service.ts new file mode 100644 index 0000000..7efa336 --- /dev/null +++ b/demo-vue/app/services/stripe.service.ts @@ -0,0 +1,182 @@ +import { StripeAddress, StripeBackendAPI, StripeConfig, StripeCustomerSession, StripePaymentListener, StripePaymentSession, StripeShippingAddressField, StripeShippingMethod } from "nativescript-stripe/standard"; +import * as httpModule from "tns-core-modules/http"; + +// 1) To get started with this demo, first head to https://dashboard.stripe.com/account/apikeys +// and copy your "Test Publishable Key" (it looks like pk_test_abcdef) into the line below. +export const publishableKey = "pk_test_yours"; + +// 2) Next, optionally, to have this demo save your user's payment details, head to +// https://github.com/stripe/example-ios-backend , click "Deploy to Heroku", and follow +// the instructions (don't worry, it's free). Paste your Heroku URL below +// (it looks like https://blazing-sunrise-1234.herokuapp.com ). +const backendBaseURL = "https://yours.herokuapp.com/"; + +// 3) Optionally, to enable Apple Pay, follow the instructions at https://stripe.com/docs/apple-pay/apps +// to create an Apple Merchant ID. Paste it below (it looks like merchant.com.yourappname). +const appleMerchantID = ""; + +export class Listener { + + public component; + constructor(component) { + this.component = component; + } + onCommunicatingStateChanged(_isCommunicating) { + + } + onPaymentDataChanged(data) { + this.component.paymentMethod = data.paymentMethod; + this.component.shippingInfo = data.shippingInfo; + this.component.shippingAddress = data.shippingAddress; + } + onPaymentSuccess() { + this.component.paymentInProgress = false; + this.component.canBuy = true; + this.component.successMessage = + `Congratulations! You bought a "${this.component.item.name}" for $${this.component.item.price / 100}.`; + + } + onUserCancelled() { + this.component.paymentInProgress = false; + this.component.canBuy = true; + } + onError(_errorCode, message) { + this.component.paymentInProgress = false; + this.component.canBuy = true; + this.component.errorMessage = message; + } + provideShippingMethods(address) { + let upsGround = { + amount: 0, + label: "UPS Ground", + detail: "Arrives in 3-5 days", + identifier: "ups_ground" + }; + let upsWorldwide = { + amount: 1099, + label: "UPS Worldwide Express", + detail: "Arrives in 1-3 days", + identifier: "ups_worldwide" + }; + let fedEx = { + amount: 599, + label: "FedEx", + detail: "Arrives tomorrow", + identifier: "fedex" + }; + let methods = {}; + if (!address.country || address.country === "US") { + methods['isValid'] = true; + methods['validationError'] = undefined; + methods['shippingMethods'] = [upsGround, fedEx]; + methods['selectedShippingMethod'] = fedEx; + } + else if (address.country === "AQ") { + methods['isValid'] = false; + methods['validationError'] = "We can't ship to this country."; + } + else { + fedEx.amount = 2099; + methods['isValid'] = true; + methods['validationError'] = undefined; + methods['shippingMethods'] = [upsWorldwide, fedEx]; + methods['selectedShippingMethod'] = fedEx; + } + return methods; + } +} + + +export class StripeService implements StripeBackendAPI { + private customerSession; + + constructor() { + if (-1 !== publishableKey.indexOf("pk_test_yours")) { + throw new Error("publishableKey must be changed from placeholder"); + } + if (-1 !== backendBaseURL.indexOf("https://yours.herokuapp.com/")) { + throw new Error("backendBaseURL must be changed from placeholder"); + } + + StripeConfig.shared().backendAPI = this; + StripeConfig.shared().publishableKey = publishableKey; + StripeConfig.shared().appleMerchantID = appleMerchantID; + StripeConfig.shared().companyName = "Demo Company"; + StripeConfig.shared().requiredShippingAddressFields = [StripeShippingAddressField.PostalAddress]; + + this.customerSession = new StripeCustomerSession(); + } + + private backendURL(pathComponent: string): string { + if (!backendBaseURL) throw new Error("backendBaseURL must be set"); + if (!backendBaseURL.endsWith("/")) { + return backendBaseURL + "/" + pathComponent; + } else { + return backendBaseURL + pathComponent; + } + } + + createCustomerKey(apiVersion: string): Promise { + let url = this.backendURL("ephemeral_keys"); + return httpModule.request({ + url: url, + method: "POST", + headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, + content: "api_version=" + apiVersion + }).then(response => { + if (response.statusCode < 200 || response.statusCode >= 300) { + throw new Error(response.content.toString()); + } + return response.content.toJSON(); + }); + } + + completeCharge(stripeID: string, amount: number, shippingMethod: StripeShippingMethod, shippingAddress: StripeAddress): Promise { + let url = this.backendURL("capture_payment"); + return httpModule.request({ + url: url, + method: "POST", + headers: { "Content-Type": "application/x-www-form-urlencoded; charset=utf-8" }, + content: + "source=" + stripeID + + "&amount=" + amount + + "&" + this.encodeShipping(shippingMethod, shippingAddress) + }).then(response => { + if (response.statusCode < 200 || response.statusCode >= 300) { + throw new Error(response.content.toString()); + } + }); + } + + private encodeShipping(method: StripeShippingMethod, address: StripeAddress): string { + function entry(label: string, value: string): string { + return value ? encodeURI(label) + "=" + encodeURI(value) : ""; + } + return entry("shipping[carrier]", method.label) + + entry("&shipping[name]", address.name) + + entry("&shipping[address][line1]", address.line1) + + entry("&shipping[address][line2]", address.line2) + + entry("&shipping[address][city]", address.city) + + entry("&shipping[address][state]", address.state) + + entry("&shipping[address][country]", address.country) + + entry("&shipping[address][postal_code]", address.postalCode) + + entry("&phone", address.phone) + + entry("&email", address.email); + } + + createPaymentSession(page, price, listener?): StripePaymentSession { + return new StripePaymentSession(page, this.customerSession, price, "usd", listener); + } + + showPaymentMethods(paymentSession: StripePaymentSession) { + paymentSession.presentPaymentMethods(); + } + + showShipping(paymentSession: StripePaymentSession) { + paymentSession.presentShipping(); + } + + requestPayment(paymentSession: StripePaymentSession) { + paymentSession.requestPayment(); + } +} \ No newline at end of file diff --git a/demo-vue/jsconfig.json b/demo-vue/jsconfig.json new file mode 100644 index 0000000..7480032 --- /dev/null +++ b/demo-vue/jsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": "./", + "paths": { + "*": ["./node_modules/tns-core-modules/*", "./node_modules/*"], + "~/*": ["app/*"] + } + }, + "include": ["app/**/*"] +} diff --git a/demo-vue/nsconfig.json b/demo-vue/nsconfig.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/demo-vue/nsconfig.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/demo-vue/package.json b/demo-vue/package.json new file mode 100644 index 0000000..82dc685 --- /dev/null +++ b/demo-vue/package.json @@ -0,0 +1,32 @@ +{ + "nativescript": { + "id": "org.nativescript.stripe.demo", + "tns-android": { + "version": "6.0.2" + }, + "tns-ios": { + "version": "6.0.2" + } + }, + "description": "NativeScript Application", + "license": "SEE LICENSE IN ", + "repository": "", + "dependencies": { + "nativescript-stripe": "^5.5.0", + "nativescript-theme-core": "~1.0.6", + "nativescript-vue": "~2.4.0", + "tns-core-modules": "~6.0.0" + }, + "devDependencies": { + "@babel/core": "~7.1.0", + "@babel/preset-env": "~7.1.0", + "babel-loader": "~8.0.0", + "nativescript-dev-webpack": "~1.1.0", + "nativescript-vue-template-compiler": "~2.4.0", + "node-sass": "^4.7.1", + "vue-loader": "~15.4.0", + "typescript": "3.4.5" + }, + "gitHead": "42f2a6a9c94eaf9c68d2a41e0daaa1a2544bc28f", + "readme": "NativeScript Application" +} diff --git a/demo-vue/tsconfig.json b/demo-vue/tsconfig.json new file mode 100644 index 0000000..963b809 --- /dev/null +++ b/demo-vue/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "noEmitHelpers": true, + "noEmitOnError": true, + "lib": [ + "es6", + "dom" + ], + "baseUrl": ".", + "paths": { + "~/*": [ + "app/*" + ] + } + }, + "exclude": [ + "node_modules", + "platforms" + ] +} \ No newline at end of file diff --git a/demo-vue/webpack.config.js b/demo-vue/webpack.config.js new file mode 100644 index 0000000..28bbfe9 --- /dev/null +++ b/demo-vue/webpack.config.js @@ -0,0 +1,307 @@ +const { join, relative, resolve, sep } = require("path"); + +const webpack = require("webpack"); +const CleanWebpackPlugin = require("clean-webpack-plugin"); +const CopyWebpackPlugin = require("copy-webpack-plugin"); +const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); +const TerserPlugin = require("terser-webpack-plugin"); + +const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const NsVueTemplateCompiler = require("nativescript-vue-template-compiler"); + +const nsWebpack = require("nativescript-dev-webpack"); +const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target"); +const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin"); +const hashSalt = Date.now().toString(); + +module.exports = env => { + // Add your custom Activities, Services and other android app components here. + const appComponents = [ + "tns-core-modules/ui/frame", + "tns-core-modules/ui/frame/activity", + ]; + + const platform = env && (env.android && "android" || env.ios && "ios"); + if (!platform) { + throw new Error("You need to provide a target platform!"); + } + + const platforms = ["ios", "android"]; + const projectRoot = __dirname; + + // Default destination inside platforms//... + const dist = resolve(projectRoot, nsWebpack.getAppPath(platform, projectRoot)); + + const { + // The 'appPath' and 'appResourcesPath' values are fetched from + // the nsconfig.json configuration file. + appPath = "app", + appResourcesPath = "app/App_Resources", + + // You can provide the following flags when running 'tns run android|ios' + snapshot, // --env.snapshot + production, // --env.production + report, // --env.report + hmr, // --env.hmr + sourceMap, // --env.sourceMap + hiddenSourceMap, // --env.hiddenSourceMap + unitTesting, // --env.unitTesting + verbose, // --env.verbose + } = env; + + const isAnySourceMapEnabled = !!sourceMap || !!hiddenSourceMap; + const externals = nsWebpack.getConvertedExternals(env.externals); + + const mode = production ? "production" : "development" + + const appFullPath = resolve(projectRoot, appPath); + const appResourcesFullPath = resolve(projectRoot, appResourcesPath); + + const entryModule = nsWebpack.getEntryModule(appFullPath, platform); + const entryPath = `.${sep}${entryModule}`; + const entries = { bundle: entryPath }; + const areCoreModulesExternal = Array.isArray(env.externals) && env.externals.some(e => e.indexOf("tns-core-modules") > -1); + if (platform === "ios" && !areCoreModulesExternal) { + entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules"; + }; + console.log(`Bundling application for entryPath ${entryPath}...`); + + let sourceMapFilename = nsWebpack.getSourceMapFilename(hiddenSourceMap, __dirname, dist); + + const itemsToClean = [`${dist}/**/*`]; + if (platform === "android") { + itemsToClean.push(`${join(projectRoot, "platforms", "android", "app", "src", "main", "assets", "snapshots")}`); + itemsToClean.push(`${join(projectRoot, "platforms", "android", "app", "build", "configurations", "nativescript-android-snapshot")}`); + } + + nsWebpack.processAppComponents(appComponents, platform); + const config = { + mode: mode, + context: appFullPath, + externals, + watchOptions: { + ignored: [ + appResourcesFullPath, + // Don't watch hidden files + "**/.*", + ], + }, + target: nativescriptTarget, + // target: nativeScriptVueTarget, + entry: entries, + output: { + pathinfo: false, + path: dist, + sourceMapFilename, + libraryTarget: "commonjs2", + filename: "[name].js", + globalObject: "global", + hashSalt + }, + resolve: { + extensions: [".vue", ".ts", ".js", ".scss", ".css"], + // Resolve {N} system modules from tns-core-modules + modules: [ + resolve(__dirname, "node_modules/tns-core-modules"), + resolve(__dirname, "node_modules"), + "node_modules/tns-core-modules", + "node_modules", + ], + alias: { + '~': appFullPath, + '@': appFullPath, + 'vue': 'nativescript-vue' + }, + // resolve symlinks to symlinked modules + symlinks: true, + }, + resolveLoader: { + // don't resolve symlinks to symlinked loaders + symlinks: false, + }, + node: { + // Disable node shims that conflict with NativeScript + "http": false, + "timers": false, + "setImmediate": false, + "fs": "empty", + "__dirname": false, + }, + devtool: hiddenSourceMap ? "hidden-source-map" : (sourceMap ? "inline-source-map" : "none"), + optimization: { + runtimeChunk: "single", + splitChunks: { + cacheGroups: { + vendor: { + name: "vendor", + chunks: "all", + test: (module) => { + const moduleName = module.nameForCondition ? module.nameForCondition() : ''; + return /[\\/]node_modules[\\/]/.test(moduleName) || + appComponents.some(comp => comp === moduleName); + + }, + enforce: true, + }, + }, + }, + minimize: Boolean(production), + minimizer: [ + new TerserPlugin({ + parallel: true, + cache: true, + sourceMap: isAnySourceMapEnabled, + terserOptions: { + output: { + comments: false, + semicolons: !isAnySourceMapEnabled + }, + compress: { + // The Android SBG has problems parsing the output + // when these options are enabled + 'collapse_vars': platform !== "android", + sequences: platform !== "android", + }, + keep_fnames: true, + }, + }), + ], + }, + module: { + rules: [{ + include: [join(appFullPath, entryPath + ".js"), join(appFullPath, entryPath + ".ts")], + use: [ + // Require all Android app components + platform === "android" && { + loader: "nativescript-dev-webpack/android-app-components-loader", + options: { modules: appComponents }, + }, + + { + loader: "nativescript-dev-webpack/bundle-config-loader", + options: { + registerPages: true, // applicable only for non-angular apps + loadCss: !snapshot, // load the application css if in debug mode + unitTesting, + appFullPath, + projectRoot, + ignoredFiles: nsWebpack.getUserDefinedEntries(entries, platform) + }, + }, + ].filter(loader => Boolean(loader)), + }, + { + test: /\.css$/, + use: [ + 'nativescript-dev-webpack/style-hot-loader', + 'nativescript-dev-webpack/apply-css-loader.js', + { loader: "css-loader", options: { url: false } }, + ], + }, + { + test: /\.scss$/, + use: [ + 'nativescript-dev-webpack/style-hot-loader', + 'nativescript-dev-webpack/apply-css-loader.js', + { loader: "css-loader", options: { url: false } }, + "sass-loader", + ], + }, + { + test: /\.js$/, + loader: 'babel-loader', + }, + { + test: /\.ts$/, + loader: 'ts-loader', + options: { + appendTsSuffixTo: [/\.vue$/], + allowTsInNodeModules: true, + compilerOptions: { + declaration: false + } + }, + }, + { + test: /\.vue$/, + loader: "vue-loader", + options: { + compiler: NsVueTemplateCompiler, + }, + }, + ], + }, + plugins: [ + // ... Vue Loader plugin omitted + // make sure to include the plugin! + new VueLoaderPlugin(), + // Define useful constants like TNS_WEBPACK + new webpack.DefinePlugin({ + "global.TNS_WEBPACK": "true", + "TNS_ENV": JSON.stringify(mode), + "process": "global.process" + }), + // Remove all files from the out dir. + new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }), + // Copy assets to out dir. Add your own globs as needed. + new CopyWebpackPlugin([ + { from: { glob: "fonts/**" } }, + { from: { glob: "**/*.+(jpg|png)" } }, + { from: { glob: "assets/**/*" } }, + ], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }), + new nsWebpack.GenerateNativeScriptEntryPointsPlugin("bundle"), + // For instructions on how to set up workers with webpack + // check out https://github.com/nativescript/worker-loader + new NativeScriptWorkerPlugin(), + new nsWebpack.PlatformFSPlugin({ + platform, + platforms, + }), + // Does IPC communication with the {N} CLI to notify events when running in watch mode. + new nsWebpack.WatchStateLoggerPlugin() + ], + }; + + if (unitTesting) { + config.module.rules.push( + { + test: /-page\.js$/, + use: "nativescript-dev-webpack/script-hot-loader" + }, + { + test: /\.(html|xml)$/, + use: "nativescript-dev-webpack/markup-hot-loader" + }, + + { test: /\.(html|xml)$/, use: "nativescript-dev-webpack/xml-namespace-loader" } + ); + } + + if (report) { + // Generate report files for bundles content + config.plugins.push(new BundleAnalyzerPlugin({ + analyzerMode: "static", + openAnalyzer: false, + generateStatsFile: true, + reportFilename: resolve(projectRoot, "report", `report.html`), + statsFilename: resolve(projectRoot, "report", `stats.json`), + })); + } + + if (snapshot) { + config.plugins.push(new nsWebpack.NativeScriptSnapshotPlugin({ + chunk: "vendor", + requireModules: [ + "tns-core-modules/bundle-entry-points", + ], + projectRoot, + webpackConfig: config, + })); + } + + if (hmr) { + config.plugins.push(new webpack.HotModuleReplacementPlugin()); + } + + return config; +};