Giter Site home page Giter Site logo

nativescript / sample-groceries Goto Github PK

View Code? Open in Web Editor NEW
485.0 485.0 347.0 119.61 MB

:green_apple: :pineapple: :strawberry: A NativeScript-built iOS and Android app for managing grocery lists

License: Apache License 2.0

CSS 8.15% JavaScript 27.11% TypeScript 55.88% HTML 8.85%

sample-groceries's Introduction

Groceries Build Status

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, or our TypeScript and Angular getting started guide.

Screenshots

Development

This app is built with the NativeScript CLI. Once you have the CLI installed, start by cloning the repo:

$ git clone https://github.com/NativeScript/sample-Groceries.git
$ cd sample-Groceries

From there you can use the run command to run Groceries on iOS:

$ tns run ios

And the same command to run Groceries on Android:

$ tns run android

Linting

Groceries uses tslint + codelyzer rules to ensure the code follows the angular style guide.

You can run the linter with the tslint npm script:

$ npm run tslint

Unit Testing

Groceries uses NativeScript’s integrated unit test runner with Jasmine. To run the tests for yourself use the tns test command:

$ tns test ios --emulator
$ tns test android --emulator

For more information on unit testing NativeScript apps, refer to the NativeScript docs on the topic.

Travis CI

Groceries uses Travis CI to verify all tests pass on each commit. Refer to the .travis.yml configuration file for details.

Contributors

The following is a list of all the people that have helped build Groceries. Thanks for your contributions!

tjvantollhdeshevvakrilovMitko-Kerezovjlooperrosen-vladimirov

SvetoslavTsenovligazsis0k0wdulindtopuzovnadyaA

vchimevcovex-nnbundyoEddyVerbruggenNathanWalkernsndeck

tzraikovTsvetanMilanovbradmartincmelo

Big Thanks

Cross-browser Testing Platform and Open Source Provided by Sauce Labs.

SauceLabs

sample-groceries's People

Contributors

bradmartin avatar bundyo avatar cmelo avatar covex-nn avatar dtopuzov avatar eddyverbruggen avatar elena-p avatar etabakov avatar hdeshev avatar jlooper avatar kashifmin avatar ligaz avatar manoldonev avatar martoyankov avatar mbektchiev avatar mitko-kerezov avatar muena avatar nadyaa avatar nathanwalker avatar nickiliev avatar rosen-vladimirov avatar sis0k0 avatar spike1292 avatar svetoslavtsenov avatar tbozhikov avatar tjvantoll avatar tsonevn avatar tsvetanmilanov avatar vchimev avatar wdulin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sample-groceries's Issues

iOS emulator not logging while using --watch

This might have something to do with the emulator running in debug mode, but when I tie a console.log to the page object, I get nothing, when not using --watch it works as expected. Wondering if anyone else has noticed this or if this is a byproduct of the livesync mode.

Exit Code 1

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processNativescriptfloatingactionbuttonNativescript-
    telerik-uiDebugResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
    xecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build
    -tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug
    option to get more log output.

BUILD FAILED

Total time: 11.392 secs
Command C:\xampp\htdocs\nativeScript\test\platforms\android\gradlew.bat failed w
ith exit code 1

how to solve this problem?

Add social logins

Telerik Backend Services supports social logins so we should add the ability to sign in via Facebook and Twitter.

App Crash

I use Android 6 and app shows alerts with no texts inside it when I run It for first time. I downloaded the app from Google play or when I try to sign in with invalid email or password. Sometimes app crash.

java.lang.RuntimeException after login

After I press login I'm getting the following error:

image

So something with the extend function?

My setup

Windows 10 x64
TNS version 1.5.0
Emulator Genymotion with Google Nexus 5 API 21

Commit that i have checked out 4eceee9

Logcat

