Installing UIKit
The Android SDK is delivered via Jitpack repository.
SDK supports Android 5.0 (API Level 21) and above
android {
...
defaultConfig {
minSDKVersion 21 // at least 21
}
}
Add the Jitpack repository in your project level
build.grade
at the end of repositories:allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
// add buildFeatures, compileOptions and kotlinOptions in android tag
android {
buildFeatures {
dataBinding = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}
dependency {
implementation 'com.github.AmityCo.Amity-Social-Cloud-UIKit-Android:amity-uikit:x.y.z'
}
AmityUIKit already includes our SDK. Don’t install AmitySDK separately if you have already installed the UIKit.
In your app module's
build.gradle
, add the following packaging options.android {
...
packagingOptions {
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/io.netty.versions.properties'
}
}
By using our SDK, you can use the Android ProGuard tool to obfuscate, shrink, and optimize your code. Obfuscated code can be more difficult for other people to reverse engineer. ProGuard renames classes, fields, and methods with semantically obscure names and removes unused code. However, you need to add these configurations to your ProGuard rules when using our SDK.
-keep class com.ekoapp.ekosdk.** { *; }
-keep interface com.ekoapp.ekosdk.** { *; }
-keep enum com.ekoapp.ekosdk.** { *; }
-keep class com.amity.socialcloud.** { *; }
-keep interface com.amity.socialcloud.** { *; }
-keep enum com.amity.socialcloud.** { *; }
Last modified 1mo ago