Miscellaneous - flutter-tizen/flutter-tizen GitHub Wiki
Getting the latest embedder
Pre-built embedder artifacts are automatically released at https://github.com/flutter-tizen/embedder/releases when a new commit is merged. These pre-releases are untested and unstable, and may have bugs or incompatible API changes. If you want to download any of the pre-releases, follow the below instructions.
- Go to https://github.com/flutter-tizen/embedder/commits/master and find your target commit hash.
- Open
bin/internal/embedder.version
in your flutter-tizen installation directory and overwrite the file with the commit hash you found in the previous step. - Done. Build your app using either
flutter-tizen build tpk
orflutter-tizen run
.
If you want to test a PR that hasn't even been merged yet, follow these steps:
- Download and install GitHub CLI if it's not already installed. If you're using GitHub CLI for the first time, be to log in with
gh auth login
. - Go to the Checks tab of your target PR and click on the job name (Build) from the left sidebar.
- Find the Run ID from the URL of the Summary page. For example, if the URL is as follows, the Run ID is
1234567890
.https://github.com/flutter-tizen/embedder/actions/runs/1234567890
- Run the following command(s) to invalidate cached artifacts and download new artifacts. Replace
[RUN_ID]
with the Run ID you found in the previous step.# Linux/macOS (Bash/Zsh) GITHUB_EMBEDDER_RUN_ID=[RUN_ID] flutter-tizen precache --tizen # Windows (PowerShell) $env:GITHUB_EMBEDDER_RUN_ID = [RUN_ID] flutter-tizen precache --tizen $env:GITHUB_EMBEDDER_RUN_ID = ''
- Done. Build your app using either
flutter-tizen build tpk
orflutter-tizen run
.
Running flutter-tizen on WSL (Windows Subsystem for Linux)
Note: Use WSL1 if you want to use Tizen emulators or your Tizen device is connected via USB, since WSL2 doesn't support USB pass-through.
-
(Windows) Install Tizen Studio using the GUI installer. You may also install emulator packages using Package Manager if necessary.
-
(Linux) Install Tizen Studio using the CLI installer. On Ubuntu 20.04, for example:
# Install dependencies. sudo apt update sudo apt install curl pciutils zip libncurses5 python2.7 libpython2.7 # Download and install Tizen Studio. curl -o install.bin http://download.tizen.org/sdk/Installer/tizen-studio_5.1/web-cli_Tizen_Studio_5.1_ubuntu-64.bin chmod a+x install.bin ./install.bin --accept-license rm install.bin # Install required packages using package-manager-cli. ~/tizen-studio/package-manager/package-manager-cli.bin install --accept-license \ NativeToolchain-Gcc-9.2 WEARABLE-5.5-NativeAppDevelopment-CLI cert-add-on
-
(Linux) Install flutter-tizen and add it to your PATH.
-
(Linux) Verify by running the
doctor
command.$ flutter-tizen doctor [✓] Flutter (Channel unknown, 2.2.1, on Linux, locale C.UTF-8) [✓] Tizen toolchain - develop for Tizen devices [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. [!] Android Studio (not installed) [✓] Connected device (2 available)
Note: If you are using WSL1, it is recommended to start the sdb server from the Windows side. Otherwise, sdb devices
may not list your connected devices correctly.
Note: If you have a problem signing a TPK and installing it on your Tizen device, see TPK installation troubleshooting.