Links:
[1] https://developer.tizen.org/development/tizen-studio/download
[2] https://docs.tizen.org/application/native/tutorials/process/app-dev-process#developing-multiple-projects-as-a-combined-package
[3] http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fcworkset.htm
[4] https://developer.tizen.org/blog/how-create-multi-package-app-tizen
How to Create Multi Package App in Tizen
Introduction
Currently, more than 130+ million Tizen-based devices such as TVs, watches, Family-Hubs, IoT based home appliances, and so on are commercialized. Tizen ecosystem provides convenient development tools to meet all your development needs. Tizen Studio supports web application development using HTML, JS, CSS, and Native application development using C Language.
Tizen Studio not only guarantees compatibility with existing applications but also respond to the enhanced demands of new emerging platform applications. Tizen studio provides required tools to manage your application life cycle and ensures that you have everything needed to aid your application development needs by providing various options to add new features, enhance the existing functionality by creating a new app on top of the existing app with multiple package phenomenon This blog explores possibilities to help you get started with developing multi package applications.
What You Will Build?
You will set up a basic UI project with a widget project as package that is dependent on UI application:
What you need?
You need the following setup on your development hardware:
If you have set up the required software on your development hardware, let us get started with developing a basic multi package app. You can build on this basic app and develop a more complex multi package app.
Background
The basic objective of creating a multi package app is to create an application that fulfils the following use cases:
It seems at the very inception that multiple TPK support is the best solution, but this not true in every case. It has its drawbacks too; you must analyse your design aptly with the linked resources and determine that multiple TPK is the right choice for your application. For more information, see developing multiple packages as a Tizen app [2].
Multi Package App Structure
The multi package app has the following basic structure:
Procedure
You can create a new Tizen project using the provided templates and samples, and the available configuration settings. Tizen Studio provides various project templates and samples that make it easier for you to start coding your application. When you create a new project, you can select a specific template, which the Tizen Project Wizard uses to automatically create basic functionalities for the application. The default project files and folders are also created.
In the Tizen Project Wizard, you can select a profile and version, application type, and template or sample to create the project. In addition, you can set basic project properties, such as the project name, location, and working sets.
Let us create a basic multi package app with a wearable profile and UI template:
Step 1. Create a Basic UI App
You will get a basic UI app created with all the default and required files and folder in project explorer.
Step 2. Create Widget App
Note:
Property
Description
Project name
A name for the project to be created.
Use default location
If you check this option, the project is created in the "$<workspace_location>/<project_name>" directory.
Location
Manually select the location of the project.
If you check the "Use default location" checkbox, this option is disabled.
Working sets
If you want to include the project in a specific working set, select a working set [3].
Step 3. Establish Reference or Dependency
To establish a project reference between a UI application and a widget application such that you create a multi package app which has a dependency between them:
Step 4. Build and Run
The widget application is built automatically while the UI application is built and run.
Following the mentioned procedure chronologically ensures that you create a basic multi pack app. You can build more complex multi-apps and package multiple apps in one TPK as per your requirement and use case. It is imperative that Tizen Studio provides flexibility and options for all most all the use cases. If you want to build more predictable applications by composing functions and assembling components where each piece has its own responsibility, this ultimate modular paradigm is achieved by multi packaging. IfTizen Studio doesn’t support a service app template for web application.