v1.0.7
Configure
Call configure() before every session. v1.0.7 adds an optional branchId parameter and the new getSdkConfig() / isTestUser() helpers.
val configResult = AbleCredit.configure(
context = this,
apiKey = apiKey,
tenantId = tenantId,
userId = userId,
baseUrl = baseUrl,
branchId = "ML1348", // new in 1.0.7 – optional
)
when (configResult) {
is AbleCreditResult.Success -> Log.d("AbleCredit", "SDK configured")
is AbleCreditResult.Failure -> Log.e("AbleCredit", "Configure failed: ${configResult.message}")
}
// getSdkConfig() – new in 1.0.7
val config = AbleCredit.getSdkConfig()
Log.d("AbleCredit", "branchId=${config.branchId}")
// isTestUser() – new in 1.0.7
val isTest = AbleCredit.isTestUser()Initialize
Call AbleCredit.initialize() once in your Application.onCreate().
Capture – Direct Calls
v1.0.7 uses direct calls only. Your app controls navigation and calls each SDK method. Use loanApplicationId as the capture parameter. Photo capture methods now accept an optional AbleCreditFileUploadListener.