I/TNS.Native( 2782): NativeScript Runtime Version 1.5.0, commit 4fb83e3c9c8b4dbf39e214c6a90a070f9240378c
D/TNS.Native( 2782): JNI_ONLoad
D/TNS.Native( 2782): JNI_ONLoad END
D/TNS.Native( 2782): lenNodes=63720, lenNames=658711, lenValues=5640069
D/TNS.Native( 2782): time=14
E/TNS.Native( 2782): TypeError: Cannot read property 'extend' of undefined
E/TNS.Native( 2782): File: "/data/data/com.tjvantoll.groceries/files/internal/prepareExtend.js, line: 52, column: 11
E/TNS.Native( 2782): StackTrace:
E/TNS.Native( 2782):    Frame: function:'__extends', file:'/data/data/com.tjvantoll.groceries/files/internal/prepareExtend.js', line: 52, column: 12
E/TNS.Native( 2782):    Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js', line: 20, column: 5
E/TNS.Native( 2782):    Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js', line: 70, column: 3
E/TNS.Native( 2782):    Frame: function:'require', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js', line: 2, column: 322
E/TNS.Native( 2782):    Frame: function:'getComponentModule', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js', line: 40, column: 26
E/TNS.Native( 2782):    Frame: function:'loadCustomComponent', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 166, column: 35
E/TNS.Native( 2782):    Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 88, column: 39
E/TNS.Native( 2782):    Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 135, column: 13
E/TNS.Native( 2782):    Frame: function:'EasySAXParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/js-libs/easysax/easysax.js', line: 720, column: 23
E/TNS.Native( 2782):    Frame: function:'XmlParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 182, column: 22
E/TNS.Native( 2782):    Frame: function:'parseInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 139, column: 19
E/TNS.Native( 2782):    Frame: function:'loadInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 210, column: 27
E/TNS.Native( 2782):    Frame: function:'load', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 194, column: 27
E/TNS.Native( 2782):    Frame: function:'pageFromBuilder', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 87, column: 27
E/TNS.Native( 2782):    Frame: function:'resolvePageFromEntry', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 68, column: 20
E/TNS.Native( 2782):    Frame: function:'Frame.navigate', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 126, column: 20
E/TNS.Native( 2782):    Frame: function:'AndroidApplication.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 143, column: 26
E/TNS.Native( 2782):    Frame: function:'app.init.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 114, column: 32
E/TNS.Native( 2782): Error: Cannot create module /data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview. TypeError: Cannot read property 'extend' of undefined. StackTrace: TypeError: Cannot read property 'extend' of undefined
E/TNS.Native( 2782):     at __extends (/data/data/com.tjvantoll.groceries/files/internal/prepareExtend.js:54:12)
E/TNS.Native( 2782):     at /data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js:22:5
E/TNS.Native( 2782):     at Object. (/data/data/com.tjvantoll.groceries/files/app/tns_modules/nativescript-telerik-ui/listview/listview.js:72:3)
E/TNS.Native( 2782):     at require (/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js:2:322)
E/TNS.Native( 2782):     at Object.getComponentModule (/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js:42:26)
E/TNS.Native( 2782):     at loadCustomComponent (/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js:168:35)
E/TNS.Native( 2782):     at /data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js:90:39
E/TNS.Native( 2782):     at EasySAXParser.onStartNode (/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js:137:13)
E/TNS.Native( 2782):     at EasySAXParser.parse (/data/data/com.tjvantoll.groceries/files/app/tns_modules/js-libs/easysax/easysax.js:722:23)
E/TNS.Native( 2782):     at XmlParser.parse (/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js:184:22)
E/TNS.Native( 2782): File: "/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js, line: 45, column: 8
E/TNS.Native( 2782): StackTrace:
E/TNS.Native( 2782):    Frame: function:'getComponentModule', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/component-builder.js', line: 45, column: 15
E/TNS.Native( 2782):    Frame: function:'loadCustomComponent', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 166, column: 35
E/TNS.Native( 2782):    Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 88, column: 39
E/TNS.Native( 2782):    Frame: function:'', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 135, column: 13
E/TNS.Native( 2782):    Frame: function:'EasySAXParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/js-libs/easysax/easysax.js', line: 720, column: 23
E/TNS.Native( 2782):    Frame: function:'XmlParser.parse', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/xml/xml.js', line: 182, column: 22
E/TNS.Native( 2782):    Frame: function:'parseInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 139, column: 19
E/TNS.Native( 2782):    Frame: function:'loadInternal', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 210, column: 27
E/TNS.Native( 2782):    Frame: function:'load', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/builder/builder.js', line: 194, column: 27
E/TNS.Native( 2782):    Frame: function:'pageFromBuilder', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 87, column: 27
E/TNS.Native( 2782):    Frame: function:'resolvePageFromEntry', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 68, column: 20
E/TNS.Native( 2782):    Frame: function:'Frame.navigate', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/ui/frame/frame-common.js', line: 126, column: 20
E/TNS.Native( 2782):    Frame: function:'AndroidApplication.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 143, column: 26
E/TNS.Native( 2782):    Frame: function:'app.init.getActivity', file:'/data/data/com.tjvantoll.groceries/files/app/tns_modules/application/application.js', line: 114, column: 32

