v1.0.8
Initialize
AbleCredit.initialize(context) bootstraps the SDK's dependency injection container and registers background services. It must be called exactly once, from Application.onCreate(), before any other SDK method.
If you call initialize() from an Activity instead of Application, the SDK throws an uninitialized exception the first time any method is called.
Step 1 – Create custom Application class
package com.example.sdk_sample_kotlin
import android.app.Application
import com.ablecredit.sdk.manager.AbleCredit
class SdkSampleApplication : Application() {
override fun onCreate() {
super.onCreate()
AbleCredit.initialize(applicationContext)
}
}Step 2 – Register in AndroidManifest.xml
<!-- Use your Application subclass name -->
<application
android:name=".AbleCreditFlutterApplication"
...>Setup & Install
The AbleCredit SDK is distributed through Maven Central – no custom repository URLs or credentials required.
Configure
AbleCredit.configure() authenticates the current user session against the AbleCredit backend. Call it once after the user logs in, before any loan or capture operations.