├── .ctags-exclude ├── .gitignore ├── .travis.yml ├── .vscode ├── launch.json └── settings.json ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── app ├── App_Resources │ ├── Android │ │ ├── app.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ ├── add.png │ │ │ ├── apple.png │ │ │ ├── background.png │ │ │ ├── banana.png │ │ │ ├── bg_inner.jpg │ │ │ ├── bg_login.jpg │ │ │ ├── checked.png │ │ │ ├── checked_white.png │ │ │ ├── delete.png │ │ │ ├── ic_add.png │ │ │ ├── ic_checked.png │ │ │ ├── ic_checked_white.png │ │ │ ├── ic_delete.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_nonselected.png │ │ │ ├── ic_recent.png │ │ │ ├── ic_selected.png │ │ │ ├── ic_unchecked.png │ │ │ ├── ic_unchecked_white.png │ │ │ ├── icon.png │ │ │ ├── logo.png │ │ │ ├── logo_login.png │ │ │ ├── logo_signup.png │ │ │ ├── menu.png │ │ │ ├── nonselected.png │ │ │ ├── pear.png │ │ │ ├── recent.png │ │ │ ├── selected.png │ │ │ ├── unchecked.png │ │ │ └── unchecked_white.png │ │ │ ├── drawable-mdpi │ │ │ ├── add.png │ │ │ ├── apple.png │ │ │ ├── background.png │ │ │ ├── banana.png │ │ │ ├── bg_inner.jpg │ │ │ ├── bg_login.jpg │ │ │ ├── checked.png │ │ │ ├── checked_white.png │ │ │ ├── delete.png │ │ │ ├── ic_add.png │ │ │ ├── ic_checked.png │ │ │ ├── ic_checked_white.png │ │ │ ├── ic_delete.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_nonselected.png │ │ │ ├── ic_recent.png │ │ │ ├── ic_selected.png │ │ │ ├── ic_unchecked.png │ │ │ ├── ic_unchecked_white.png │ │ │ ├── icon.png │ │ │ ├── logo.png │ │ │ ├── logo_login.png │ │ │ ├── logo_signup.png │ │ │ ├── menu.png │ │ │ ├── nonselected.png │ │ │ ├── pear.png │ │ │ ├── recent.png │ │ │ ├── selected.png │ │ │ ├── unchecked.png │ │ │ └── unchecked_white.png │ │ │ ├── drawable-nodpi │ │ │ └── splash_screen.xml │ │ │ ├── drawable-xhdpi │ │ │ ├── add.png │ │ │ ├── apple.png │ │ │ ├── background.png │ │ │ ├── banana.png │ │ │ ├── bg_inner.jpg │ │ │ ├── bg_login.jpg │ │ │ ├── checked.png │ │ │ ├── checked_white.png │ │ │ ├── delete.png │ │ │ ├── ic_add.png │ │ │ ├── ic_checked.png │ │ │ ├── ic_checked_white.png │ │ │ ├── ic_delete.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_nonselected.png │ │ │ ├── ic_recent.png │ │ │ ├── ic_selected.png │ │ │ ├── ic_unchecked.png │ │ │ ├── ic_unchecked_white.png │ │ │ ├── icon.png │ │ │ ├── logo.png │ │ │ ├── logo_login.png │ │ │ ├── logo_signup.png │ │ │ ├── menu.png │ │ │ ├── nonselected.png │ │ │ ├── pear.png │ │ │ ├── recent.png │ │ │ ├── selected.png │ │ │ ├── unchecked.png │ │ │ └── unchecked_white.png │ │ │ ├── drawable-xxhdpi │ │ │ ├── add.png │ │ │ ├── apple.png │ │ │ ├── background.png │ │ │ ├── banana.png │ │ │ ├── bg_inner.jpg │ │ │ ├── bg_login.jpg │ │ │ ├── checked.png │ │ │ ├── checked_white.png │ │ │ ├── delete.png │ │ │ ├── ic_add.png │ │ │ ├── ic_checked.png │ │ │ ├── ic_checked_white.png │ │ │ ├── ic_delete.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_nonselected.png │ │ │ ├── ic_recent.png │ │ │ ├── ic_selected.png │ │ │ ├── ic_unchecked.png │ │ │ ├── ic_unchecked_white.png │ │ │ ├── icon.png │ │ │ ├── logo.png │ │ │ ├── logo_login.png │ │ │ ├── logo_signup.png │ │ │ ├── menu.png │ │ │ ├── nonselected.png │ │ │ ├── pear.png │ │ │ ├── recent.png │ │ │ ├── selected.png │ │ │ ├── unchecked.png │ │ │ └── unchecked_white.png │ │ │ ├── drawable-xxxhdpi │ │ │ ├── add.png │ │ │ ├── apple.png │ │ │ ├── background.png │ │ │ ├── banana.png │ │ │ ├── checked.png │ │ │ ├── checked_white.png │ │ │ ├── delete.png │ │ │ ├── ic_add.png │ │ │ ├── ic_checked.png │ │ │ ├── ic_checked_white.png │ │ │ ├── ic_delete.png │ │ │ ├── ic_menu.png │ │ │ ├── ic_nonselected.png │ │ │ ├── ic_recent.png │ │ │ ├── ic_selected.png │ │ │ ├── ic_unchecked.png │ │ │ ├── ic_unchecked_white.png │ │ │ ├── icon.png │ │ │ ├── logo.png │ │ │ ├── logo_login.png │ │ │ ├── logo_signup.png │ │ │ ├── menu.png │ │ │ ├── nonselected.png │ │ │ ├── pear.png │ │ │ ├── recent.png │ │ │ ├── selected.png │ │ │ ├── unchecked.png │ │ │ └── unchecked_white.png │ │ │ ├── values-v21 │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ └── iOS │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-60@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.png │ │ │ ├── icon-60@2x.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.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.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.Center.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-Center.png │ │ │ └── LaunchScreen-Center@2x.png │ │ ├── iTunesArtwork@1x.png │ │ ├── iTunesArtwork@2x.png │ │ └── iTunesArtwork@3x.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ ├── add.png │ │ ├── add@2x.png │ │ ├── add@3x.png │ │ ├── apple.png │ │ ├── apple@2x.png │ │ ├── apple@3x.png │ │ ├── banana.png │ │ ├── banana@2x.png │ │ ├── banana@3x.png │ │ ├── bg_inner.jpg │ │ ├── bg_inner@2x.jpg │ │ ├── bg_inner@3x.jpg │ │ ├── bg_login.jpg │ │ ├── bg_login@2x.jpg │ │ ├── bg_login@3x.jpg │ │ ├── build.xcconfig │ │ ├── checked.png │ │ ├── checked@2x.png │ │ ├── checked@3x.png │ │ ├── checked_white.png │ │ ├── checked_white@2x.png │ │ ├── checked_white@3x.png │ │ ├── delete.png │ │ ├── delete@2x.png │ │ ├── delete@3x.png │ │ ├── logo_login.png │ │ ├── logo_login@2x.png │ │ ├── logo_login@3x.png │ │ ├── logo_signup.png │ │ ├── logo_signup@2x.png │ │ ├── logo_signup@3x.png │ │ ├── menu.png │ │ ├── menu@2x.png │ │ ├── menu@3x.png │ │ ├── nonselected.png │ │ ├── nonselected@2x.png │ │ ├── nonselected@3x.png │ │ ├── pear.png │ │ ├── pear@2x.png │ │ ├── pear@3x.png │ │ ├── recent.png │ │ ├── recent@2x.png │ │ ├── recent@3x.png │ │ ├── selected.png │ │ ├── selected@2x.png │ │ ├── selected@3x.png │ │ ├── unchecked.png │ │ ├── unchecked@2x.png │ │ ├── unchecked@3x.png │ │ ├── unchecked_white.png │ │ ├── unchecked_white@2x.png │ │ └── unchecked_white@3x.png ├── app.component.ts ├── app.css ├── app.module.ngfactory.d.ts ├── app.module.ts ├── app.routing.ts ├── auth-guard.service.ts ├── groceries │ ├── groceries-common.css │ ├── groceries.component.android.css │ ├── groceries.component.html │ ├── groceries.component.ios.css │ ├── groceries.component.ts │ ├── groceries.module.ts │ ├── groceries.routing.ts │ ├── grocery-list │ │ ├── grocery-list.component.css │ │ ├── grocery-list.component.html │ │ ├── grocery-list.component.ts │ │ └── item-status.pipe.ts │ └── shared │ │ ├── grocery.model.ts │ │ ├── grocery.service.ts │ │ └── index.ts ├── login │ ├── login-common.css │ ├── login.component.android.css │ ├── login.component.html │ ├── login.component.ios.css │ ├── login.component.ts │ ├── login.module.ts │ └── login.routing.ts ├── main.aot.ts ├── main.ts ├── package.json ├── platform.android.css ├── platform.ios.css ├── shared │ ├── backend.service.ts │ ├── dialog-util.ts │ ├── index.ts │ ├── login.service.ts │ ├── status-bar-util.ts │ └── user.model.ts └── tests │ └── shared │ └── user │ └── user.spec.ts ├── assets ├── app-store-icons │ ├── google-play.png │ └── ios-app-store.png ├── sauceLabs │ └── SauceLabs-white.svg └── screenshots │ ├── android-1.png │ ├── android-2.png │ ├── android-3.png │ ├── ios-1.png │ ├── ios-2.png │ └── ios-3.png ├── e2e ├── config │ ├── appium.capabilities.json │ └── mocha.opts ├── groceries.e2e.ts ├── resources │ └── images │ │ └── sampleGroceries │ │ ├── Android Emulator │ │ └── itemDone.png │ │ ├── iPhone 6 │ │ └── itemDone.png │ │ └── iPhone 8 │ │ └── itemDone.png ├── setup.ts └── tsconfig.json ├── karma.conf.js ├── package.json ├── references.d.ts ├── tsconfig.esm.json ├── tsconfig.json ├── tsconfig.tns.json ├── tslint.json └── webpack.config.js /.ctags-exclude: -------------------------------------------------------------------------------- 1 | node_modules 2 | platforms 3 | android17.d.ts 4 | ios.d.ts 5 | *.js 6 | bin 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | .DS_Store 3 | 4 | *.js.map 5 | app/**/*.js 6 | e2e/**/*.js 7 | e2e/reports/ 8 | hooks/ 9 | lib/ 10 | node_modules/ 11 | platforms/ 12 | tmp/ 13 | typings/ 14 | report/ 15 | test-results.xml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | env: 2 | global: 3 | - ANDROID_PACKAGE='sampleGroceries.apk' 4 | - ANDROID_PACKAGE_FOLDER=$TRAVIS_BUILD_DIR/platforms/android/app/build/outputs/apk/debug/ 5 | - ANDROID_SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER/$ANDROID_PACKAGE?overwrite=true" 6 | - IOS_PACKAGE='sampleGroceries.zip' 7 | - IOS_APP_NAME='sampleGroceries.app' 8 | - IOS_PACKAGE_FOLDER=$TRAVIS_BUILD_DIR/platforms/ios/build/Debug-iphonesimulator 9 | - IOS_SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER/$IOS_PACKAGE?overwrite=true" 10 | branches: 11 | only: 12 | - master 13 | matrix: 14 | include: 15 | - stage: "Lint" 16 | language: node_js 17 | os: linux 18 | node_js: "10" 19 | install: true 20 | script: npm i && npm run tslint 21 | - stage: "Build" 22 | os: osx 23 | env: 24 | - BuildiOS="12" 25 | - Xcode="10.0" 26 | osx_image: xcode10 27 | language: node_js 28 | node_js: "10" 29 | jdk: oraclejdk8 30 | script: 31 | - tns build ios --bundle --env.aot --env.uglify 32 | - cd $IOS_PACKAGE_FOLDER && zip -r $IOS_PACKAGE $IOS_APP_NAME 33 | - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $IOS_SAUCE_STORAGE --data-binary @$IOS_PACKAGE_FOLDER/$IOS_PACKAGE" 34 | - language: android 35 | env: 36 | - BuildAndroid="28" 37 | os: linux 38 | jdk: oraclejdk8 39 | before_install: nvm install 10 40 | script: 41 | - tns build android --bundle --env.aot --env.uglify --env.snapshot 42 | - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $ANDROID_SAUCE_STORAGE --data-binary @$ANDROID_PACKAGE_FOLDER/app-debug.apk" 43 | - stage: "UI Tests" 44 | env: 45 | - AndroidEmulator="23" 46 | language: node_js 47 | os: linux 48 | node_js: "10" 49 | script: 50 | # - npm i -g appium@1.8.0 51 | - npm i 52 | - travis_retry npm run e2e -- --runType android23 --sauceLab --appPath $ANDROID_PACKAGE 53 | - os: linux 54 | env: 55 | - iOS="11" 56 | language: node_js 57 | node_js: "10" 58 | script: 59 | # - npm i -g appium@1.8.0 60 | - npm i 61 | - travis_wait travis_retry npm run e2e -- --runType sim.iPhone8 --sauceLab --appPath $IOS_PACKAGE 62 | android: 63 | components: 64 | - tools 65 | - platform-tools 66 | - build-tools-28.0.3 67 | - android-28 68 | - extra-android-m2repository 69 | 70 | before_cache: 71 | - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock 72 | cache: 73 | directories: 74 | - .nvm 75 | - $HOME/.gradle/caches/ 76 | - $HOME/.gradle/wrapper/ 77 | 78 | install: 79 | - pip install six 80 | - echo no | npm install -g nativescript@latest --ignore-scripts 81 | - tns usage-reporting disable 82 | - tns error-reporting disable 83 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "type": "node", 6 | "request": "launch", 7 | "name": "Mocha Tests", 8 | "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", 9 | "args": [ 10 | "--runType", 11 | "android23", 12 | "--sauceLab", 13 | "-v", 14 | "--appPath", 15 | "sampleGroceries.apk", 16 | "--timeout", 17 | "999999", 18 | "-u", 19 | "tdd", 20 | "--timeout", 21 | "999999", 22 | "--colors", 23 | "${workspaceFolder}/e2e" 24 | ], 25 | "internalConsoleOptions": "openOnSessionStart" 26 | }, 27 | { 28 | "name": "Sync on iOS", 29 | "type": "nativescript", 30 | "platform": "ios", 31 | "request": "launch", 32 | "appRoot": "${workspaceRoot}", 33 | "sourceMaps": true, 34 | "diagnosticLogging": false, 35 | "emulator": false, 36 | "rebuild": false, 37 | "syncAllFiles": false 38 | }, 39 | { 40 | "name": "Launch on iOS", 41 | "type": "nativescript", 42 | "platform": "ios", 43 | "request": "launch", 44 | "appRoot": "${workspaceRoot}", 45 | "sourceMaps": true, 46 | "diagnosticLogging": false, 47 | "emulator": false, 48 | "rebuild": true 49 | }, 50 | { 51 | "name": "Attach on iOS", 52 | "type": "nativescript", 53 | "platform": "ios", 54 | "request": "attach", 55 | "appRoot": "${workspaceRoot}", 56 | "sourceMaps": true, 57 | "diagnosticLogging": false, 58 | "emulator": false 59 | }, 60 | { 61 | "name": "Sync on Android", 62 | "type": "nativescript", 63 | "platform": "android", 64 | "request": "launch", 65 | "appRoot": "${workspaceRoot}", 66 | "sourceMaps": true, 67 | "diagnosticLogging": false, 68 | "emulator": false, 69 | "rebuild": false 70 | }, 71 | { 72 | "name": "Launch on Android", 73 | "type": "nativescript", 74 | "platform": "android", 75 | "request": "launch", 76 | "appRoot": "${workspaceRoot}", 77 | "sourceMaps": true, 78 | "diagnosticLogging": false, 79 | "emulator": false, 80 | "rebuild": true 81 | }, 82 | { 83 | "name": "Attach on Android", 84 | "type": "nativescript", 85 | "platform": "android", 86 | "request": "attach", 87 | "appRoot": "${workspaceRoot}", 88 | "sourceMaps": true, 89 | "diagnosticLogging": false, 90 | "emulator": false 91 | } 92 | ] 93 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "**/*.js": { "when": "$(basename).ts" }, 5 | "**/*.map": { "when": "$(basename).map" } 6 | } 7 | } -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # NativeScript Community Code of Conduct 2 | 3 | Our community members come from all walks of life and are all at different stages of their personal and professional journeys. To support everyone, we've prepared a short code of conduct. Our mission is best served in an environment that is friendly, safe, and accepting; free from intimidation or harassment. 4 | 5 | Towards this end, certain behaviors and practices will not be tolerated. 6 | 7 | ## tl;dr 8 | 9 | - Be respectful. 10 | - We're here to help. 11 | - Abusive behavior is never tolerated. 12 | - Violations of this code may result in swift and permanent expulsion from the NativeScript community channels. 13 | 14 | ## Administrators 15 | 16 | - Dan Wilson (@DanWilson on Slack) 17 | - Jen Looper (@jen.looper on Slack) 18 | - TJ VanToll (@tjvantoll on Slack) 19 | 20 | ## Scope 21 | 22 | We expect all members of the NativeScript community, including administrators, users, facilitators, and vendors to abide by this Code of Conduct at all times in our community venues, online and in person, and in one-on-one communications pertaining to NativeScript affairs. 23 | 24 | This policy covers the usage of the NativeScript Slack community, as well as the NativeScript support forums, NativeScript GitHub repositories, the NativeScript website, and any NativeScript-related events. This Code of Conduct is in addition to, and does not in any way nullify or invalidate, any other terms or conditions related to use of NativeScript. 25 | 26 | The definitions of various subjective terms such as "discriminatory", "hateful", or "confusing" will be decided at the sole discretion of the NativeScript administrators. 27 | 28 | ## Friendly, Harassment-Free Space 29 | 30 | We are committed to providing a friendly, safe, and welcoming environment for all, regardless of gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics. 31 | 32 | We ask that you please respect that people have differences of opinion regarding technical choices, and acknowledge that every design or implementation choice carries a trade-off and numerous costs. There is seldom a single right answer. A difference of technology preferences is never a license to be rude. 33 | 34 | Any spamming, trolling, flaming, baiting, or other attention-stealing behaviour is not welcome, and will not be tolerated. 35 | 36 | Harassing other users of NativeScript is never tolerated, whether via public or private media. 37 | 38 | Avoid using offensive or harassing package names, nicknames, or other identifiers that might detract from a friendly, safe, and welcoming environment for all. 39 | 40 | Harassment includes, but is not limited to: harmful or prejudicial verbal or written comments related to gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics; inappropriate use of nudity, sexual images, and/or sexually explicit language in public spaces; threats of physical or non-physical harm; deliberate intimidation, stalking or following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention. 41 | 42 | ## Acceptable Content 43 | 44 | The NativeScript administrators reserve the right to make judgement calls about what is and isn't appropriate in published content. These are guidelines to help you be successful in our community. 45 | 46 | Content must contain something applicable to the previously stated goals of the NativeScript community. "Spamming", that is, publishing any form of content that is not applicable, is not allowed. 47 | 48 | Content must not contain illegal or infringing content. You should only publish content to NativeScript properties if you have the right to do so. This includes complying with all software license agreements or other intellectual property restrictions. For example, redistributing an MIT-licensed module with the copyright notice removed, would not be allowed. You will be responsible for any violation of laws or others’ intellectual property rights. 49 | 50 | Content must not be malware. For example, content (code, video, pictures, words, etc.) which is designed to maliciously exploit or damage computer systems, is not allowed. 51 | 52 | Content name, description, and other visible metadata must not include abusive, inappropriate, or harassing content. 53 | 54 | ## Reporting Violations of this Code of Conduct 55 | 56 | If you believe someone is harassing you or has otherwise violated this Code of Conduct, please contact the administrators and send us an abuse report. If this is the initial report of a problem, please include as much detail as possible. It is easiest for us to address issues when we have more context. 57 | 58 | ## Consequences 59 | 60 | All content published to the NativeScript community channels is hosted at the sole discretion of the NativeScript administrators. 61 | 62 | Unacceptable behavior from any community member, including sponsors, employees, customers, or others with decision-making authority, will not be tolerated. 63 | 64 | Anyone asked to stop unacceptable behavior is expected to comply immediately. 65 | 66 | If a community member engages in unacceptable behavior, the NativeScript administrators may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event or service). 67 | 68 | ## Addressing Grievances 69 | 70 | If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify the administrators. We will do our best to ensure that your grievance is handled appropriately. 71 | 72 | In general, we will choose the course of action that we judge as being most in the interest of fostering a safe and friendly community. 73 | 74 | ## Contact Info 75 | Please contact Dan Wilson @DanWilson if you need to report a problem or address a grievance related to an abuse report. 76 | 77 | You are also encouraged to contact us if you are curious about something that might be "on the line" between appropriate and inappropriate content. We are happy to provide guidance to help you be a successful part of our community. 78 | 79 | ## Credit and License 80 | 81 | This Code of Conduct borrows heavily from the WADE Code of Conduct, which is derived from the NodeBots Code of Conduct, which in turn borrows from the npm Code of Conduct, which was derived from the Stumptown Syndicate Citizen's Code of Conduct, and the Rust Project Code of Conduct. 82 | 83 | This document may be reused under a Creative Commons Attribution-ShareAlike License. -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Groceries [![Build Status](https://travis-ci.org/NativeScript/sample-Groceries.svg?branch=master)](https://travis-ci.org/NativeScript/sample-Groceries) 2 | 3 | Groceries is a NativeScript-built iOS and Android app for managing grocery lists. You can learn how to build a version of this app from scratch using either our [JavaScript getting started guide](http://docs.nativescript.org/tutorial/chapter-0), or our [TypeScript and Angular getting started guide](http://docs.nativescript.org/angular/tutorial/ng-chapter-0). 4 | 5 | 6 | 7 | * [Screenshots](#screenshots) 8 | * [Development](#development) 9 | * [Linting](#linting) 10 | * [Unit testing](#unit-testing) 11 | * [Travis CI](#travis) 12 | * [Contributors](#contributors) 13 | 14 |

