Android SDK
Instructions to set up Appflow.ai SDK for your Android app

Last updated
Was this helpful?
Was this helpful?
/** top-level build.gradle */
allprojects {
repositories {
...
maven { url 'https://maven.appflow.ai/repository/sdk' }
}
}/** settings.gradle */
dependencyResolutionManagement {
...
repositories {
...
maven { url 'https://maven.appflow.ai/repository/sdk' }
}
}/** module-level build.gradle */
dependencies {
...
implementation 'com.imp:appflow:1.1.0'
}override fun onCreate() {
super.onCreate()
Appflow.init(this)
}override fun onCreate() {
super.onCreate()
Appflow.init(this, AppflowConfig.Builder().build()) {
//AppflowSDK initialization finished,do something
}
}override fun onCreate() {
super.onCreate()
Appflow.init(this, AppflowConfig.Builder().setAppUserID("your_user_id").build())
}override fun onCreate() {
super.onCreate()
Appflow.setLogEnable(true)
Appflow.init(this)
}