Tizen is just one of the many target platforms for You.i React Native apps. Here’s how to get started with developing Tizen apps on Mac, Linux, or Windows.
You can build a You.i React Native app for Tizen on any of our supported development platforms: Linux, macOS, or Windows. Consult Environment Setup to verify that everything is set up properly.
Download and install the following packages:
sudo apt-get install libwebkitgtk-1.0.0
sudo apt-get install rpm2cpio
sudo apt-get install expect
sudo apt-get install bridge-utils
sudo apt-get install openvpn
Install Python 2.7.x by downloading the latest 2.7.x MSI installer for Windows and running the .msi file.
Install the Ninja Generator by downloading the latest Ninja generator binary file and saving the extracted folder to a known location, such as your C: drive.
Record the install paths; you’ll need them later when configuring environment variables.
You must have Visual Studio installed on Windows before installing the Java Development Kit (JDK) 8 and Tizen Studio. For the latest information on supported versions of Tizen Studio, see Hardware and Software Specifications.
Java Development Kit (JDK) 8.0 is the only version that is currently supported by You.i Platform. Other versions are likely to cause issues and not work correctly. See Troubleshooting Tizen Development Environment Issues for more information.
For all operating systems:
wget http://download.tizen.org/sdk/Installmanager/tizen-sdk-X.x/tizen-sdk-ubuntu64-vX.x.x.bin
Make sure you enter the correct version of Tizen Studio; where you see an X.x
in the command above, replace it with the version of Tizen Studio that you are using.
To make the .bin file executable:
Open Terminal and navigate to the folder where Tizen Studio and the IDE installer were downloaded.
Enter the following command to make the file executable: chmod +x <filename>.bin
./<filename>.bin
Do the following steps:
To build Tizen application widget files from the command line, you must configure environment variables.
Mac: Open your Bash profile using your favorite editor (this example uses nano):
nano ~/.bash_profile
Linux: Open the .bashrc file.
Enter open ~/.bashrc
Add the following environment variable for TIZEN_SDK_HOME
:
export TIZEN_SDK_HOME="$HOME/tizen-studio"
Use the path recorded earlier when you extracted the NaCl Pepper SDK to set the TIZEN_NACL_SDK_HOME
environment variable.
export TIZEN_NACL_SDK_HOME="$HOME/nacl_sdk/pepper_56"
Add the following to your PATH
environment variable to allow the Tizen Command Line Interface (CLI) and Smart Development Bridge (SDB) tools to be available on the command line:
export PATH=$PATH:$HOME/tizen-studio/tools:$HOME/tizen-studio/tools/ide/bin
Update your current shell:
Mac: source ~/.bash_profile
Linux: source ~/.bashrc
PATH
environment variable if Visual Studio is not installed on any other directory path.
Replace <version>
in the command below with your version of Visual Studio:
C:\Program Files\Microsoft Visual Studio <version>\VC\bin
PATH
environment variable if the Ninja generator is not installed on any other directory path:
C:\Ninja-win
PATH
environment variable to allow the Tizen Command Line Interface (CLI) and Smart Development Bridge (SDB) tools to be available on the command line:
C:\tizen-studio\tools;C:\tizen-studio\tools\ide\bin
To build the You.i Platform SDK project for the Tizen platform, add the following environment variables:
TIZEN_SDK_HOME=%HOMEDRIVE%\tizen-studio
TIZEN_NACL_SDK_HOME=%HOMEDRIVE%\nacl_sdk\pepper_56
PYTHONPATH=%HOMEDRIVE%\nacl_sdk\pepper_56\toolchain\win_pnacl\bin\pydir
You.i TV recommends that you avoid using TIZEN_SIGNING_IDENTITY
to manually specify a certificate to use when signing application widgets.
Use the Tizen Certificate Manager instead.
Within You.i Platform, TIZEN_SIGNING_IDENTITY
populates the value of the --sign
argument of the Tizen CLI, but there is an issue with the CLI itself that results in this value being ignored, and your widget not being signed with any certificate at all.
To remedy this issue, ensure that the correct certificate is active in the Certificate Manager before building.
Once your dev environment is all set up, we recommend running through our Quick Start Guide. But if our Quick Start isn’t quick enough for you, here’s an even quicker start.
Install the You.i TV command line interface tool, You.i Platform, and any required dependencies youi-tv doctor
requests.
yarn global add youi-cli
youi-tv login # Enter your product key when prompted.
youi-tv install 6.15.0 # If asked, accept most recent version of Babel or other dependencies
youi-tv doctor # Resolve any missing components (but don't worry about Android for now)
Set up scaffolding for your app with youi-tv init
.
youi-tv init MyApp # Create a folder called MyApp for your project
cd MyApp
Use youi-tv doctor
to validate your configuration.
Make any changes needed to meet the requirements.
If it’s not already running, start the Metro bundler (Yarn server) from your development platform.
yarn start # can be run from any folder in your project
Generate, build, deploy, and launch the Tizen project.
cd MyApp
youi-tv run -p tizen-nacl
For more information, see Building and Installing Tizen Application Widgets.
If you had any issues with this tutorial, you can download a zip file with the completed JavaScript and C++ files. The files contain updates for the entire tutorial and won’t run for all the steps, but they’re useful guides for adding lines of code.