Or can this be an Android API mismatch?

ActionBar background color

How is it that the android action bar is blue when there is no mark-up making it blue? The only thing I see is the iOS code to change its background.

Name:grocery is not defined in grocery-list-view-model.js line 37

var config = require("../../shared/config");
var fetchModule = require("fetch");
var observableArrayModule = require("data/observable-array");

function GroceryListViewModel(items) {
var viewModel = new observableArrayModule.ObservableArray(items);

viewModel.load = function() {
  return fetch(config.apiUrl + "Groceries", {
    headers:{
      "Authorization" : "Bearer" + config.token
     }
  })
  .then(handleErrors)
  .then(function(response) {
    return response.json();
  })
  .then(function(data){
    data.Result.forEach(function(grocery){
      viewModel.push({
        name: grocery.Name,
        id: grocery.Id
      });
    });
  });
};

viewModel.empty = function () {
  while (viewModel.length) {
    viewModel.pop();
  }
};

viewModel.add = function () {
  return fetchModule.fetch(config.apiUrl + "Groceries", {
    method: "POST",
    body: JSON.stringify({
        Name:grocery  //error reference
    }),
    headers: {
      "Authorization" : "Bearer" + config.token,
      "Content-Type" : "application/json"
    }
  })
  .then(handleErrors)
  .then(function(response){
    return response.json();
  })
  .then(function(data){
    viewModel.push({
      name:grocery,
      id:data.Result.Id
    });
  });
};

return viewModel;

}

function handleErrors(response) {
if (!response.ok) {
console.log(JSON.stringify(response));
throw Error(response.statusText);
}
return response;
}

module.exports = GroceryListViewModel;

Add sounds

It would be nice to showcase @jbristowe's sound plugin. A pull to refresh sounds would be a nice start.

Compile issue on Mac OS

Had a clean checkout while running the command.

tns run ios --emulator

In file included from /Users/rajiv/samples/sample-Groceries/platforms/ios/Pods/IQKeyboardManager/IQKeyBoardManager/IQToolbar/IQBarButtonItem.m:25:
/Users/rajiv/samples/sample-Groceries/platforms/ios/Pods/IQKeyboardManager/IQKeyBoardManager/IQToolbar/IQToolbar.h:34:11: error: unknown
      property attribute 'nullable'
@property(nullable, nonatomic, strong) UIFont *titleFont;
          ^
/Users/rajiv/samples/sample-Groceries/platforms/ios/Pods/IQKeyboardManager/IQKeyBoardManager/IQToolbar/IQToolbar.h:39:11: error: unknown
      property attribute 'nullable'
@property(nullable, nonatomic, strong) NSString *title;
          ^
2 errors generated.

Initial "start" branch build

If I pull down this repo and "tns run android" (with Geny up and running), the master version of this sample app builds correctly and launches on the Geny emulator.

However, if I checkout the "start" branch and "tns run android", I get the following error:

:mergeDebugResources
AAPT out(83457444) : No Delegate set : lost message:Done
AAPT err(83457444): ERROR: 9-patch image C:\Dev\Apps\NativeScript\First\sample-Groceries\platforms\android\src\main\res\drawable-nodpi\splashscreen.9.png malformed.
:mergeDebugResources FAILED
AAPT err(83457444):        No marked region found along edge.
AAPT err(83457444):        Found along top edge.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mergeDebugResources'.
> Crunching Cruncher splashscreen.9.png failed, see logs

