Add Kettle
Preqrequisites
The following criterias must be fulfilled to implement the SDK:
- Minimum SDK version: 15
- Android Jetpack artifacts (AndroidX)
- Must be compiled with Java 8+
- Kotlin 1.7.20
Gradle Configuration
Reference repository
Kettle is hosted on a non-public repository and has to be added manually.
Open your projects build.gradle
script and add the repository hosting the SDK:
build.gradle
allprojects {
repositories {
maven { url = "https://artifacts.kogenta.com/release" }
}
}
Add dependency
Add the SDK as a dependency to your application's build.gradle
file:
build.gradle
dependencies {
implementation 'com.kogenta.kettle:kettle-sdk:1.0.1'
}
Add API key
IMPORTANT
A runtime exception will be thrown on launch if API key is missing.
::
In AndroidManifest.xml
, add the following element as a child to the <application>
element:
AndroidManifest.xml
<meta-data
android:name="com.kogenta.kettle.sdk.API_KEY"
android:value="<API-KEY>"
/>
Proguard
If your project utilizes ProGuard, add the following exceptions to your ProGuard definition:
-keep class com.kogenta.kettle.core.model.** { *; }
-keep class com.kogenta.kettle.common.model.** { *; }