[Huawei Developers] Freemind R:
More information like this, you can visit HUAWEI Developer Forum​

1. What's Image Kit?

In an era of ubiquitous social media, and instantly sharable images, photo editing apps have become fixtures on so many user's phones. HUAWEI Image Kit endows apps with powerful smart editing and scene-specific animation capabilities, offering up to 24 ready-made image rendering effects and design functions.

By integrating the Kit, your app will be equipped to provide the enthralling, and enriching photo editing that today's users demand.

2. Function Demonstration and Sample Code

You can view the demo below to better understand what Image Kit may bring to you:

[IMG="https://miro.medium.com/max/590/1*P2ybKnwBki6E64L2jfQa8g.gif"]https://miro.medium.com/max/590/1*P2ybKnwBki6E64L2jfQa8g.gif[/IMG]

If you are interested in how to implement filters with Image Kit, download the source code from Github at the following address and optimize the code based on your application scenarios.

Github address: https://github.com/HMS-Core/hms-image-vision

1. Getting Started

Step 1: Configure app information in AppGallery Connect.

To integrate HUAWEI Audio Kit, you must complete the following preparations:

Register as a Huawei developer.

Create an app in AppGallery Connect.

Create an Android Studio project.

Generate a signing certificate.

Generate a signing certificate fingerprint.

Configure the signing certificate fingerprint

Add the app package name and save the configuration file.

Configure the Maven repository address and AppGallery Connect gradle plug-in.

Configure the signature file in Android Studio.

For details, please refer to Preparations for Integrating HUAWEI HMS Core.

Step 2: Start Android Studio.

Step 3: Choose File > Open, go to the directory where the sample project is decompressed, and click OK.

Step 4: Configure the AppGallery Connect plug-in, Maven repository address, build dependencies, obfuscation scripts, and permissions. (These items have been configured in the sample code. If any of them does not meet your requirements, change it in your own project.)

1. Configure the Maven repository address and AppGallery Connect plug-in in the project's build.gradle file.

Go to allprojects > repositories and configure the Maven repository address for the HMS Core SDK.

allprojects {
repositories {
maven { url 'https://developer.huawei.com/repo/' }
…
}
}

Go to buildscript > repositories and configure the Maven repository address for the HMS Core SDK.

buildscript {
repositories {
maven {url 'https://developer.huawei.com/repo/'}
…
}
…
}

Go to buildscript > dependencies and add dependency configurations.

buildscript{
dependencies {
classpath 'com.huawei.agconnect:agcp:1.3.1.300'
}
}

2. Configure the dependency package in the app's build.gradle file.

Add a dependency package to the dependencies section in the build.gradle file.

dependencies {
…
implementation 'com.huawei.hms:image-vision:1.0.2.301'
…
}

Configure minSdkVersion.

android {
...
defaultConfig {
...
minSdkVersion 26
...
}
...
}

Add the AppGallery Connect plug-in dependency to the file header.

apply plugin: 'com.huawei.agconnect'

Note: Make sure that you configure apply plugin: 'com.huawei.agconnect' after apply plugin:'com.android.application'.

3. Configure obfuscation scripts.

Configure the following information in the app/proguard-rules.pro file:

-ignorewarnings
-keepattributes *Annotation*
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keepattributes SourceFile,LineNumberTable
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}

If you are using AndResGuard, add it to the trustlist in the obfuscation configuration file.

"R.string.hms*",
"R.string.connect_server_fail_prompt_toast",
"R.string.getting_message_fail_prompt_toast",
"R.string.no_available_network_prompt_toast",
"R.string.third_app_*",
"R.string.upsdk_*",
"R.layout.hms*",
"R.layout.upsdk_*",
"R.drawable.upsdk*",
"R.color.upsdk*",
"R.dimen.upsdk*",
"R.style.upsdk*",
"R.string.agc*"

4. Configure permissions in the AndroidManifest.xml file.

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

Step 5: In the Android Studio window, choose File > Sync Project with Gradle Files to synchronize the project.

This is not the end. For full content, you can visit https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0202349402887660146&fid=0101187876626530001