To get the build to be successful, I can:

  • Checkout "master"
  • Copy splashscreen.9.png from \app\App_Resources\Android\drawable-nodpi somewhere
  • Checkout "start"
  • Replace the splashscreen.9.png with the one from the master branch
  • Run the app
  • Compiles correctly

Make the iOS action-bar color match up

They don’t match! I want to set the UINavigationBar’s translucent flag to get these colors to match, but that messes up the display for some reason.

screen shot 2015-11-25 at 4 18 11 pm

Groceries items are missing

Following the README.md steps, the app starts with no ListView:

screen shot 2016-02-26 at 5 52 39 pm

screen shot 2016-02-26 at 5 49 49 pm

package.json:

vchimevmac:sample-Groceries vchimev$ cat package.json 
{
        "name": "Groceries",
        "version": "2.1.1",
        "description": "A NativeScript-built iOS and Android app for managing grocery lists",
        "repository": {
                "type": "git",
                "url": "https://github.com/nativescript/sample-Groceries.git"
        },
        "keywords": [
                "NativeScript"
        ],
        "author": "TJ VanToll <[email protected]> (http://tjvantoll.com/)",
        "license": "MIT",
        "bugs": {
                "url": "https://github.com/nativescript/sample-Groceries/issues"
        },
        "homepage": "https://github.com/nativescript/sample-Groceries/groceries",
        "devDependencies": {
                "chai": "^3.4.1",
                "jscs": "^2.10.1",
                "jshint": "^2.8.0",
                "karma": "^0.13.15",
                "karma-chai": "^0.1.0",
                "karma-mocha": "^0.2.1",
                "karma-mocha-reporter": "^1.1.5",
                "karma-nativescript-launcher": "^0.3.1",
                "mocha": "^2.3.4"
        },
        "nativescript": {
                "id": "com.tjvantoll.sampleGroceries",
                "tns-ios": {
                        "version": "1.6.0"
                },
                "tns-android": {
                        "version": "1.6.2"
                }
        },
        "dependencies": {
                "email-validator": "^1.0.3",
                "nativescript-iqkeyboardmanager": "^1.0.0",
                "nativescript-social-share": "^1.1.2",
                "nativescript-floatingactionbutton": "^0.1.9",
                "nativescript-telerik-ui": "0.2.4",
                "nativescript-unit-test-runner": "^0.2.8",
                "tns-core-modules": "1.6.2"
        },
        "scripts": {
                "lint:jscs": "jscs app",
                "lint:jshint": "jshint app",
                "lint": "npm run lint:jshint && npm run lint:jscs"
        }

Show offline error messages when the user has no connection and tries to login/register

Very well explained and developed app, but I'm getting this error "JS: TypeError: Network request failed" after logging or registering as a new user to the app. This happens on Genymotion emulator as well as a physical device. This occurs only when connected using WiFi (at work) but works fine when using Mobile Data from my android phone.

Any changes need to be done to the application to resolve this from the app itself? Thank you.

login not working

hello TJ VanToll & Jen Looper,

Unable to get tj's sample email/password working...

App crashing on Android 4.4.4 version

I'm not able to run this app on an Android device running 4.4.4. It simply crashes as soon as you launch it. Any changes suggested here than can make this app run on older Android versions too?

tns run android --emulator

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.groceries/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreate failed

TypeError: Cannot read property 'widgets' of undefined
File: "/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js, line: 327, column: 39

StackTrace:
Frame: function:'NativeActivity.onCreate', file:'/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js', line: 327, column: 40

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2448)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
at android.app.ActivityThread.access$1200(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1371)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5595)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Caused by: com.tns.NativeScriptException:
Calling js method onCreate failed

TypeError: Cannot read property 'widgets' of undefined
File: "/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js, line: 327, column: 39

StackTrace:
Frame: function:'NativeActivity.onCreate', file:'/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js', line: 327, column: 40

