Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

[design]packaging for Tizen

qi.zhang edited this page Dec 23, 2013 · 1 revision

To generate files that are ready for Tizen SDK, the MayLoon Porting Tool should output files in the following structure:

  MayLoonApp -|- .project
              |- config.xml
              |- icon.png
              |- android.core.Start.html
              |- <MayLoon framework files>
                 |- exteranl
                 |- njs
                 |- res_sys
              |- <application files>
                 |- bin
                    |- apps
                    |- classes
              |- <Mayloon jre files>
                 |- net.sf.j2s.lib


The .project file is found in the root folder of the project and is used by Eclipse for project configuration. One of the main features is to identify the Builders to use when validating the Javascript and building the web application package. The .project file should look like this:


     <natures> 
 	<nature>org.tizen.web.css.nature.CSSNature</nature> 
 	<nature>org.eclipse.wst.common.project.facet.core.nature</nature> 
 	<nature>org.eclipse.wst.jsdt.core.jsNature</nature> 
 	<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> 
 	<nature>org.tizen.web.project.builder.WebNature</nature> 
     </natures>
 </projectDescription> 


The config.xml file tells Tizen's web runtime how to install, display and run your app. It should look like this:

 <?xml version="1.0" encoding="UTF-8"?>
 <widget xmlns="http://www.w3.org/ns/widgets"
   	xmlns:tizen="http://tizen.org/ns/widgets"
 	id="http://yourdomain/MayLoonApp"
 	version="0.2" 
 	viewmodes="fullscreen">		
 	    <name>MayLoonApp</name>
 	    <icon src="icon.png"/>
 	    <content src="android.core.Start.html"/>
 	    <tizen:application id="MayLoonApp"/>
 </widget>

All occurrences of MayLoonApp can be replaced by the application's actual name.

icon.png is your application's icon when installed. Use this file.

All other files already exist for MayLoon and do not need to change. android.core.Start.html is the system entry point.


Reference - https://developer.tizen.org/downloads/sample-web-applications/load-web-app-tizen-sdk