Package Manager

Note

In this version of Kanzi, the Package Manager is available only to selected users.

Use the Package Manager to manage dependencies in your Kanzi projects. The Package Manager allows you to install, update, and remove project dependencies:

  • Kanzi Engine plugins, libraries, and headers

  • Kanzi Studio plugins

  • Asset packages

The Package Manager works with Kanzi 3.9.11 and newer versions.

Installing the Package Manager

To install the Package Manager:

  1. In Kanzi Hub, download the Package Manager installer.

    Kanzi Hub downloads the Package Manager installer to your Downloads directory.

    See Kanzi Hub and Kanzi Account.

  2. Run the Package Manager installer.

    The Package Manager uses Conan to download and install packages. If you do not have Conan 2.10.0 installed, the Package Manager installer asks you to install Conan.

  3. When the installation is complete, to log in to the Rightware Conan repository, use your JFrog platform credentials that you received from Rightware.

You can access the Package Manager in the Kanzi Studio Package Manager main menu.

../../_images/main-menu-package-manager.png

Adding packages to a project

To add a package to a project:

  1. In Kanzi Studio main menu, select Package Manager > Open Package Manager.

    ../../_images/main-menu-package-manager-open.png
  2. In the Package Manager left panel, select the package that you want to add to your project and in the right panel click the button under the package name.

    The Package Manager installs the package according to its type. It adds:

    • Kanzi Engine plugins, libraries, and headers as project dependencies.

    • Kanzi Studio plugins as a dependency of the current Kanzi Studio instance.

    • Asset packages as an asset source for the current Kanzi Studio instance.

    ../../_images/package-manager-add-to-project.png

Removing packages

To remove:

  • A Kanzi Engine package, in the Package Manager, in the Project tab, select the package that you want to remove, click Remove from project, and confirm removal.

    ../../_images/package-manager-remove-from-project.png
  • An asset package, in the Asset Packages, right-click an asset source and select Remove.

    ../../_images/asset-packages-remove.png

Adding remote repositories

To add a remote repository:

  1. In the Package Manager, in Repositories, click + Add Repository.

    ../../_images/package-manager-add-repository.png
  2. In the Repository Setup window, set:

    ../../_images/package-manager-repository-setup.png
  3. Click OK.

    The Package Manager lists the packages from the repository that you added.

Limitations

  • Code Behind feature is not supported when you use the Conan-based Kanzi Studio project templates.

  • In some cases, the Package Manager installer fails. If the installation is unsuccessful:

    1. Clear the Conan cache on your computer.

    2. Remove the existing Conan installation.

    3. Reinstall the Package Manager.

  • Package Manager lists packages that you cannot use from Kanzi Studio. For example, platform-specific packages, such as appfw and droidfw.

  • When you use templates provided through the Package Manager, deploying Kanzi applications from Kanzi Studio to Android does not work. You can build and deploy the application manually with Gradle CLI or Android Studio.

  • Package Manager does not work with Java packages and the Android templates do not include the Java plugin template. You can manually add Java dependencies and make your Java plugin subproject.