Samsung/cordova-sectv-tizen

Name: cordova-sectv-tizen

Owner: Samsung

Description: cordova-sectv-tizen` is an TV application library that allows for Cordova-based projects to be built for the 2015's Samsung Tizen TV Platform.

Created: 2015-10-26 01:10:50.0

Updated: 2017-10-17 20:58:21.0

Pushed: 2017-03-28 02:34:28.0

Homepage: null

Size: 50

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

cordova-sectv-tizen

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.

Supported Platform

Supported cordova plugins

There are 3 cordova plugins which are supported on TOAST

If you want more details, please refer Supported Cordova Plugin

Project Structure

./
 |-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

How to Build

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.

  1. Clone the Cordova-js project as sibling of this project.

    t clone https://github.com/Samsung/cordova-sectv-tizen.git
    t clone https://github.com/apache/cordova-js.git
    

    Repositories will be created like below directory structure.

    
    ordova-js
    ordova-sectv-tizen
    
  2. Add “sectv-tizen” as a target of “compile” task on Gruntfile.js in the cordova-js project.

    
    t.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    "compile": {
        ...,
        "sectv-tizen": {}
    },
    "compile-browserify": {
    ...
    
    
  3. 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.

    dova-platforms": {
    ...,
    "cordova-sectv-tizen": "../cordova-sectv-tizen"
    
    
  4. In the cordova-js directory's root, run below command to create cordova-js/pkg/cordova.sectv-tizen.js file.

    unt compile:sectv-tizen
    
  5. We recommend to copy the created file to the www directory which is including Tizen Application project templates for further use. In the cordova-js directory:

     ./pkg/cordova.sectv-tizen.js ../cordova-sectv-tizen/www/cordova.js
    

How to use

For creating application package for 2015's Tizen TV:

  1. Create a Tizen project with Tizen IDE and copy the www directory's content to the Tizen project.

  2. Copy the built cordova-js/pkg/cordova.sectv-tizen.js to your tizen project directory's root with name cordova.js.

  3. Build the tizen project.

  4. We recommand to use the grunt-cordova-sectv Grunt task to automate these process.

Known Issues

Not yet

Analytics


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.