Prepare to start - Samsung/cordova-plugin-toast GitHub Wiki
For using all of TOAST, please refer to the followings.
Precondition
First, TOAST needs the followings. Please install these.
-
nodejs (Optimized Version v7.10.1)
-
Samsung Tizen SDK (It is only for Tizen packaging, please refer to grunt-cordova-sectv, Prepare and Build
-
LG Webos SDK (It is only for Webos packaging, please refer to grunt-cordova-sectv, Prepare and Build
-
npm modules: cordova, grunt
$ npm install -g cordova $ npm install -g grunt-cli
-
We provide script files which can do automatic setting from 'git clone' to 'build and package' for TOAST. There will be more help with getting started with TOAST.
git clone
-
For copying repositories, please
mkdir
a root directory.$ mkdir <root directory>
-
In the root directory, please
git clone
the following repositories.$ git clone https://github.com/apache/cordova-js.git $ git clone https://github.com/Samsung/cordova-plugin-toast.git $ git clone https://github.com/Samsung/cordova-sectv-orsay.git $ git clone https://github.com/Samsung/cordova-sectv-tizen.git $ git clone https://github.com/Samsung/cordova-tv-webos.git $ git clone https://github.com/Samsung/grunt-cordova-sectv.git
Configuration
-
Please
npm install
to install dependencies incordova-js
,cordova-plugin-toast
,cordova-sectv-orsay
,cordova-sectv-tizen
,cordova-tv-webos
,grunt-cordova-sectv
.$ npm install
-
In
cordova-js/Gruntfile.js
, please add compile tasks.module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), compile: { ... "sectv-orsay": {}, "sectv-tizen": {}, "tv-webos": {} },
-
In
cordova-js/package.json
, please add the platforms tocordova-platforms
like below."cordova-platforms" : { ... "cordova-sectv-orsay" : "../cordova-sectv-orsay", "cordova-sectv-tizen" : "../cordova-sectv-tizen", "cordova-tv-webos" : "../cordova-tv-webos" }
Compile
-
In
cordova-js
, pleasegrunt compile
for packaging.$ grunt compile:sectv-orsay compile:sectv-tizen compile:tv-webos
-
In
cordova-plugin-toast
, pleasegrunt compile
for packaging.$ grunt compile:sectv-orsay compile:sectv-tizen compile:tv-webos