{"id":21644441,"url":"https://github.com/samsung/grunt-cordova-sectv","last_synced_at":"2025-04-11T18:22:18.410Z","repository":{"id":56373438,"uuid":"44937996","full_name":"Samsung/grunt-cordova-sectv","owner":"Samsung","description":"Grunt task for build and package the cordova project with `sectv-OOO` platforms.","archived":false,"fork":false,"pushed_at":"2023-09-18T22:59:03.000Z","size":161,"stargazers_count":18,"open_issues_count":11,"forks_count":22,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-11T18:22:13.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Samsung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-26T01:11:51.000Z","updated_at":"2023-12-18T06:21:18.000Z","dependencies_parsed_at":"2022-08-15T17:31:20.724Z","dependency_job_id":null,"html_url":"https://github.com/Samsung/grunt-cordova-sectv","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fgrunt-cordova-sectv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fgrunt-cordova-sectv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fgrunt-cordova-sectv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samsung%2Fgrunt-cordova-sectv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samsung","download_url":"https://codeload.github.com/Samsung/grunt-cordova-sectv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456386,"owners_count":21106607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T05:40:13.546Z","updated_at":"2025-04-11T18:22:18.379Z","avatar_url":"https://github.com/Samsung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Samsung/grunt-cordova-sectv.svg?branch=master)](https://travis-ci.org/Samsung/grunt-cordova-sectv)\n\n# grunt-cordova-sectv\n\nGrunt task for prepare and build the cordova project with `sectv-***` platforms.\n\n# About this project\n\nThis project would help who makes Samsung Tizen TV or Legacy Samsung Smart TV web application using cordova.\nIt provides several grunt task:\n\n-   `sectv-prepare`: Creates application project for each platforms from your cordova project. The target must be one of `sectv-orsay` and `sectv-tizen` and `tv-webos`.\n\n    -   Options for the task:\n\n        ```js\n        'sectv-prepare': {    // task\n            'sectv-orsay': {    // target\n                dest: 'platforms/sectv-orsay/www',  // Destination path to create the application project.\n                platformRepos: '../cordova-sectv-orsay',    // Path to 'sectv-***` cordova platform's repository.\n                scripts: {  // copy the scripts to the application project. \u003cdestination\u003e: \u003csource\u003e.\n                    'cordova.js': '../cordova-js/pkg/cordova.sectv-orsay.js',\n                    'toast.js': '../cordova-plugin-toast/platform_www/sectv-orsay/toast.js'\n                }\n            }\n        }\n        ```\n\n-   `sectv-build`: Packaging the application project into each platforms package file format like `.zip` or `.wgt` or `.ipk`. The target must be one of `sectv-orsay` and `sectv-tizen` and `tv-webos`.\n\n    -   Options for the task:\n\n        ```js\n        'sectv-build': {  // task\n            'sectv-orsay': {    // target\n                www: 'platforms/sectv-orsay/www', // Path to Application project\n                dest: 'platforms/sectv-orsay/build' // Directory to create the package\n            }\n        }\n        ```\n\n# Associated Projects\n\n-   [cordova-sectv-orsay](http://github.com/Samsung/cordova-sectv-orsay) is an application library that allows for [Cordova](http://cordova.apache.org)-based projects to be built for the Legacy Samsung Smart TV (A.K.A Orsay) Platform.\n-   [cordova-sectv-tizen](http://github.com/Samsung/cordova-sectv-tizen) is an application library that allows for [Cordova](http://cordova.apache.org)-based projects to be built for the 2015's Samsung Tizen TV Platform.\n-   [cordova-tv-webos](https://github.com/Samsung/cordova-tv-webos) is an application library that allows for [Cordova](http://cordova.apache.org)-based projects to be built for the WebOS TV Platform.\n-   [cordova-plugin-toast](http://github.com/Samsung/cordova-plugin-toast) is an [Cordova](http://cordova.apache.org) plugin that provides TV Specific functionalities for Smart TV application.\n\n# Installation\n\n```sh\n$ npm install grunt-cordova-sectv\n```\n\n# How to set up to use\n\n1. Make a cordova project using cordova CLI.\n\n    ```\n    ./\n     |- cordova-js\n     |- cordova-plugin-toast\n     |- cordova-sectv-orsay\n     |- cordova-sectv-tizen\n     |- cordova-tv-webos\n     `- MyApplication\n    ```\n\n2. Copy the contents in `sample/*` of this project to the root directory of your cordova project.\n3. In the cordova project's root:\n\n    ```js\n    $ npm install\n    ```\n\n    `grunt-cordova-sectv` will be installed also since the `sample/pacakge.json` defines it as a dependency.\n\n# Supported platform\n\n-   sectv-orsay\n-   sectv-tizen\n-   tv-webos\n\n# How to prepare the application by platforms\n\n-   In the cordova project's root:\n\n    ```sh\n    $ grunt sectv-prepare:\u003cplatform\u003e\n    ```\n\n-   `\u003cplatform\u003e` can be one of supported platforms. If you want to prepare all platforms:\n\n    ```sh\n    $ grunt sectv-prepare\n    ```\n\n-   For more details, please see the `sample/Gruntfile.js` of this project.\n\n# How to add other elements to a particular platform\n\n-   It is sometimes necessary to add something to each platform which maybe not mandatory but needed.\n-   Mandatory elements\n    -   [sectv-orsay](https://github.com/Samsung/cordova-sectv-orsay/blob/master/www/config.xml.tmpl)\n    -   [sectv-tizen](https://github.com/Samsung/cordova-sectv-tizen/blob/master/www/config.xml.tmpl)\n    -   [tv-webos](https://github.com/Samsung/cordova-tv-webos/blob/master/www/appinfo.json.tmpl)\n-   In `config.xml` of your Cordova project, please add elements in each platform tag.\n    And these elements will be automatically added to each platform when preparing. - In case orasy and tizen, elements format is XML tag. - In case webos, elements format is JSON.\n\n        ```xml\n        \u003cplatform name=\"sectv-orsay\"\u003e\n            \u003cmultiapp\u003ey\u003c/multiapp\u003e\n        \u003c/platform\u003e\n        \u003cplatform name=\"sectv-tizen\"\u003e\n            \u003ctizen:metadata key=\"http://samsung.com/tv/metadata/prelaunch.support\" value=\"true\" /\u003e\n        \u003c/platform\u003e\n        \u003cplatform name=\"tv-webos\"\u003e\n            {\"appDescription\": \"This is an sample application\"}\n        \u003c/platform\u003e\n        ```\n\n-   For more details, please see the [config.xml reference on Cordova site](https://cordova.apache.org/docs/en/latest/config_ref/index.html).\n\n# How to build and package the application by platforms\n\n-   Packaging for `sectv-tizen`\n\n    -   Set the path of environment variables\n\n        -   Case 1. Tizen TV SDK 2.4 (previous version)\n\n            ```./\n            C:\\tizen-sdk\\tools\\ide\\bin\n            ```\n\n        -   Case 2. Tizen Studio (Recommend)\n\n            ```./\n            C:\\tizen-studio\\tools\\ide\\bin\n            ```\n\n    -   In the cordova project's root/Gruntfile.js:\n\n        ```js\n        // Fill out your 'profilePath' and 'profileName'\n        'sectv-tizen': {\n            profilePath: '/home/TizenSDK/tizen-studio-data/profile/profiles.xml',\n            profileName: 'myprofile',\n            www: 'platforms/sectv-tizen/www',\n            dest: 'platforms/sectv-tizen/build'\n        }\n        ```\n\n    -   profilePath\n\n        -   In the SDK workspace:\n\n        ```./\n        \u003cyourWorkspace\u003e/.metadata/.plugins/org.tizen.common.sign/profiles.xml\n        ```\n\n    -   profileName\n        -   In the SDK:\n            -   window \u003e Preferences \u003e Tizen SDK \u003e Security Profiles\n            -   `profileName`: Activated Profile name\n    -   If you couldn't find `profiles.xml`, please refer [How to share Author Certificate](http://www.samsungdforum.com/TizenGuide/?FolderName=tizen3531\u0026FileName=index.html)\n\n-   Packaging for `tv-webos`\n\n    -   Set the path of environment variables\n\n        ```./\n        C:\\webOS_TV_SDK\\CLI\n        ```\n\n-   In the cordova project's root:\n\n    ```sh\n    $ grunt sectv-build:\u003cplatform\u003e\n    ```\n\n-   `\u003cplatform\u003e` can be one of supported platforms. If you want to package all platforms:\n\n    ```sh\n    $ grunt sectv-build\n    ```\n\n-   For more details, please see the `sample/Gruntfile.js` of this project.\n\n# Known Issues\n\nNot yet\n\n[![Analytics](https://ga-beacon.appspot.com/UA-70262254-1/grunt-cordova-sectv/README)](https://github.com/igrigorik/ga-beacon)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsung%2Fgrunt-cordova-sectv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsung%2Fgrunt-cordova-sectv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsung%2Fgrunt-cordova-sectv/lists"}