at com.tns.Platform.callJSMethodNative(Native Method)
at com.tns.Platform.dispatchCallJSMethodNative(Platform.java:812)
at com.tns.Platform.callJSMethod(Platform.java:711)
at com.tns.Platform.callJSMethod(Platform.java:690)
at com.tns.Platform.callJSMethod(Platform.java:680)
at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:1574)
at android.app.Activity.performCreate(Activity.java:6100)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
... 10 more

Getting Started documentation layout issue

At a very specific browser width (or page width, or content width, etc), the sidebar of the Getting Started page of documentation overlaps onto the main content area, making it frustrating to read. That width just happens to be the size of my browser when made full screen on my secondary display.

That width seems to be 1263px, as shown in the screenshot below.

nativescript

Not able to get Hello World view to show

sudo tns run ios --emulator

Getting this error:

image

Emulator runs but no Hello World?

image

First swing at NativeScript or even build anything IOS, any help would greatly be appreciated!

Add a custom AndroidManifest.xml

My android:versionCode is at "3" and my android:versionName is at "2.0", but that's currently not reflected in source control.

Unable to run the app on Windows 10

I am trying to run this on my Windows 10 machine with Genymotion emulator. Project is successfully prepared but deployment fails with error

"Error retrieving parent for item: No resource found that matched given name 'android:Widget.Material.Button.Colored'

I have android sdk v24.0.2 is installed and I am able to successfully run the NativeScript sample tap achievement app.

Clone doesn't pull tns_modules

Just tried a fresh clone and the tns_modules aren't pulling down. Even tried a second time running 'tns install' and that didn't resolve issue. I had to manually copy them from an older clone.

unable to add android platform tns -v 1.4

node vesion 12.37 , npm 2.11.3

tns install is not working , i've forced npm install -f

xec uname -a
stdout: Linux developpeur 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

stderr:
Exec npm -v
stdout: 2.11.3

stderr:
spawn: java -version
Exec node-gyp -v
stdout: v0.12.2

stderr:
Exec adb version
stdout: Android Debug Bridge version 1.0.32
Revision eac51f2bb6a8-android

stderr:
Exec android -h
stdout:
Usage:
android [global options] action [action options]
Global options:
-s --silent : Silent mode, shows errors only.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
--clear-cache: Clear the SDK Manager repository manifest cache.
-h --help : Help on a specific command.

                                                                Valid
                                                                actions
                                                                are
                                                                composed
                                                                of a verb
                                                                and an
                                                                optional
                                                                direct
                                                                object:
  • sdk : Displays the SDK Manager window.

  • avd : Displays the AVD Manager window.

  • list : Lists existing targets or virtual devices.

  • list avd : Lists existing Android Virtual Devices.

  • list target : Lists existing targets.

  • list device : Lists existing devices.

  • list sdk : Lists remote SDK repository.

  • create avd : Creates a new Android Virtual Device.

  • move avd : Moves or renames an Android Virtual Device.

  • delete avd : Deletes an Android Virtual Device.

  • update avd : Updates an Android Virtual Device to match the folders
    of a new SDK.

  • create project : Creates a new Android project.

  • update project : Updates an Android project (must already have an
    AndroidManifest.xml).

  • create test-project : Creates a new Android project for a test package.

  • update test-project : Updates the Android project for a test package (must
    already have an AndroidManifest.xml).

  • create lib-project : Creates a new Android library project.

  • update lib-project : Updates an Android library project (must already have
    an AndroidManifest.xml).

  • create uitest-project: Creates a new UI test project.

  • update adb : Updates adb to support the USB devices declared in the
    SDK add-ons.

  • update sdk : Updates the SDK by suggesting new platforms to install
    if available.

    stderr:
    Exec mono --version
    stdout:
    stderr: /bin/sh: 1: mono: not found

Exec git --version
stdout: git version 2.1.4

stderr:
Exec gradle -v

stdout:

Gradle 2.3

Build time: 2015-02-16 05:09:33 UTC
Build number: none
Revision: 586be72bf6e3df1ee7676d1f2a3afd9157341274

Groovy: 2.3.9
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_45-internal (Oracle Corporation 25.45-b02)
OS: Linux 3.19.0-30-generic amd64

