-
Notifications
You must be signed in to change notification settings - Fork 60
Prepare to start
For using all of TOAST, please refer to the followings.
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.
-
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
-
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" }
-
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
uuuu
Getting Started
Converting Tizen to Toast
- Prepare to convert
- Tizen API: AVPlay
- Tizen API: DrmInfo(Deprecated)
- Tizen API: Application
- Tizen API: TVInputDevice
- Tizen API: TVAudioControl
- Tizen API: TVWindow
- Tizen API: TVChannel
- Tizen API: IME
- Tizen API: ProductInfo
- Tizen API: Network
- How to detect platform
Converting Legacy to Toast
- Prepare to convert
- Legacy API: AVPlay
- Legacy API: TVInfo
- Legacy API: Common
- Legacy API: InputDevice
- Legacy API: AudioControl
- Legacy API: TVWindow
- Legacy API: TVChannel
- Legacy API: IME
- How to detect platform
API Reference
- supported cordova plugin
- toast.Media
- toast.MediaPlugin
- toast.drminfo(Deprecated)
- toast.application
- toast.inputdevice
- toast.tvaudiocontrol
- toast.tvwindow
- toast.tvchannel
- toast.billing
Supported platforms
Sample App
Contribution
Frequently Asked Questions