Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.27 KB

README.md

File metadata and controls

57 lines (48 loc) · 1.27 KB

Background Download / Upload plugin for the NativeScript framework

How to use the plugin, see: source/README.md

Prerequisites

Get submodules

git submodule update --init
npm install -g grunt-cli
npm install -g tsd
npm install -g appium

Build

To install dev dependencies:

npm install

To compile the TypeScript and create the npm package output in dist:

grunt

To compile, install in the example and run it in emulator

grunt ios

Or

grunt android

To Run the Tests

The following command will build the plugin from source, add it to and build the example app and start the automation tests:

grunt tests

The tests use appium to interact with the app, and may start the upload server located in www.

iOS

The iOS API is implemented in JavaScript.

Android

The minimum supported API level is 18 and the background file upload is handled by the android-upload-service Open-Source library.