Migrating to version 3.1.0
Android integration#
With version 3.1.0
of the PhotoEditor SDK for Flutter, the integration of the native Android PE.SDK has changed. The new minimum Android PE.SDK version is 10.9.0
which requires Kotlin Symbol Processing (KSP).
To migrate, you need to add the KSP plugin to your Gradle file. When using Flutter version < 3.19, please add the KSP plugin to your android/build.gradle
and change the SDK version to 10.9.0
:
buildscript {dependencies {...+ classpath 'com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.7.21-1.0.8'+ classpath 'ly.img.android.sdk:plugin:10.9.0'...}}
When using Flutter version 3.19+, you will need to add the KSP plugin to your android/settings.gradle
, and change the PE.SDK version there as well:
```diffplugins {...+ id "com.google.devtools.ksp" version "1.7.21-1.0.8" apply false+ id "ly.img.android.sdk" version "10.9.0" apply false}```
The KSP version depends on the Kotlin version that you are using. In order to find the correct version, please visit the official KSP release page. For further information, please take a look at the integration guides.
Further, you need to do the following modification inside your android/app/build.gradle
:
- imglyConfig {+ IMGLY.configure {modules {include 'ui:text'include 'ui:focus'...