stderr:
Exec javac -version
stdout:
stderr: javac 1.8.0_66

System information:
{ procInfo: 'nativescript/1.4.3',
platform: 'linux',
os: 'Linux developpeur 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\n',
shell: '/bin/bash',
dotNetVer: null,
procArch: 'x64',
nodeVer: 'v0.12.7',
npmVer: '2.11.3',
javaVer: '1.8.0',
nodeGypVer: 'v0.12.2\n',
xcodeVer: null,
itunesInstalled: false,
cocoapodVer: null,
adbVer: 'Android Debug Bridge version 1.0.32',
androidInstalled: true,
monoVer: null,
gitVer: '2.1.4',
gradleVer: '2.3',
javacVersion: '1.8.0_66' }
Initializing analytics statuses.
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'platform'.
BeforeHookName for command platform-add is before-platform-add
AfterHookName for command platform-add is after-platform-add
Looking for project in '/home/nelson/github/node/sample-Groceries'
Project directory is '/home/nelson/github/node/sample-Groceries'.
/usr/local/lib/node_modules/nativescript/node_modules/ref/bin/linux-x64-v8-3.28/binding.node is missing. Try reinstalling prebuilt?
Analytics statuses:
{ TrackFeatureUsage: 1, TrackExceptions: 0 }
Trying to track feature 'CLI' with value 'help'.
List of registered commands: /?, autocomplete, autocomplete|disable, autocomplete|enable, autocomplete|status, build, build|android, build|ios, create, debug, debug|android, debug|ios, deploy, device, device|android, device|get-file, device|ios, device|list-applications, device|list-files, device|log, device|put-file, device|run, device|stop, device|uninstall, doctor, emulate, emulate|android, emulate|ios, error-reporting, help, init, install, library, library|add, livesync, platform, platform|*list, platform|add, platform|remove, platform|update, plugin, plugin|add, plugin|remove, prepare, run, run|android, run|ios, usage-reporting
Reading help for command 'platform|add'. FileName is 'platform-add.md'.

platform add

┌───────────────┬─────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ Android │ $ tns platform add android [--frameworkPath │
│ latest │ ] [--symlink] [--sdk ] │
│ runtime │ │
│ Android │ $ tns platform add android[@] [- │
│ selected │ -frameworkPath ] [--symlink] [--sdk │
│ runtime │ ] │
└───────────────┴─────────────────────────────────────────────────┘

Configures the current project to target the selected platform.

Options

* --frameworkPath - Sets the path to a NativeScript runtime for the specified platform that you want to use instead of the default runtime. If --symlink is specified, <File Path> must point to directory in which the runtime is already extracted. If --symlink is not specified, <File Path> must point to a valid npm package. 
* --symlink - Creates a symlink to a NativeScript runtime for the specified platform that you want to use instead of the default runtime. If --frameworkPath is specified, creates a symlink to the specified directory. If --frameworkPath is not specified, creates a symlink to platform runtime installed with your current version of NativeScript.
* --sdk - Sets the target Android SDK for the project.

Attributes

* <API Level> is a valid Android API level. For example: 17, 19, MNC.
* <File Path> is the complete path to a valid npm package or a directory that contains a NativeScript runtime for the selected platform.
* <Version> is any available version of the respective platform runtime published in npm. 

Better handling of activity indicators

On the register/login/password screens the activity indicators should be centered on top of text fields. Those text fields should also be disabled during processing.

Handle offline

We should allow you to maintain grocery lists offline and sync to our backend.

Use fetch instead of http

It will be good if we start advertising our fetch API support instead of the homegrown http module.

Issue with running master with Telerik-UI controls - TypeError for listview.js

Downloaded the .zip folder of groceries master then ran 'tns-install', made sure the platform was added, and then 'tns build android'. All went great and I installed the .apk. Everytime I have a successful login it crashes, it has crashed on a device and through appetize.io. The forgot password works as I just received my email.

I've debugged all of the login.js and it gets to the navigate("views/list/list") and crashes everytime. With @tjvantoll credentials and an account I've created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.