Samsung / grunt-cordova-sectv

Grunt task for build and package the cordova project with `sectv-OOO` platforms.
Apache License 2.0
18 stars 22 forks source link

How to set specify(other) elements in config.xml ?? #6

Open pwsses opened 8 years ago

pwsses commented 8 years ago

Dear Toast Developer.

I will want to declare necessary elements to a particular platform in config.xml file.

I tried it in myCordovaProject/platforms/MyPlatform/www/config.xml.

but it is overwritten when I run "grunt sectv-prepare:MyPlatform".

Do you have any solutions?

BR.

pwsses commented 8 years ago

I will recommend to using platform element in your cordova project config.xml file that is global configuration file. url : https://cordova.apache.org/docs/en/latest/config_ref/index.html

example code

<platform name="sectv-tizen">
     <!-- Write your necessary element -->
     <tizen:metadata key="http://samsung.com/tv/metadata/prelaunch.support" value="true" />
</platform>
<platform name="sectv-orsay">
    <!-- Write your necessary element -->
    <prelaunch>y</prelaunch>
</platform>