cordova-sectv-tizen
is an application library that allows for Cordova-based projects to be built for the 2015's Samsung Tizen TV Platform.
Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript.
- Tizen Samsung Smart TV (sectv-tizen)
There are 3 cordova plugins which are supported on TOAST
- cordova-plugin-device
- cordova-plugin-globalization
- cordova-plugin-network-information
If you want more details, please refer Supported Cordova Plugin
./
|-cordova-js-src/ .... cordova-js sectv-tizen platform implementation
| |-plugin/ ......... cordova plugin implementations
| |-exec.js ......... cordova/exec module
| `-platform.js ..... cordova/platform module having platform definition and bootstrap
|-www/ ............... Project template for Tizen platform
|-package.json ....... npm package configuration
'-README.md .......... this file
This section describes the build process which creates cordova.js
file for the sectv-tizen
cordova platform.
Please see Cordova-js for more detail of compile
task.
-
Clone the Cordova-js project as sibling of this project.
$ git clone https://github.com/Samsung/cordova-sectv-tizen.git $ git clone https://github.com/apache/cordova-js.git
Repositories will be created like below directory structure.
./ |-cordova-js `-cordova-sectv-tizen
-
Add "sectv-tizen" as a target of "compile" task on
Gruntfile.js
in the cordova-js project.... grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), "compile": { ..., "sectv-tizen": {} }, "compile-browserify": { ... });
-
Add "sectv-tizen" property to "cordova-platforms" object in the cordova-js project's
package.json
with path to this project's repository as its value."cordova-platforms": { ..., "cordova-sectv-tizen": "../cordova-sectv-tizen" }
-
In the
cordova-js
directory's root, run below command to createcordova-js/pkg/cordova.sectv-tizen.js
file.$ grunt compile:sectv-tizen
-
We recommend to copy the created file to the
www
directory which is including Tizen Application project templates for further use. In thecordova-js
directory:$ cp ./pkg/cordova.sectv-tizen.js ../cordova-sectv-tizen/www/cordova.js
For creating application package for 2015's Tizen TV:
- Create a Tizen project with Tizen IDE and copy the
www
directory's content to the Tizen project. - Copy the built
cordova-js/pkg/cordova.sectv-tizen.js
to your tizen project directory's root with namecordova.js
. - Build the tizen project.
- We recommand to use the grunt-cordova-sectv Grunt task to automate these process.
Not yet