Kanzi 3.9 alpha 3 migration guide

Use this migration guide to update Kanzi applications from Kanzi 3.9 alpha 2 to Kanzi 3.9 alpha 3.

Migrating Kanzi applications to use Android Studio 4.1.0 and Gradle 6.5

To migrate Kanzi applications to use Android Studio 4.1.0 and Gradle 6.5:

  1. In Android Studio in the android_gradle/app/build.gradle file replace:

    externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
            version "3.6.0+"
        }
    }
    

    with

    externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
            version "3.6.0"
        }
    }
    
  2. In the android_gradle/build.gradle file replace:

    dependencies {
        classpath 'com.android.tools.build:gradle:<android-studio-version>'
        classpath 'com.rightware.gradle:kanzi:<gradle-plugin-version>'
    }
    

    with

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.0'
        classpath 'com.rightware.gradle:kanzi:0.6.1'
    }
    
  3. In the android_gradle/gradle/wrapper/gradle-wrapper.properties file replace:

    distributionUrl=https\://services.gradle.org/distributions/gradle-<version>-bin.zip
    

    with

    distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
    
  4. In the android_gradle/gradle.properties file replace:

    org.gradle.jvmargs=-Xmx<size>m
    

    with

    org.gradle.jvmargs=-Xmx4608m
    
  5. To update Gradle in your application, either:

    • In Android Studio select Gradle > Task > build setup > Wrapper.

    • On the command line run:

      ./gradlew wrapper
      

Changes to Activity functionality

Kanzi UI automation plugin

Kanzi 3.9 alpha 3 comes with the Kanzi UI automation plugin. To prevent conflicts in Kanzi Studio, delete the C:\ProgramData\Rightware\Kanzi 3.9.0\PreviewPlugins\kzuiautomation directory.

API changes

Kanzi 3.9 alpha 2

Kanzi 3.9 alpha 3

DataDrivenExclusiveActivityHostConcept.s_activeInternalActivityName

DataDrivenExclusiveActivityHostConcept.s_activeDataActivityName

ExclusiveActivityHostConcept.activityInfo

ExclusiveActivityHostConcept.childrenInfo

See also

Kanzi 3.9 alpha 3 release notes

Known issues