Screenshots

15 | 16 | ![](assets/screenshots/ios-1.png) 17 | ![](assets/screenshots/ios-2.png) 18 | ![](assets/screenshots/ios-3.png) 19 | 20 | ![](assets/screenshots/android-1.png) 21 | ![](assets/screenshots/android-2.png) 22 | ![](assets/screenshots/android-3.png) 23 | 24 |

Development

25 | 26 | This app is built with the NativeScript CLI. Once you have the [CLI installed](https://docs.nativescript.org/start/quick-setup), start by cloning the repo: 27 | 28 | ``` 29 | $ git clone https://github.com/NativeScript/sample-Groceries.git 30 | $ cd sample-Groceries 31 | ``` 32 | 33 | From there you can use the `run` command to run Groceries on iOS: 34 | 35 | ``` 36 | $ tns run ios 37 | ``` 38 | 39 | And the same command to run Groceries on Android: 40 | 41 | ``` 42 | $ tns run android 43 | ``` 44 | 45 |

Linting

46 | 47 | Groceries uses [tslint](https://www.npmjs.com/package/tslint) + [codelyzer](https://github.com/mgechev/codelyzer) rules to ensure the code follows the [angular style guide](https://angular.io/docs/ts/latest/guide/style-guide.html). 48 | 49 | You can run the linter with the `tslint` npm script: 50 | ``` 51 | $ npm run tslint 52 | ``` 53 | 54 |

Unit Testing

55 | 56 | Groceries uses NativeScript’s [integrated unit test runner](http://docs.nativescript.org/core-concepts/testing) with [Jasmine](http://jasmine.github.io/). To run the tests for yourself use the `tns test` command: 57 | 58 | ``` 59 | $ tns test ios --emulator 60 | ``` 61 | 62 | ``` 63 | $ tns test android --emulator 64 | ``` 65 | 66 | For more information on unit testing NativeScript apps, refer to the [NativeScript docs on the topic](http://docs.nativescript.org/core-concepts/testing). 67 | 68 |

Travis CI

69 | 70 | Groceries uses [Travis CI](https://travis-ci.org/) to verify all tests pass on each commit. Refer to the [`.travis.yml` configuration file](https://github.com/NativeScript/sample-Groceries/blob/release/.travis.yml) for details. 71 | 72 |

Contributors

73 | 74 | The following is a list of all the people that have helped build Groceries. Thanks for your contributions! 75 | 76 | [tjvantoll](https://github.com/tjvantoll)[hdeshev](https://github.com/hdeshev)[vakrilov](https://github.com/vakrilov)[Mitko-Kerezov](https://github.com/Mitko-Kerezov)[jlooper](https://github.com/jlooper)[rosen-vladimirov](https://github.com/rosen-vladimirov) 77 | 78 | [SvetoslavTsenov](https://github.com/SvetoslavTsenov)[ligaz](https://github.com/ligaz)[sis0k0](https://github.com/sis0k0)[wdulin](https://github.com/wdulin)[dtopuzov](https://github.com/dtopuzov)[nadyaA](https://github.com/nadyaA) 79 | 80 | [vchimev](https://github.com/vchimev)[covex-nn](https://github.com/covex-nn)[bundyo](https://github.com/bundyo)[EddyVerbruggen](https://github.com/EddyVerbruggen)[NathanWalker](https://github.com/NathanWalker)[nsndeck](https://github.com/nsndeck) 81 | 82 | [tzraikov](https://github.com/tzraikov)[TsvetanMilanov](https://github.com/TsvetanMilanov)[bradmartin](https://github.com/bradmartin)[cmelo](https://github.com/cmelo) 83 | 84 | 85 | 86 | 87 | 88 | ![](https://ga-beacon.appspot.com/UA-111455-24/nativescript/sample-groceries?pixel) 89 | 90 | ### Big Thanks 91 | 92 | Cross-browser Testing Platform and Open Source Provided by [Sauce Labs](https://saucelabs.com). 93 | 94 | [SauceLabs](https://saucelabs.com) 95 | -------------------------------------------------------------------------------- /app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "org.nativescript.groceries" 12 | 13 | //override supported platforms 14 | // ndk { 15 | // abiFilters.clear() 16 | // abiFilters "armeabi-v7a" 17 | // } 18 | 19 | } 20 | aaptOptions { 21 | additionalParameters "--no-version-vectors" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 28 | 29 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/apple.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/banana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/banana.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/bg_inner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/bg_inner.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/bg_login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/bg_login.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/ic_unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/logo_login.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/logo_signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/logo_signup.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/pear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/pear.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-hdpi/unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/apple.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/banana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/banana.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/bg_inner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/bg_inner.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/bg_login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/bg_login.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/ic_unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/logo_login.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/logo_signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/logo_signup.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/pear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/pear.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-mdpi/unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/apple.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/banana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/banana.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/bg_inner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/bg_inner.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/bg_login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/bg_login.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo_login.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/logo_signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo_signup.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/pear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/pear.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xhdpi/unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/apple.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/banana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/banana.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/bg_inner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/bg_inner.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/bg_login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/bg_login.jpg -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo_login.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo_signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo_signup.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/pear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/pear.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxhdpi/unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/apple.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/banana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/banana.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_add.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_checked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_delete.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/ic_unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo_login.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo_signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo_signup.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/menu.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/pear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/pear.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/recent.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/selected.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #757575 5 | #33B5E5 6 | #272734 7 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Groceries 4 | Groceries 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "57x57", 35 | "idiom" : "iphone", 36 | "filename" : "icon-57.png", 37 | "scale" : "1x" 38 | }, 39 | { 40 | "size" : "57x57", 41 | "idiom" : "iphone", 42 | "filename" : "icon-57@2x.png", 43 | "scale" : "2x" 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" : "29x29", 59 | "idiom" : "ipad", 60 | "filename" : "icon-29.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "icon-29@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "40x40", 71 | "idiom" : "ipad", 72 | "filename" : "icon-40.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "icon-40@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "50x50", 83 | "idiom" : "ipad", 84 | "filename" : "icon-50.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "50x50", 89 | "idiom" : "ipad", 90 | "filename" : "icon-50@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "72x72", 95 | "idiom" : "ipad", 96 | "filename" : "icon-72.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "72x72", 101 | "idiom" : "ipad", 102 | "filename" : "icon-72@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "76x76", 107 | "idiom" : "ipad", 108 | "filename" : "icon-76.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "76x76", 113 | "idiom" : "ipad", 114 | "filename" : "icon-76@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "83.5x83.5", 119 | "idiom" : "ipad", 120 | "filename" : "icon-83.5@2x.png", 121 | "scale" : "2x" 122 | } 123 | ], 124 | "info" : { 125 | "version" : 1, 126 | "author" : "xcode" 127 | } 128 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "736h", 7 | "filename" : "Default-736h@3x.png", 8 | "minimum-system-version" : "8.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "extent" : "full-screen", 14 | "idiom" : "iphone", 15 | "subtype" : "736h", 16 | "filename" : "Default-Landscape@3x.png", 17 | "minimum-system-version" : "8.0", 18 | "orientation" : "landscape", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "667h", 25 | "filename" : "Default-667h@2x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "filename" : "Default@2x.png", 34 | "extent" : "full-screen", 35 | "minimum-system-version" : "7.0", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "extent" : "full-screen", 40 | "idiom" : "iphone", 41 | "subtype" : "retina4", 42 | "filename" : "Default-568h@2x.png", 43 | "minimum-system-version" : "7.0", 44 | "orientation" : "portrait", 45 | "scale" : "2x" 46 | }, 47 | { 48 | "orientation" : "portrait", 49 | "idiom" : "ipad", 50 | "filename" : "Default-Portrait.png", 51 | "extent" : "full-screen", 52 | "minimum-system-version" : "7.0", 53 | "scale" : "1x" 54 | }, 55 | { 56 | "orientation" : "landscape", 57 | "idiom" : "ipad", 58 | "filename" : "Default-Landscape.png", 59 | "extent" : "full-screen", 60 | "minimum-system-version" : "7.0", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "orientation" : "portrait", 65 | "idiom" : "ipad", 66 | "filename" : "Default-Portrait@2x.png", 67 | "extent" : "full-screen", 68 | "minimum-system-version" : "7.0", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "orientation" : "landscape", 73 | "idiom" : "ipad", 74 | "filename" : "Default-Landscape@2x.png", 75 | "extent" : "full-screen", 76 | "minimum-system-version" : "7.0", 77 | "scale" : "2x" 78 | }, 79 | { 80 | "orientation" : "portrait", 81 | "idiom" : "iphone", 82 | "filename" : "Default.png", 83 | "extent" : "full-screen", 84 | "scale" : "1x" 85 | }, 86 | { 87 | "orientation" : "portrait", 88 | "idiom" : "iphone", 89 | "filename" : "Default@2x.png", 90 | "extent" : "full-screen", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "orientation" : "portrait", 95 | "idiom" : "iphone", 96 | "filename" : "Default-568h@2x.png", 97 | "extent" : "full-screen", 98 | "subtype" : "retina4", 99 | "scale" : "2x" 100 | }, 101 | { 102 | "orientation" : "portrait", 103 | "idiom" : "ipad", 104 | "extent" : "to-status-bar", 105 | "scale" : "1x" 106 | }, 107 | { 108 | "orientation" : "portrait", 109 | "idiom" : "ipad", 110 | "filename" : "Default-Portrait.png", 111 | "extent" : "full-screen", 112 | "scale" : "1x" 113 | }, 114 | { 115 | "orientation" : "landscape", 116 | "idiom" : "ipad", 117 | "extent" : "to-status-bar", 118 | "scale" : "1x" 119 | }, 120 | { 121 | "orientation" : "landscape", 122 | "idiom" : "ipad", 123 | "filename" : "Default-Landscape.png", 124 | "extent" : "full-screen", 125 | "scale" : "1x" 126 | }, 127 | { 128 | "orientation" : "portrait", 129 | "idiom" : "ipad", 130 | "extent" : "to-status-bar", 131 | "scale" : "2x" 132 | }, 133 | { 134 | "orientation" : "portrait", 135 | "idiom" : "ipad", 136 | "filename" : "Default-Portrait@2x.png", 137 | "extent" : "full-screen", 138 | "scale" : "2x" 139 | }, 140 | { 141 | "orientation" : "landscape", 142 | "idiom" : "ipad", 143 | "extent" : "to-status-bar", 144 | "scale" : "2x" 145 | }, 146 | { 147 | "orientation" : "landscape", 148 | "idiom" : "ipad", 149 | "filename" : "Default-Landscape@2x.png", 150 | "extent" : "full-screen", 151 | "scale" : "2x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /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 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/iTunesArtwork@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/iTunesArtwork@1x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/iTunesArtwork@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/Assets.xcassets/iTunesArtwork@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Groceries 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | IPHONEOS_DEPLOYMENT_TARGET 14 | 9.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiresFullScreen 30 | 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | UIViewControllerBasedStatusBarAppearance 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/add.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/add@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/add@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/add@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/add@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/apple.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/apple@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/apple@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/apple@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/apple@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/banana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/banana.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/banana@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/banana@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/banana@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/banana@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/bg_inner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/bg_inner.jpg -------------------------------------------------------------------------------- /app/App_Resources/iOS/bg_inner@2x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/bg_inner@2x.jpg -------------------------------------------------------------------------------- /app/App_Resources/iOS/bg_inner@3x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/bg_inner@3x.jpg -------------------------------------------------------------------------------- /app/App_Resources/iOS/bg_login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/bg_login.jpg -------------------------------------------------------------------------------- /app/App_Resources/iOS/bg_login@2x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/bg_login@2x.jpg -------------------------------------------------------------------------------- /app/App_Resources/iOS/bg_login@3x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/bg_login@3x.jpg -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/checked.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/checked@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/checked@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/checked@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/checked@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/checked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/checked_white.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/checked_white@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/checked_white@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/checked_white@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/checked_white@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/delete.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/delete@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/delete@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/delete@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/delete@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/logo_login.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/logo_login@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/logo_login@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/logo_login@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/logo_login@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/logo_signup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/logo_signup.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/logo_signup@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/logo_signup@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/logo_signup@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/logo_signup@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/menu.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/menu@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/menu@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/menu@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/menu@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/nonselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/nonselected.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/nonselected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/nonselected@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/nonselected@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/nonselected@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/pear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/pear.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/pear@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/pear@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/pear@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/pear@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/recent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/recent.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/recent@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/recent@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/recent@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/recent@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/selected.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/selected@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/selected@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/selected@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/selected@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/unchecked.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/unchecked@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/unchecked@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/unchecked@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/unchecked@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/unchecked_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/unchecked_white.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/unchecked_white@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/unchecked_white@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/unchecked_white@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/App_Resources/iOS/unchecked_white@3x.png -------------------------------------------------------------------------------- /app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from "@angular/core"; 2 | 3 | @Component({ 4 | selector: "gr-main", 5 | template: "" 6 | }) 7 | export class AppComponent { } 8 | -------------------------------------------------------------------------------- /app/app.css: -------------------------------------------------------------------------------- 1 | @import url("./platform.css"); 2 | 3 | Page { 4 | font-size: 15; 5 | background-color: black; 6 | } 7 | ActionBar { 8 | background-color: black; 9 | color: white; 10 | } 11 | TextField { 12 | padding: 10; 13 | font-size: 13; 14 | } 15 | .line-through { 16 | text-decoration: line-through; 17 | } 18 | -------------------------------------------------------------------------------- /app/app.module.ngfactory.d.ts: -------------------------------------------------------------------------------- 1 | export const AppModuleNgFactory: any; -------------------------------------------------------------------------------- /app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NativeScriptModule } from "nativescript-angular/nativescript.module"; 2 | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; 3 | import { NativeScriptHttpClientModule } from "nativescript-angular/http-client"; 4 | import { NativeScriptRouterModule } from "nativescript-angular/router"; 5 | 6 | import { authProviders, appRoutes } from "./app.routing"; 7 | import { AppComponent } from "./app.component"; 8 | import { setStatusBarColors, BackendService, LoginService } from "./shared"; 9 | 10 | import { LoginModule } from "./login/login.module"; 11 | import { GroceriesModule } from "./groceries/groceries.module"; 12 | 13 | setStatusBarColors(); 14 | 15 | @NgModule({ 16 | providers: [ 17 | BackendService, 18 | LoginService, 19 | authProviders 20 | ], 21 | imports: [ 22 | NativeScriptModule, 23 | NativeScriptHttpClientModule, 24 | NativeScriptRouterModule, 25 | NativeScriptRouterModule.forRoot(appRoutes), 26 | LoginModule, 27 | GroceriesModule, 28 | ], 29 | declarations: [ 30 | AppComponent, 31 | ], 32 | bootstrap: [AppComponent], 33 | schemas: [NO_ERRORS_SCHEMA] 34 | }) 35 | export class AppModule { } 36 | -------------------------------------------------------------------------------- /app/app.routing.ts: -------------------------------------------------------------------------------- 1 | import { AuthGuard } from "./auth-guard.service"; 2 | 3 | export const authProviders = [ 4 | AuthGuard 5 | ]; 6 | 7 | export const appRoutes = [ 8 | { path: "", redirectTo: "/groceries", pathMatch: "full" } 9 | ]; 10 | -------------------------------------------------------------------------------- /app/auth-guard.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from "@angular/core"; 2 | import { Router, CanActivate } from "@angular/router"; 3 | 4 | import { BackendService } from "./shared/backend.service"; 5 | 6 | @Injectable() 7 | export class AuthGuard implements CanActivate { 8 | constructor(private router: Router) { } 9 | 10 | canActivate() { 11 | if (BackendService.isLoggedIn()) { 12 | return true; 13 | } 14 | else { 15 | this.router.navigate(["/login"]); 16 | return false; 17 | } 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /app/groceries/groceries-common.css: -------------------------------------------------------------------------------- 1 | .background { 2 | background-image: url("res://bg_inner"); 3 | background-repeat: no-repeat; 4 | background-position: center; 5 | background-size: cover; 6 | } 7 | 8 | .action-bar-custom { 9 | color: white; 10 | margin-top: 26; 11 | margin-bottom: 16; 12 | } 13 | .action-bar-custom Label { 14 | font-size: 21; 15 | font-weight: bold; 16 | } 17 | .action-bar-custom GridLayout { 18 | height: 40; 19 | padding-left: 15; 20 | padding-right: 15; 21 | } 22 | .action-bar-custom GridLayout Image { 23 | vertical-align: center; 24 | } 25 | 26 | .add-bar { 27 | background-color: #CB1D00; 28 | padding-left: 16; 29 | padding-right: 16; 30 | height: 50; 31 | } 32 | .add-bar-image-container { 33 | height: 50; 34 | vertical-align: center; 35 | margin-left: -15; 36 | padding-left: 15; 37 | padding-right: 13; 38 | } 39 | .add-bar Image { 40 | height: 20; 41 | } 42 | TextField { 43 | color: white; 44 | placeholder-color: white; 45 | background-color: transparent; 46 | font-size: 15; 47 | border-width: 0; 48 | padding: 0; 49 | margin-left: 1; 50 | } 51 | .add-bar-recent-label { 52 | vertical-align: center; 53 | color: #311217; 54 | } 55 | .add-bar-recent-container { 56 | height: 50; 57 | padding-left: 10; 58 | padding-right: 10; 59 | margin-right: -10; 60 | vertical-align: center; 61 | } 62 | .add-bar-recent-toggle { 63 | color: #311217; 64 | } 65 | 66 | ActivityIndicator { 67 | horizontal-align: center; 68 | vertical-align: center; 69 | } 70 | -------------------------------------------------------------------------------- /app/groceries/groceries.component.android.css: -------------------------------------------------------------------------------- 1 | .add-bar-recent-toggle { 2 | text-transform: uppercase; 3 | } -------------------------------------------------------------------------------- /app/groceries/groceries.component.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 10 | 13 | 14 | 15 | 18 | 21 | 22 | 23 | 24 | 25 | 30 | 34 | 37 | 38 | 46 | 51 | 55 | 58 | 59 | 60 | 61 | 62 | 67 | 68 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /app/groceries/groceries.component.ios.css: -------------------------------------------------------------------------------- 1 | .action-bar-custom { 2 | margin-top: 12; 3 | } 4 | -------------------------------------------------------------------------------- /app/groceries/groceries.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ElementRef, OnInit, ViewChild } from "@angular/core"; 2 | import { Router } from "@angular/router"; 3 | import { action } from "tns-core-modules/ui/dialogs"; 4 | import { Page } from "tns-core-modules/ui/page"; 5 | import { TextField } from "tns-core-modules/ui/text-field"; 6 | import * as SocialShare from "nativescript-social-share"; 7 | 8 | import { GroceryService } from "./shared"; 9 | import { LoginService, alert } from "../shared"; 10 | 11 | @Component({ 12 | selector: "gr-groceries", 13 | moduleId: module.id, 14 | templateUrl: "./groceries.component.html", 15 | styleUrls: ["./groceries-common.css", "./groceries.component.css"], 16 | providers: [GroceryService] 17 | }) 18 | export class GroceriesComponent implements OnInit { 19 | grocery: string = ""; 20 | isShowingRecent = false; 21 | isLoading = false; 22 | 23 | @ViewChild("groceryTextField", { static: false }) groceryTextField: ElementRef; 24 | 25 | constructor(private router: Router, 26 | private store: GroceryService, 27 | private loginService: LoginService, 28 | private page: Page) {} 29 | 30 | ngOnInit() { 31 | this.page.actionBarHidden = true; 32 | } 33 | 34 | // Prevent the first textfield from receiving focus on Android 35 | // See http://stackoverflow.com/questions/5056734/android-force-edittext-to-remove-focus 36 | handleAndroidFocus(textField, container) { 37 | if (container.android) { 38 | container.android.setFocusableInTouchMode(true); 39 | container.android.setFocusable(true); 40 | textField.android.clearFocus(); 41 | } 42 | } 43 | 44 | showActivityIndicator() { 45 | this.isLoading = true; 46 | } 47 | hideActivityIndicator() { 48 | this.isLoading = false; 49 | } 50 | 51 | add(target: string) { 52 | // If showing recent groceries the add button should do nothing. 53 | if (this.isShowingRecent) { 54 | return; 55 | } 56 | 57 | let textField = this.groceryTextField.nativeElement; 58 | 59 | if (this.grocery.trim() === "") { 60 | // If the user clicked the add button, and the textfield is empty, 61 | // focus the text field and return. 62 | if (target === "button") { 63 | textField.focus(); 64 | } else { 65 | // If the user clicked return with an empty text field show an error. 66 | alert("Enter a grocery item"); 67 | } 68 | return; 69 | } 70 | 71 | // Dismiss the keyboard 72 | // TODO: Is it better UX to dismiss the keyboard, or leave it up so the 73 | // user can continue to add more groceries? 74 | textField.dismissSoftInput(); 75 | 76 | this.showActivityIndicator(); 77 | this.store.add(this.grocery) 78 | .subscribe( 79 | () => { 80 | this.grocery = ""; 81 | this.hideActivityIndicator(); 82 | }, 83 | () => { 84 | alert("An error occurred while adding an item to your list."); 85 | this.hideActivityIndicator(); 86 | } 87 | ); 88 | } 89 | 90 | toggleRecent() { 91 | this.isShowingRecent = !this.isShowingRecent; 92 | } 93 | 94 | showMenu() { 95 | action({ 96 | message: "What would you like to do?", 97 | actions: ["Share", "Log Off"], 98 | cancelButtonText: "Cancel" 99 | }).then((result) => { 100 | if (result === "Share") { 101 | this.share(); 102 | } else if (result === "Log Off") { 103 | this.logoff(); 104 | } 105 | }); 106 | } 107 | 108 | share() { 109 | let items = this.store.items.value; 110 | let list = []; 111 | for (let i = 0, size = items.length; i < size ; i++) { 112 | list.push(items[i].name); 113 | } 114 | SocialShare.shareText(list.join(", ").trim()); 115 | } 116 | 117 | logoff() { 118 | this.loginService.logoff(); 119 | this.router.navigate(["/login"]); 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /app/groceries/groceries.module.ts: -------------------------------------------------------------------------------- 1 | import { NativeScriptCommonModule } from "nativescript-angular/common"; 2 | import { NativeScriptFormsModule } from "nativescript-angular/forms"; 3 | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; 4 | import { groceriesRouting } from "./groceries.routing"; 5 | import { GroceriesComponent } from "./groceries.component"; 6 | import { GroceryListComponent } from "./grocery-list/grocery-list.component"; 7 | import { ItemStatusPipe } from "./grocery-list/item-status.pipe"; 8 | 9 | @NgModule({ 10 | imports: [ 11 | NativeScriptFormsModule, 12 | NativeScriptCommonModule, 13 | groceriesRouting, 14 | ], 15 | declarations: [ 16 | GroceriesComponent, 17 | GroceryListComponent, 18 | ItemStatusPipe 19 | ], 20 | schemas: [NO_ERRORS_SCHEMA] 21 | }) 22 | export class GroceriesModule {} 23 | -------------------------------------------------------------------------------- /app/groceries/groceries.routing.ts: -------------------------------------------------------------------------------- 1 | import { ModuleWithProviders } from "@angular/core"; 2 | import { Routes, RouterModule } from "@angular/router"; 3 | 4 | import { GroceriesComponent } from "./groceries.component"; 5 | import { AuthGuard } from "../auth-guard.service"; 6 | 7 | const groceriesRoutes: Routes = [ 8 | { path: "groceries", component: GroceriesComponent, canActivate: [AuthGuard] }, 9 | ]; 10 | export const groceriesRouting: ModuleWithProviders = RouterModule.forChild(groceriesRoutes); -------------------------------------------------------------------------------- /app/groceries/grocery-list/grocery-list.component.css: -------------------------------------------------------------------------------- 1 | ListView { 2 | background-color: transparent; 3 | opacity: 0; 4 | } 5 | .visible { 6 | animation-name: show; 7 | animation-duration: 1s; 8 | animation-fill-mode: forwards; 9 | } 10 | @keyframes show { 11 | from { opacity: 0; } 12 | to { opacity: 1; } 13 | } 14 | .container { 15 | background-color: white; 16 | margin-top: 1; 17 | } 18 | .tap-target { 19 | padding-top: 13; 20 | padding-bottom: 13; 21 | padding-left: 16; 22 | } 23 | .tap-target Label { 24 | min-width: 200; 25 | } 26 | .check-box { 27 | margin-right: 10; 28 | height: 20; 29 | } 30 | .delete-container { 31 | padding: 10 15; 32 | vertical-align: middle; 33 | } 34 | .delete-container StackLayout { 35 | padding: 5; 36 | } 37 | .delete-container Image { 38 | height: 20; 39 | } 40 | -------------------------------------------------------------------------------- /app/groceries/grocery-list/grocery-list.component.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 11 | 12 | 17 | 20 | 23 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/groceries/grocery-list/grocery-list.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ChangeDetectionStrategy, EventEmitter, Input, Output, AfterViewInit } from "@angular/core"; 2 | 3 | import { Grocery, GroceryService } from "../shared"; 4 | import { alert } from "../../shared"; 5 | 6 | declare var UIColor: any; 7 | 8 | @Component({ 9 | selector: "gr-grocery-list", 10 | moduleId: module.id, 11 | templateUrl: "./grocery-list.component.html", 12 | styleUrls: ["./grocery-list.component.css"], 13 | changeDetection: ChangeDetectionStrategy.OnPush 14 | }) 15 | export class GroceryListComponent implements AfterViewInit { 16 | @Input() showDeleted: boolean; 17 | @Input() row; 18 | @Output() loading = new EventEmitter(); 19 | @Output() loaded = new EventEmitter(); 20 | 21 | public store: GroceryService; 22 | listLoaded = false; 23 | 24 | constructor(store: GroceryService) { 25 | this.store = store; 26 | } 27 | ngAfterViewInit() { 28 | this.load(); 29 | } 30 | load() { 31 | this.loading.next(""); 32 | this.store.load() 33 | .subscribe( 34 | () => { 35 | this.loaded.next(""); 36 | this.listLoaded = true; 37 | }, 38 | () => { 39 | alert("An error occurred loading your grocery list."); 40 | } 41 | ); 42 | } 43 | 44 | // The following trick makes the background color of each cell 45 | // in the UITableView transparent as it’s created. 46 | makeBackgroundTransparent(args) { 47 | let cell = args.ios; 48 | if (cell) { 49 | // support XCode 8 50 | cell.backgroundColor = UIColor.clearColor; 51 | } 52 | } 53 | 54 | imageSource(grocery) { 55 | if (grocery.deleted) { 56 | return "res://add"; 57 | } 58 | return grocery.done ? "res://checked" : "res://unchecked"; 59 | } 60 | 61 | toggleDone(grocery: Grocery) { 62 | if (grocery.deleted) { 63 | this.store.unsetDeleteFlag(grocery) 64 | .subscribe( 65 | () => { }, 66 | () => { 67 | alert("An error occurred managing your grocery list."); 68 | } 69 | ); 70 | } else { 71 | this.store.toggleDoneFlag(grocery) 72 | .subscribe( 73 | () => { }, 74 | () => { 75 | alert("An error occurred managing your grocery list."); 76 | } 77 | ); 78 | } 79 | } 80 | 81 | delete(grocery: Grocery) { 82 | this.loading.next(""); 83 | let successHandler = () => this.loaded.next(""); 84 | let errorHandler = () => { 85 | alert("An error occurred while deleting an item from your list."); 86 | this.loaded.next(""); 87 | }; 88 | 89 | if (grocery.deleted) { 90 | this.store.permanentlyDelete(grocery) 91 | .subscribe(successHandler, errorHandler); 92 | } else { 93 | this.store.setDeleteFlag(grocery) 94 | .subscribe(successHandler, errorHandler); 95 | } 96 | } 97 | } 98 | 99 | -------------------------------------------------------------------------------- /app/groceries/grocery-list/item-status.pipe.ts: -------------------------------------------------------------------------------- 1 | import { Pipe, PipeTransform } from "@angular/core"; 2 | 3 | import { Grocery } from "../shared"; 4 | 5 | @Pipe({ 6 | name: "itemStatus" 7 | }) 8 | export class ItemStatusPipe implements PipeTransform { 9 | value: Array = []; 10 | transform(items: Array, deleted: boolean) { 11 | if (items instanceof Array) { 12 | this.value = items.filter((grocery: Grocery) => { 13 | return grocery.deleted === deleted; 14 | }); 15 | } 16 | return this.value; 17 | } 18 | } -------------------------------------------------------------------------------- /app/groceries/shared/grocery.model.ts: -------------------------------------------------------------------------------- 1 | export class Grocery { 2 | constructor( 3 | public id: string, 4 | public name: string, 5 | public done: boolean, 6 | public deleted: boolean 7 | ) {} 8 | } -------------------------------------------------------------------------------- /app/groceries/shared/grocery.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable, NgZone } from "@angular/core"; 2 | import { 3 | HttpClient, 4 | HttpHeaders, 5 | HttpErrorResponse, 6 | } from "@angular/common/http"; 7 | import { BehaviorSubject, throwError } from "rxjs"; 8 | import { map, catchError } from "rxjs/operators"; 9 | 10 | import { BackendService } from "../../shared"; 11 | import { Grocery } from "./grocery.model"; 12 | 13 | @Injectable() 14 | export class GroceryService { 15 | items: BehaviorSubject> = new BehaviorSubject([]); 16 | private allItems: Array = []; 17 | baseUrl = BackendService.baseUrl + "appdata/" + BackendService.appKey + "/Groceries"; 18 | 19 | constructor(private http: HttpClient, private zone: NgZone) { } 20 | 21 | load() { 22 | return this.http.get(this.baseUrl, { 23 | headers: this.getCommonHeaders() 24 | }) 25 | .pipe( 26 | map((data: any[]) => { 27 | this.allItems = data 28 | .sort((a, b) => { 29 | return a._kmd.lmt > b._kmd.lmt ? -1 : 1; 30 | }) 31 | .map( 32 | grocery => new Grocery( 33 | grocery._id, 34 | grocery.Name, 35 | grocery.Done || false, 36 | grocery.Deleted || false 37 | ) 38 | ); 39 | this.publishUpdates(); 40 | }), 41 | catchError(this.handleErrors) 42 | ); 43 | } 44 | 45 | add(name: string) { 46 | return this.http.post( 47 | this.baseUrl, 48 | JSON.stringify({ Name: name }), 49 | { headers: this.getCommonHeaders() } 50 | ) 51 | .pipe( 52 | map((data: any) => { 53 | this.allItems.unshift(new Grocery(data._id, name, false, false)); 54 | this.publishUpdates(); 55 | }), 56 | catchError(this.handleErrors) 57 | ); 58 | } 59 | 60 | setDeleteFlag(item: Grocery) { 61 | item.deleted = true; 62 | return this.put(item) 63 | .pipe( 64 | map(data => { 65 | item.done = false; 66 | this.publishUpdates(); 67 | }) 68 | ); 69 | } 70 | 71 | unsetDeleteFlag(item: Grocery) { 72 | item.deleted = false; 73 | return this.put(item) 74 | .pipe( 75 | map(data => { 76 | item.done = false; 77 | this.publishUpdates(); 78 | }) 79 | ); 80 | } 81 | 82 | 83 | toggleDoneFlag(item: Grocery) { 84 | item.done = !item.done; 85 | this.publishUpdates(); 86 | return this.put(item); 87 | } 88 | 89 | permanentlyDelete(item: Grocery) { 90 | return this.http 91 | .delete( 92 | this.baseUrl + "/" + item.id, 93 | { headers: this.getCommonHeaders() } 94 | ) 95 | .pipe( 96 | map(data => { 97 | let index = this.allItems.indexOf(item); 98 | this.allItems.splice(index, 1); 99 | this.publishUpdates(); 100 | }), 101 | catchError(this.handleErrors) 102 | ); 103 | } 104 | 105 | private put(grocery: Grocery) { 106 | return this.http.put( 107 | this.baseUrl + "/" + grocery.id, 108 | JSON.stringify({ 109 | Name: grocery.name, 110 | Done: grocery.done, 111 | Deleted: grocery.deleted 112 | }), 113 | { headers: this.getCommonHeaders() } 114 | ) 115 | .pipe(catchError(this.handleErrors)); 116 | } 117 | 118 | private publishUpdates() { 119 | // Make sure all updates are published inside NgZone so that change detection is triggered if needed 120 | this.zone.run(() => { 121 | // must emit a *new* value (immutability!) 122 | this.items.next([...this.allItems]); 123 | }); 124 | } 125 | 126 | private getCommonHeaders() { 127 | return new HttpHeaders({ 128 | "Content-Type": "application/json", 129 | "Authorization": "Kinvey " + BackendService.token, 130 | }); 131 | } 132 | 133 | private handleErrors(error: HttpErrorResponse) { 134 | console.log(error); 135 | return throwError(error); 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /app/groceries/shared/index.ts: -------------------------------------------------------------------------------- 1 | export { GroceryService } from "./grocery.service"; 2 | export { Grocery } from "./grocery.model"; -------------------------------------------------------------------------------- /app/login/login-common.css: -------------------------------------------------------------------------------- 1 | /* Hide a bunch of things to setup the initial animations */ 2 | .form-controls, .sign-up-stack { 3 | opacity: 0; 4 | } 5 | 6 | .background { 7 | background-image: url("res://bg_login"); 8 | background-repeat: no-repeat; 9 | background-size: cover; 10 | background-position: center; 11 | } 12 | 13 | /* TODO: Assigning explicit heights and applying this margin shouldn’t be necessary. */ 14 | .initial-container { 15 | margin-top: 170; 16 | } 17 | .initial-logo { 18 | horizontal-align: center; 19 | margin-bottom: 10; 20 | } 21 | .initial-label { 22 | color: white; 23 | horizontal-align: center; 24 | margin-bottom: 80; 25 | } 26 | .initial-button { 27 | background-color: white; 28 | color: #CB1D00; 29 | height: 45; 30 | width: 275; 31 | vertical-align: center; 32 | } 33 | .initial-button-label { 34 | horizontal-align: center; 35 | font-weight: bold; 36 | } 37 | 38 | .main-container { 39 | visibility: collapse; 40 | opacity: 0; 41 | margin-left: 30; 42 | margin-right: 30; 43 | background-color: white; 44 | } 45 | .main-label { 46 | horizontal-align: center; 47 | color: black; 48 | } 49 | 50 | Image { 51 | margin-top: 5; 52 | margin-bottom: 20; 53 | } 54 | Button, TextField { 55 | margin-left: 16; 56 | margin-right: 16; 57 | margin-bottom: 10; 58 | } 59 | TextField { 60 | color: black; 61 | placeholder-color: #ACA6A7; 62 | } 63 | TextField.light { 64 | color: #C4AFB4; 65 | placeholder-color: #C4AFB4; 66 | } 67 | .submit-button { 68 | background-color: #CB1D00; 69 | color: white; 70 | margin-top: 20; 71 | } 72 | 73 | .forgot-password-label { 74 | font-size: 13; 75 | margin-left: 20; 76 | margin-bottom: 45; 77 | color: black; 78 | } 79 | .sign-up-stack { 80 | background-color: #311217; 81 | } 82 | .sign-up-stack Label { 83 | color: white; 84 | text-align: center; 85 | font-size: 15; 86 | } 87 | 88 | .logo-container { 89 | visibility: collapse; 90 | horizontal-align: center; 91 | opacity: 0; 92 | } 93 | -------------------------------------------------------------------------------- /app/login/login.component.android.css: -------------------------------------------------------------------------------- 1 | .main-container { 2 | height: 360; 3 | width: 275; 4 | } 5 | .initial-label { 6 | font-size: 32; 7 | letter-spacing: 0.35; 8 | } 9 | .main-label { 10 | font-size: 28; 11 | margin-top: 32; 12 | margin-bottom: 32; 13 | letter-spacing: 0.3; 14 | } 15 | TextField { 16 | margin-bottom: 10; 17 | } 18 | .submit-button { 19 | margin-top: 15; 20 | } 21 | .sign-up-stack Label { 22 | padding-top: 5; 23 | height: 200; 24 | text-transform: uppercase; 25 | } 26 | .forgot-password-label { 27 | font-size: 13; 28 | text-transform: uppercase; 29 | } 30 | .logo-container Image { 31 | top: 90; 32 | } -------------------------------------------------------------------------------- /app/login/login.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 11 | 15 | 18 | 21 | 24 | 25 | 26 | 27 | 29 | 33 | 34 | 38 | 49 | 58 | 59 | 62 | 63 | 64 | 69 | 70 | 75 | 76 | 83 | 84 | 85 | 86 | 88 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /app/login/login.component.ios.css: -------------------------------------------------------------------------------- 1 | .main-container { 2 | height: 425; 3 | width: 300; 4 | } 5 | .initial-label { 6 | font-size: 40; 7 | letter-spacing: 0.2; 8 | } 9 | .main-label { 10 | color: #311217; 11 | font-size: 32; 12 | margin-top: 45; 13 | margin-bottom: 52; 14 | letter-spacing: 0.2; 15 | } 16 | TextField { 17 | border-width: 1; 18 | border-color: #6E595C; 19 | margin-bottom: 20; 20 | } 21 | .submit-button { 22 | height: 40; 23 | margin-top: 15; 24 | } 25 | .sign-up-stack Label { 26 | height: 48; 27 | } 28 | 29 | /* A height of zero ensures that the AbsoluteLayout container doesn’t steal taps 30 | from the various button and text field controls that sit behind it. */ 31 | .logo-container { 32 | height: 0; 33 | } 34 | .logo-container Image { 35 | top: -250; 36 | } -------------------------------------------------------------------------------- /app/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, ElementRef, OnInit, ViewChild } from "@angular/core"; 2 | import { Router } from "@angular/router"; 3 | import { Color } from "tns-core-modules/color"; 4 | import { connectionType, getConnectionType } from "tns-core-modules/connectivity"; 5 | import { Animation } from "tns-core-modules/ui/animation"; 6 | import { View } from "tns-core-modules/ui/core/view"; 7 | import { prompt } from "tns-core-modules/ui/dialogs"; 8 | import { Page } from "tns-core-modules/ui/page"; 9 | 10 | import { alert, LoginService, User } from "../shared"; 11 | 12 | @Component({ 13 | selector: "gr-login", 14 | moduleId: module.id, 15 | templateUrl: "./login.component.html", 16 | styleUrls: ["./login-common.css", "./login.component.css"], 17 | }) 18 | export class LoginComponent implements OnInit { 19 | user: User; 20 | isLoggingIn = true; 21 | isAuthenticating = false; 22 | 23 | @ViewChild("initialContainer", { static: false }) initialContainer: ElementRef; 24 | @ViewChild("mainContainer", { static: false }) mainContainer: ElementRef; 25 | @ViewChild("logoContainer", { static: false }) logoContainer: ElementRef; 26 | @ViewChild("formControls", { static: false }) formControls: ElementRef; 27 | @ViewChild("signUpStack", { static: false }) signUpStack: ElementRef; 28 | @ViewChild("password", { static: false }) password: ElementRef; 29 | 30 | constructor(private router: Router, 31 | private userService: LoginService, 32 | private page: Page) { 33 | this.user = new User(); 34 | // this.page.className = "login-page"; 35 | } 36 | 37 | ngOnInit() { 38 | this.page.actionBarHidden = true; 39 | } 40 | 41 | focusPassword() { 42 | this.password.nativeElement.focus(); 43 | } 44 | 45 | startBackgroundAnimation(background) { 46 | background.animate({ 47 | scale: { x: 1.0, y: 1.0 }, 48 | duration: 10000 49 | }); 50 | } 51 | 52 | submit() { 53 | if (!this.user.isValidEmail()) { 54 | alert("Enter a valid email address."); 55 | return; 56 | } 57 | 58 | this.isAuthenticating = true; 59 | if (this.isLoggingIn) { 60 | this.login(); 61 | } else { 62 | this.signUp(); 63 | } 64 | } 65 | 66 | login() { 67 | if (getConnectionType() === connectionType.none) { 68 | alert("Groceries requires an internet connection to log in."); 69 | return; 70 | } 71 | 72 | this.userService.login(this.user) 73 | .subscribe( 74 | () => { 75 | this.isAuthenticating = false; 76 | this.router.navigate(["/"]); 77 | }, 78 | (error) => { 79 | alert("Unfortunately we could not find your account."); 80 | this.isAuthenticating = false; 81 | } 82 | ); 83 | } 84 | 85 | signUp() { 86 | if (getConnectionType() === connectionType.none) { 87 | alert("Groceries requires an internet connection to register."); 88 | return; 89 | } 90 | 91 | this.userService.register(this.user) 92 | .subscribe( 93 | () => { 94 | alert("Your account was successfully created."); 95 | this.isAuthenticating = false; 96 | this.toggleDisplay(); 97 | }, 98 | (errorDetails) => { 99 | if (errorDetails.error && errorDetails.error.error === "UserAlreadyExists") { 100 | alert("This email address is already in use."); 101 | } else { 102 | alert("Unfortunately we were unable to create your account."); 103 | } 104 | this.isAuthenticating = false; 105 | } 106 | ); 107 | } 108 | 109 | forgotPassword() { 110 | prompt({ 111 | title: "Forgot Password", 112 | message: "Enter the email address you used to register for Groceries to reset your password.", 113 | defaultText: "", 114 | okButtonText: "Ok", 115 | cancelButtonText: "Cancel" 116 | }).then((data) => { 117 | if (data.result) { 118 | this.userService.resetPassword(data.text.trim()) 119 | .subscribe(() => { 120 | alert("Your password was successfully reset. Please check your email for instructions on choosing a new password."); 121 | }, () => { 122 | alert("Unfortunately, an error occurred resetting your password."); 123 | }); 124 | } 125 | }); 126 | } 127 | 128 | toggleDisplay() { 129 | this.isLoggingIn = !this.isLoggingIn; 130 | let mainContainer = this.mainContainer.nativeElement; 131 | mainContainer.animate({ 132 | backgroundColor: this.isLoggingIn ? new Color("white") : new Color("#301217"), 133 | duration: 200 134 | }); 135 | } 136 | 137 | showMainContent() { 138 | let initialContainer = this.initialContainer.nativeElement; 139 | let mainContainer = this.mainContainer.nativeElement; 140 | let logoContainer = this.logoContainer.nativeElement; 141 | let formControls = this.formControls.nativeElement; 142 | let signUpStack = this.signUpStack.nativeElement; 143 | let animations = []; 144 | 145 | // Fade out the initial content over one half second 146 | initialContainer.animate({ 147 | opacity: 0, 148 | duration: 500 149 | }).then(function() { 150 | // After the animation completes, hide the initial container and 151 | // show the main container and logo. The main container and logo will 152 | // not immediately appear because their opacity is set to 0 in CSS. 153 | initialContainer.style.visibility = "collapse"; 154 | mainContainer.style.visibility = "visible"; 155 | logoContainer.style.visibility = "visible"; 156 | 157 | // Fade in the main container and logo over one half second. 158 | animations.push({ target: mainContainer, opacity: 1, duration: 500 }); 159 | animations.push({ target: logoContainer, opacity: 1, duration: 500 }); 160 | 161 | // Slide up the form controls and sign up container. 162 | animations.push({ target: signUpStack, translate: { x: 0, y: 0 }, opacity: 1, delay: 500, duration: 150 }); 163 | animations.push({ target: formControls, translate: { x: 0, y: 0 }, opacity: 1, delay: 650, duration: 150 }); 164 | 165 | // Kick off the animation queue 166 | new Animation(animations, false).play(); 167 | }); 168 | } 169 | } 170 | -------------------------------------------------------------------------------- /app/login/login.module.ts: -------------------------------------------------------------------------------- 1 | import { NativeScriptCommonModule } from "nativescript-angular/common"; 2 | import { NativeScriptFormsModule } from "nativescript-angular/forms"; 3 | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; 4 | 5 | import { loginRouting } from "./login.routing"; 6 | import { LoginComponent } from "./login.component"; 7 | 8 | @NgModule({ 9 | imports: [ 10 | NativeScriptFormsModule, 11 | NativeScriptCommonModule, 12 | loginRouting, 13 | ], 14 | declarations: [ 15 | LoginComponent 16 | ], 17 | schemas: [NO_ERRORS_SCHEMA] 18 | }) 19 | export class LoginModule { } 20 | -------------------------------------------------------------------------------- /app/login/login.routing.ts: -------------------------------------------------------------------------------- 1 | import { ModuleWithProviders } from "@angular/core"; 2 | import { Routes, RouterModule } from "@angular/router"; 3 | 4 | import { LoginComponent } from "./login.component"; 5 | 6 | const loginRoutes: Routes = [ 7 | { path: "login", component: LoginComponent }, 8 | ]; 9 | export const loginRouting: ModuleWithProviders = RouterModule.forChild(loginRoutes); -------------------------------------------------------------------------------- /app/main.aot.ts: -------------------------------------------------------------------------------- 1 | // this import should be first in order to load some required settings (like globals and reflect-metadata) 2 | import { platformNativeScript } from "nativescript-angular/platform-static"; 3 | 4 | import { AppModuleNgFactory } from "./app.module.ngfactory"; 5 | 6 | platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory); 7 | -------------------------------------------------------------------------------- /app/main.ts: -------------------------------------------------------------------------------- 1 | import { platformNativeScriptDynamic } from "nativescript-angular/platform"; 2 | import { AppModule } from "./app.module"; 3 | 4 | platformNativeScriptDynamic().bootstrapModule(AppModule); 5 | -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc", 4 | "markingMode": "none" 5 | }, 6 | "main": "main.js" 7 | } 8 | -------------------------------------------------------------------------------- /app/platform.android.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/app/platform.android.css -------------------------------------------------------------------------------- /app/platform.ios.css: -------------------------------------------------------------------------------- 1 | TextField { 2 | border-width: 1; 3 | border-color: black; 4 | } -------------------------------------------------------------------------------- /app/shared/backend.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from "@angular/core"; 2 | import { getString, setString } from "tns-core-modules/application-settings"; 3 | 4 | const tokenKey = "token"; 5 | 6 | export class BackendService { 7 | static baseUrl = "https://baas.kinvey.com/"; 8 | static appKey = "kid_HyHoT_REf"; 9 | static appUserHeader = "Basic a2lkX0h5SG9UX1JFZjo1MTkxMDJlZWFhMzQ0MzMyODFjN2MyODM3MGQ5OTIzMQ"; 10 | static apiUrl = ""; 11 | 12 | static isLoggedIn(): boolean { 13 | return !!getString(tokenKey); 14 | } 15 | 16 | static get token(): string { 17 | return getString(tokenKey); 18 | } 19 | 20 | static set token(theToken: string) { 21 | setString(tokenKey, theToken); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/shared/dialog-util.ts: -------------------------------------------------------------------------------- 1 | import * as dialogsModule from "tns-core-modules/ui/dialogs"; 2 | 3 | export function alert(message: string) { 4 | return dialogsModule.alert({ 5 | title: "Groceries", 6 | okButtonText: "OK", 7 | message: message 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /app/shared/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./backend.service"; 2 | export * from "./user.model"; 3 | export * from "./login.service"; 4 | export * from "./dialog-util"; 5 | export * from "./status-bar-util"; -------------------------------------------------------------------------------- /app/shared/login.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable } from "@angular/core"; 2 | import { HttpHeaders, HttpClient, HttpErrorResponse } from "@angular/common/http"; 3 | import { throwError } from "rxjs"; 4 | import { tap, catchError } from "rxjs/operators"; 5 | 6 | import { User } from "./user.model"; 7 | import { BackendService } from "./backend.service"; 8 | 9 | @Injectable() 10 | export class LoginService { 11 | constructor(private http: HttpClient) { } 12 | 13 | register(user: User) { 14 | return this.http.post( 15 | BackendService.baseUrl + "user/" + BackendService.appKey, 16 | JSON.stringify({ 17 | username: user.email, 18 | email: user.email, 19 | password: user.password 20 | }), 21 | { headers: this.getCommonHeaders() } 22 | ) 23 | .pipe(catchError(this.handleErrors)); 24 | } 25 | 26 | login(user: User) { 27 | return this.http.post( 28 | BackendService.baseUrl + "user/" + BackendService.appKey + "/login", 29 | JSON.stringify({ 30 | username: user.email, 31 | password: user.password 32 | }), 33 | { headers: this.getCommonHeaders() } 34 | ) 35 | .pipe( 36 | tap((data: any) => { 37 | BackendService.token = data._kmd.authtoken; 38 | }), 39 | catchError(this.handleErrors) 40 | ); 41 | } 42 | 43 | logoff() { 44 | BackendService.token = ""; 45 | } 46 | 47 | resetPassword(email) { 48 | return this.http.post( 49 | BackendService.baseUrl + "rpc/" + BackendService.appKey + "/" + email + "/user-password-reset-initiate", 50 | {}, 51 | { headers: this.getCommonHeaders() } 52 | ).pipe(catchError(this.handleErrors)); 53 | } 54 | 55 | private getCommonHeaders() { 56 | return new HttpHeaders({ 57 | "Content-Type": "application/json", 58 | "Authorization": BackendService.appUserHeader, 59 | }); 60 | } 61 | 62 | private handleErrors(error: HttpErrorResponse) { 63 | console.log(JSON.stringify(error)); 64 | return throwError(error); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /app/shared/status-bar-util.ts: -------------------------------------------------------------------------------- 1 | import * as application from "tns-core-modules/application"; 2 | import * as platform from "tns-core-modules/platform"; 3 | 4 | declare var android: any; 5 | 6 | export function setStatusBarColors() { 7 | // Make the Android status bar transparent. 8 | // See http://bradmartin.net/2016/03/10/fullscreen-and-navigation-bar-color-in-a-nativescript-android-app/ 9 | // for details on the technique used. 10 | if (application.android && platform.device.sdkVersion >= "21") { 11 | application.android.on("activityStarted", () => { 12 | const View = android.view.View; 13 | const window = application.android.startActivity.getWindow(); 14 | window.setStatusBarColor(0x000000); 15 | 16 | const decorView = window.getDecorView(); 17 | decorView.setSystemUiVisibility( 18 | View.SYSTEM_UI_FLAG_LAYOUT_STABLE 19 | | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 20 | | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN 21 | | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY); 22 | }); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/shared/user.model.ts: -------------------------------------------------------------------------------- 1 | const validator = require("email-validator"); 2 | 3 | export class User { 4 | email: string; 5 | password: string; 6 | isValidEmail() { 7 | return validator.validate(this.email); 8 | } 9 | } -------------------------------------------------------------------------------- /app/tests/shared/user/user.spec.ts: -------------------------------------------------------------------------------- 1 | import "reflect-metadata"; 2 | import { User } from "../../../shared"; 3 | 4 | declare var describe: any; 5 | declare var expect: any; 6 | declare var it: any; 7 | 8 | describe("Email validation", function() { 9 | let user = new User(); 10 | 11 | it("Should reject an empty email address", function () { 12 | user.email = ""; 13 | expect(user.isValidEmail()).toBe(false); 14 | }); 15 | 16 | it("Should reject a malformed email addresses", function() { 17 | user.email = "nativescript"; 18 | expect(user.isValidEmail()).toBe(false); 19 | 20 | user.email = "nativescript@"; 21 | expect(user.isValidEmail()).toBe(false); 22 | 23 | user.email = "nativescript@isawesome"; 24 | expect(user.isValidEmail()).toBe(false); 25 | }); 26 | 27 | it("Should accept valid email addresses", function() { 28 | user.email = "nativescript@isawesome.com"; 29 | expect(user.isValidEmail()).toBe(true); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /assets/app-store-icons/google-play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/app-store-icons/google-play.png -------------------------------------------------------------------------------- /assets/app-store-icons/ios-app-store.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/app-store-icons/ios-app-store.png -------------------------------------------------------------------------------- /assets/sauceLabs/SauceLabs-white.svg: -------------------------------------------------------------------------------- 1 | Powered by Sauce Labs badges whiteTESTING POWERED BY -------------------------------------------------------------------------------- /assets/screenshots/android-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/screenshots/android-1.png -------------------------------------------------------------------------------- /assets/screenshots/android-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/screenshots/android-2.png -------------------------------------------------------------------------------- /assets/screenshots/android-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/screenshots/android-3.png -------------------------------------------------------------------------------- /assets/screenshots/ios-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/screenshots/ios-1.png -------------------------------------------------------------------------------- /assets/screenshots/ios-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/screenshots/ios-2.png -------------------------------------------------------------------------------- /assets/screenshots/ios-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/assets/screenshots/ios-3.png -------------------------------------------------------------------------------- /e2e/config/appium.capabilities.json: -------------------------------------------------------------------------------- 1 | { 2 | "android19": { 3 | "platformName": "Android", 4 | "platformVersion": "4.4", 5 | "deviceName": "Emulator-Api19-Default", 6 | "avd": "Emulator-Api19-Default", 7 | "lt": 60000, 8 | "appActivity": "com.tns.NativeScriptActivity", 9 | "newCommandTimeout": 720, 10 | "noReset": true, 11 | "fullReset": false, 12 | "app": "" 13 | }, 14 | "android21": { 15 | "platformName": "Android", 16 | "platformVersion": "5.0", 17 | "deviceName": "Emulator-Api21-Default", 18 | "avd": "Emulator-Api21-Default", 19 | "lt": 60000, 20 | "appActivity": "com.tns.NativeScriptActivity", 21 | "newCommandTimeout": 720, 22 | "noReset": true, 23 | "fullReset": false, 24 | "app": "" 25 | }, 26 | "android23": { 27 | "platformName": "Android", 28 | "platformVersion": "6.0", 29 | "deviceName": "Android Emulator", 30 | "appiumVersion": "1.8.0", 31 | "relaxed-security": true, 32 | "noReset": true, 33 | "resetKeyboard": true, 34 | "app": "" 35 | }, 36 | "android24": { 37 | "platformName": "Android", 38 | "platformVersion": "7.0", 39 | "deviceName": "Emulator-Api24-Default", 40 | "avd": "Emulator-Api24-Default", 41 | "lt": 60000, 42 | "appActivity": "com.tns.NativeScriptActivity", 43 | "newCommandTimeout": 720, 44 | "noReset": true, 45 | "fullReset": false, 46 | "app": "" 47 | }, 48 | "android25": { 49 | "platformName": "Android", 50 | "platformVersion": "7.1", 51 | "deviceName": "Emulator-Api25-Google", 52 | "avd": "Emulator-Api25-Google", 53 | "lt": 60000, 54 | "appActivity": "com.tns.NativeScriptActivity", 55 | "newCommandTimeout": 720, 56 | "noReset": true, 57 | "fullReset": false, 58 | "app": "" 59 | }, 60 | "android26": { 61 | "platformName": "Android", 62 | "platformVersion": "8.0", 63 | "deviceName": "Emulator-Api26-Google", 64 | "avd": "Emulator-Api26-Google", 65 | "lt": 60000, 66 | "newCommandTimeout": 720, 67 | "noReset": true, 68 | "fullReset": false, 69 | "app": "" 70 | }, 71 | "sim.iPhone6.iOS100": { 72 | "platformName": "iOS", 73 | "platformVersion": "10.0", 74 | "deviceName": "iPhone 6", 75 | "noReset": true, 76 | "fullReset": false, 77 | "app": "", 78 | "density": 2, 79 | "offsetPixels": 33 80 | }, 81 | "sim.iPhone7": { 82 | "platformName": "iOS", 83 | "platformVersion": "11.2", 84 | "deviceName": "iPhone 7", 85 | "noReset": true, 86 | "fullReset": false, 87 | "app": "" 88 | }, 89 | "sim.iPhone8": { 90 | "platformName": "iOS", 91 | "platformVersion": "11.2", 92 | "deviceName": "iPhone 8", 93 | "noReset": true, 94 | "fullReset": false, 95 | "app": "" 96 | }, 97 | "sim.iPhoneX.iOS110": { 98 | "platformName": "iOS", 99 | "platformVersion": "11.0", 100 | "deviceName": "iPhone X", 101 | "noReset": true, 102 | "fullReset": false, 103 | "app": "" 104 | }, 105 | "android23.local": { 106 | "platformName": "Android", 107 | "platformVersion": "6.0", 108 | "deviceName": "Emulator-Api23-Default", 109 | "noReset": true, 110 | "appium-version": "1.7.1" 111 | } 112 | } -------------------------------------------------------------------------------- /e2e/config/mocha.opts: -------------------------------------------------------------------------------- 1 | --timeout 1000000 2 | --recursive e2e 3 | --exit -------------------------------------------------------------------------------- /e2e/groceries.e2e.ts: -------------------------------------------------------------------------------- 1 | import { AppiumDriver, createDriver, SearchOptions } from "nativescript-dev-appium"; 2 | import { expect } from "chai"; 3 | 4 | describe("Groceries", async function () { 5 | let driver: AppiumDriver; 6 | const loginButtonText = "Login"; 7 | const email = "groceries@mailinator.com"; 8 | const password = "123"; 9 | const fruit = "apple"; 10 | const recentButtonText = "Recent"; 11 | const doneButtonText = "Done"; 12 | const logOffButtonText = "Log Off"; 13 | const invalidEmail = "groceries@mailinator"; 14 | const invalidEmailWarningText = "valid email"; 15 | const okButtonText = "OK"; 16 | const cancelButtonText = "Cancel"; 17 | const signUpHereButtonText = "Sign up here"; 18 | const signUpButtonText = "Sign up"; 19 | const backToLoginButtonText = "Back to login"; 20 | const forgotPasswordButtonText = "Forgot"; 21 | const forgotPasswordFormText = "reset"; 22 | 23 | const clickOnCrossOrCheckboxBtn = async () => { 24 | if (driver.isAndroid) { 25 | // First image is the menu, second is the cross button. The rest are pairs checkbox/bin per list item. 26 | const allImages = await driver.findElementsByClassName(driver.locators.image); 27 | await allImages[2].click(); // Checkbox button 28 | } else { 29 | await driver.clickPoint(26, 160); // Checkbox button 30 | } 31 | }; 32 | 33 | const clickOnBinButton = async () => { 34 | if (driver.isAndroid) { 35 | // First image is the menu, second is the cross button. The rest are pairs checkbox/bin per list item. 36 | const allImages = await driver.findElementsByClassName(driver.locators.image); 37 | for (let i = 3; i < allImages.length; i = i + 2) { 38 | await allImages[3].click(); // Bin button of the first list item 39 | } 40 | } else { 41 | const allImages = await driver.findElementsByText(fruit); 42 | for (let i = 0; i < allImages.length; i++) { 43 | await driver.clickPoint(345, 166); // Bin button of the first list item 44 | } 45 | } 46 | }; 47 | 48 | before(async () => { 49 | driver = await createDriver(); 50 | driver.defaultWaitTime = 15000; 51 | }); 52 | 53 | after(async () => { 54 | if (driver.nsCapabilities.isSauceLab) { 55 | driver.sessionId().then(function (sessionId) { 56 | console.log("Report: https://saucelabs.com/beta/tests/" + sessionId); 57 | }); 58 | } 59 | await driver.quit(); 60 | console.log("Driver quits!"); 61 | }); 62 | 63 | it("should log in", async () => { 64 | const loginButton = await driver.findElementByText(loginButtonText, SearchOptions.exact); 65 | await loginButton.click(); 66 | if (driver.isAndroid) { 67 | const allFields = await driver.findElementsByClassName(driver.locators.getElementByName("textfield")); 68 | await allFields[0].sendKeys(email); 69 | await allFields[1].sendKeys(password); 70 | if (driver.nsCapabilities.isSauceLab) { 71 | await driver.driver.hideDeviceKeyboard("Done"); 72 | } 73 | } else { 74 | const usernameField = await driver.findElementByClassName(driver.locators.getElementByName("textfield")); 75 | await usernameField.sendKeys(email); 76 | const passField = await driver.findElementByClassName(driver.locators.getElementByName("securetextfield")); 77 | await passField.sendKeys(password); 78 | const done = await driver.findElementByText("Done", SearchOptions.contains); 79 | await done.click(); 80 | } 81 | const loginBtn = await driver.findElementByText(loginButtonText, SearchOptions.exact); 82 | await loginBtn.click(); 83 | const recentButton = await driver.findElementByText(recentButtonText, SearchOptions.exact); 84 | expect(recentButton).to.exist; 85 | }); 86 | 87 | it("should add element in the list", async () => { 88 | const addField = await driver.findElementByClassName(driver.locators.getElementByName("textfield")); 89 | await addField.sendKeys(fruit); 90 | const allImages = await driver.findElementsByClassName(driver.locators.image); // First image is the menu, second is the cross adding to the list. 91 | await allImages[1].click(); // Cross image button to add the item. 92 | const appleItem = await driver.findElementByText(fruit); 93 | expect(appleItem).to.exist; 94 | }); 95 | 96 | it("should mark element as Done", async () => { 97 | await clickOnCrossOrCheckboxBtn(); 98 | const appleItem = await driver.findElementByText(fruit); 99 | const isItemDone = await driver.compareElement(appleItem, "itemDone", 0.07); 100 | expect(isItemDone).to.be.true; 101 | }); 102 | 103 | it("should delete item from the list", async () => { 104 | await clickOnBinButton(); 105 | const appleListItemXpath = await driver.elementHelper.getXPathByText(fruit, SearchOptions.exact); 106 | const appleItem = await driver.findElementByXPathIfExists(appleListItemXpath, 10000); 107 | expect(appleItem).to.be.undefined; 108 | }); 109 | 110 | it("should find deleted item in Recent", async () => { 111 | const recentButton = await driver.findElementByText(recentButtonText); 112 | await recentButton.click(); 113 | const appleItem = await driver.findElementByText(fruit); 114 | expect(appleItem).to.exist; 115 | }); 116 | 117 | it("should return back an item from the Recent list", async () => { 118 | await clickOnCrossOrCheckboxBtn(); 119 | const doneButton = await driver.findElementByText(doneButtonText); 120 | await doneButton.click(); 121 | const appleItem = await driver.findElementByText(fruit); 122 | expect(appleItem).to.exist; 123 | }); 124 | 125 | it("should delete item from the Groceries list and remove it from Recent", async () => { 126 | await clickOnBinButton(); 127 | const recentButton = await driver.findElementByText(recentButtonText); 128 | await recentButton.click(); 129 | 130 | await clickOnBinButton(); 131 | 132 | const appleListItemXpath = await driver.elementHelper.getXPathByText(fruit, SearchOptions.contains); 133 | const appleItem = await driver.findElementByXPathIfExists(appleListItemXpath, 10000); 134 | expect(appleItem).to.be.undefined; 135 | }); 136 | 137 | it("should log off", async () => { 138 | // First image is the menu, second is the clock/cross button. The rest are pairs checkbox/bin per list item. 139 | await driver.sleep(2000); 140 | const allImages = await driver.findElementsByClassName(driver.locators.image); 141 | await allImages[0].click(); // Menu button 142 | const logOffButton = await driver.findElementByText(logOffButtonText); 143 | await logOffButton.click(); 144 | const loginButton = await driver.findElementByText(loginButtonText, SearchOptions.contains); 145 | expect(loginButton).to.exist; 146 | }); 147 | 148 | it("should warn for invalid email", async () => { 149 | const loginButton = await driver.findElementByText(loginButtonText, SearchOptions.exact); 150 | await loginButton.click(); 151 | const usernameField = await driver.findElementByClassName(driver.locators.getElementByName("textfield")); 152 | await usernameField.sendKeys(invalidEmail); 153 | if (driver.isAndroid) { 154 | if (driver.nsCapabilities.isSauceLab) { 155 | await driver.driver.hideDeviceKeyboard("Done"); 156 | } 157 | } else { 158 | const done = await driver.findElementByText("Done", SearchOptions.contains); 159 | await done.click(); 160 | } 161 | const loginBtn = await driver.findElementByText(loginButtonText, SearchOptions.exact); 162 | await loginBtn.click(); 163 | const invalidEmailWarning = await driver.findElementByText(invalidEmailWarningText, SearchOptions.contains); 164 | expect(invalidEmailWarning).to.exist; 165 | const okButton = await driver.findElementByText(okButtonText); 166 | await okButton.click(); 167 | }); 168 | 169 | it("should open sign up form", async () => { 170 | const signUpHereButton = await driver.findElementByText(signUpHereButtonText); 171 | await signUpHereButton.click(); 172 | const signUpButton = await driver.findElementByText(signUpButtonText, SearchOptions.exact); 173 | expect(signUpButton).to.exist; 174 | const backToLoginButton = await driver.findElementByText(backToLoginButtonText); 175 | await backToLoginButton.click(); 176 | }); 177 | 178 | it("should open Forgot password form", async () => { 179 | const forgotPasswordButton = await driver.findElementByText(forgotPasswordButtonText, SearchOptions.contains); 180 | await forgotPasswordButton.click(); 181 | const forgotPasswordForm = await driver.findElementByText(forgotPasswordFormText, SearchOptions.contains); 182 | expect(forgotPasswordForm).to.exist; 183 | const cancelButton = await driver.findElementByText(cancelButtonText); 184 | await cancelButton.click(); 185 | }); 186 | }); -------------------------------------------------------------------------------- /e2e/resources/images/sampleGroceries/Android Emulator/itemDone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/e2e/resources/images/sampleGroceries/Android Emulator/itemDone.png -------------------------------------------------------------------------------- /e2e/resources/images/sampleGroceries/iPhone 6/itemDone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/e2e/resources/images/sampleGroceries/iPhone 6/itemDone.png -------------------------------------------------------------------------------- /e2e/resources/images/sampleGroceries/iPhone 8/itemDone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/sample-Groceries/7b0cca917754dcc5f121529aad531d7c5d63b5a8/e2e/resources/images/sampleGroceries/iPhone 8/itemDone.png -------------------------------------------------------------------------------- /e2e/setup.ts: -------------------------------------------------------------------------------- 1 | import { startServer, stopServer } from "nativescript-dev-appium"; 2 | 3 | before("start server", async () => { 4 | await startServer(); 5 | }); 6 | 7 | after("stop server", async () => { 8 | await stopServer(); 9 | }); -------------------------------------------------------------------------------- /e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "importHelpers": false, 8 | "types": [ 9 | "node", 10 | "mocha", 11 | "chai" 12 | ], 13 | "lib": [ 14 | "es2015", 15 | "dom" 16 | ] 17 | } 18 | } -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | module.exports = function (config) { 2 | const options = { 3 | 4 | // base path that will be used to resolve all patterns (eg. files, exclude) 5 | basePath: '', 6 | 7 | 8 | // frameworks to use 9 | // available frameworks: https://npmjs.org/browse/keyword/karma-adapter 10 | frameworks: ['jasmine'], 11 | 12 | 13 | // list of files / patterns to load in the browser 14 | files: ['app/tests/**/*.*'], 15 | 16 | 17 | // list of files to exclude 18 | exclude: [ 19 | ], 20 | 21 | 22 | // preprocess matching files before serving them to the browser 23 | // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor 24 | preprocessors: { 25 | }, 26 | 27 | 28 | // test results reporter to use 29 | // possible values: 'dots', 'progress' 30 | // available reporters: https://npmjs.org/browse/keyword/karma-reporter 31 | reporters: ['progress'], 32 | 33 | 34 | // web server port 35 | port: 9876, 36 | 37 | 38 | // enable / disable colors in the output (reporters and logs) 39 | colors: true, 40 | 41 | 42 | // level of logging 43 | // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG 44 | logLevel: config.LOG_INFO, 45 | 46 | 47 | // enable / disable watching file and executing tests whenever any file changes 48 | autoWatch: true, 49 | 50 | 51 | // start these browsers 52 | // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher 53 | browsers: [], 54 | 55 | customLaunchers: { 56 | android: { 57 | base: 'NS', 58 | platform: 'android' 59 | }, 60 | ios: { 61 | base: 'NS', 62 | platform: 'ios' 63 | }, 64 | ios_simulator: { 65 | base: 'NS', 66 | platform: 'ios', 67 | arguments: ['--emulator'] 68 | } 69 | }, 70 | 71 | // Continuous Integration mode 72 | // if true, Karma captures browsers, runs the tests and exits 73 | singleRun: false 74 | }; 75 | 76 | setWebpackPreprocessor(config, options); 77 | setWebpack(config, options); 78 | 79 | config.set(options); 80 | } 81 | 82 | function setWebpackPreprocessor(config, options) { 83 | if (config && config.bundle) { 84 | if (!options.preprocessors) { 85 | options.preprocessors = {}; 86 | } 87 | 88 | options.files.forEach(file => { 89 | if (!options.preprocessors[file]) { 90 | options.preprocessors[file] = []; 91 | } 92 | options.preprocessors[file].push('webpack'); 93 | }); 94 | } 95 | } 96 | 97 | function setWebpack(config, options) { 98 | if (config && config.bundle) { 99 | const env = {}; 100 | env[config.platform] = true; 101 | env.sourceMap = config.debugBrk; 102 | options.webpack = require('./webpack.config')(env); 103 | delete options.webpack.entry; 104 | delete options.webpack.output.libraryTarget; 105 | const invalidPluginsForUnitTesting = ["GenerateBundleStarterPlugin", "GenerateNativeScriptEntryPointsPlugin"]; 106 | options.webpack.plugins = options.webpack.plugins.filter(p => !invalidPluginsForUnitTesting.includes(p.constructor.name)); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sample-groceries", 3 | "version": "1.0.0", 4 | "description": "A NativeScript-built iOS and Android app for managing grocery lists", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/nativescript/sample-Groceries.git" 8 | }, 9 | "keywords": [ 10 | "NativeScript" 11 | ], 12 | "author": "TJ VanToll (https://www.tjvantoll.com/)", 13 | "license": "MIT", 14 | "bugs": { 15 | "url": "https://github.com/nativescript/sample-Groceries/issues" 16 | }, 17 | "homepage": "https://github.com/nativescript/sample-Groceries/groceries", 18 | "nativescript": { 19 | "id": "org.nativescript.groceries", 20 | "tns-android": { 21 | "version": "6.0.1" 22 | }, 23 | "tns-ios": { 24 | "version": "6.0.2" 25 | } 26 | }, 27 | "scripts": { 28 | "tslint": "tslint -p tsconfig.json", 29 | "ns-bundle": "ns-bundle", 30 | "start-android-bundle": "npm run ns-bundle --android --run-app", 31 | "start-ios-bundle": "npm run ns-bundle --ios --run-app", 32 | "build-android-bundle": "npm run ns-bundle --android --build-app", 33 | "build-ios-bundle": "npm run ns-bundle --ios --build-app", 34 | "publish-ios-bundle": "npm run ns-bundle --ios --publish-app", 35 | "generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install", 36 | "e2e": "tsc -p e2e && mocha --opts ./e2e/config/mocha.opts", 37 | "watch-tests": "tsc -p e2e --watch", 38 | "update-app-ng-deps": "update-app-ng-deps", 39 | "ns-verify-bundle": "ns-verify-bundle", 40 | "update-ns-webpack": "update-ns-webpack" 41 | }, 42 | "dependencies": { 43 | "@angular/common": "~8.2.0", 44 | "@angular/compiler": "~8.2.0", 45 | "@angular/core": "~8.2.0", 46 | "@angular/forms": "~8.2.0", 47 | "@angular/platform-browser": "~8.2.0", 48 | "@angular/platform-browser-dynamic": "~8.2.0", 49 | "@angular/router": "~8.2.0", 50 | "email-validator": "^2.0.4", 51 | "nativescript-angular": "~8.2.0", 52 | "nativescript-iqkeyboardmanager": "~1.3.0", 53 | "nativescript-social-share": "~1.5.1", 54 | "nativescript-unit-test-runner": "0.7.0", 55 | "reflect-metadata": "~0.1.8", 56 | "rxjs": "^6.4.0", 57 | "tns-core-modules": "~6.0.1", 58 | "zone.js": "^0.9.1" 59 | }, 60 | "devDependencies": { 61 | "@angular/compiler-cli": "8.2.0", 62 | "@ngtools/webpack": "8.2.0", 63 | "@types/chai": "~4.1.7", 64 | "@types/mocha": "~5.2.5", 65 | "@types/node": "~10.12.18", 66 | "babel-traverse": "6.26.0", 67 | "babel-types": "6.26.0", 68 | "babylon": "6.18.0", 69 | "codelyzer": "^4.5.0", 70 | "filewalker": "^0.1.3", 71 | "jasmine-core": "^3.3.0", 72 | "karma": "4.1.0", 73 | "karma-jasmine": "2.0.1", 74 | "karma-nativescript-launcher": "^0.4.0", 75 | "karma-webpack": "3.0.5", 76 | "lazy": "1.0.11", 77 | "mocha": "~5.2.0", 78 | "mocha-junit-reporter": "~1.18.0", 79 | "mocha-multi": "~1.0.1", 80 | "nativescript-dev-appium": "next", 81 | "nativescript-dev-webpack": "~1.1.0", 82 | "tslint": "^5.4.2", 83 | "typescript": "~3.5.3" 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /references.d.ts: -------------------------------------------------------------------------------- 1 | /// Needed for autocompletion and compilation. -------------------------------------------------------------------------------- /tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "es2015", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "experimentalDecorators": true, 6 | "emitDecoratorMetadata": true, 7 | "noEmitHelpers": true, 8 | "noEmitOnError": true, 9 | "lib": [ 10 | "dom", 11 | "es6", 12 | "es2015.iterable" 13 | ], 14 | "baseUrl": ".", 15 | "paths": { 16 | "*": [ 17 | "./node_modules/tns-core-modules/*", 18 | "./node_modules/*" 19 | ], 20 | "~/*": [ 21 | "app/*" 22 | ] 23 | } 24 | }, 25 | "exclude": [ 26 | "node_modules", 27 | "platforms", 28 | "e2e" 29 | ] 30 | } -------------------------------------------------------------------------------- /tsconfig.tns.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "module": "es2015", 5 | "moduleResolution": "node" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rulesDirectory": [ 3 | "node_modules/codelyzer" 4 | ], 5 | "rules": { 6 | "class-name": true, 7 | "comment-format": [ 8 | true, 9 | "check-space" 10 | ], 11 | "indent": [ 12 | true, 13 | "spaces" 14 | ], 15 | "no-duplicate-variable": true, 16 | "no-eval": true, 17 | "no-internal-module": true, 18 | "no-trailing-whitespace": true, 19 | "no-var-keyword": true, 20 | "one-line": [ 21 | true, 22 | "check-open-brace", 23 | "check-whitespace" 24 | ], 25 | "quotemark": [ 26 | true, 27 | "double" 28 | ], 29 | "semicolon": [ 30 | true, 31 | "always" 32 | ], 33 | "triple-equals": [ 34 | true, 35 | "allow-null-check" 36 | ], 37 | "typedef-whitespace": [ 38 | true, 39 | { 40 | "call-signature": "nospace", 41 | "index-signature": "nospace", 42 | "parameter": "nospace", 43 | "property-declaration": "nospace", 44 | "variable-declaration": "nospace" 45 | } 46 | ], 47 | "variable-name": [ 48 | true, 49 | "ban-keywords" 50 | ], 51 | "whitespace": [ 52 | true, 53 | "check-branch", 54 | "check-decl", 55 | "check-operator", 56 | "check-separator", 57 | "check-type" 58 | ], 59 | 60 | "directive-selector": [true, "attribute", "gr", "camelCase"], 61 | "component-selector": [true, "element", "gr", "kebab-case"], 62 | "use-input-property-decorator": true, 63 | "use-output-property-decorator": true, 64 | "use-host-property-decorator": true, 65 | "no-attribute-parameter-decorator": true, 66 | "no-input-rename": true, 67 | "no-output-rename": true, 68 | "no-forward-ref" :true, 69 | "use-life-cycle-interface": true, 70 | "use-pipe-transform-interface": true, 71 | "component-class-suffix": true, 72 | "directive-class-suffix": true, 73 | "import-destructuring-spacing": true 74 | } 75 | } 76 | --------------------------------------------------------------------------------