11package io.scanbot.example
22
33import android.app.Application
4- import io.scanbot.sap.SdkFeature
54import io.scanbot.sdk.ScanbotSDK
65import io.scanbot.sdk.ScanbotSDKInitializer
76import io.scanbot.sdk.util.log.LoggerProvider
@@ -24,11 +23,9 @@ class ExampleApplication : Application() {
2423 .withLogging(true )
2524 // TODO 2/2: Enable the Scanbot SDK license key
2625 // .license(this, licenseKey)
27- .licenceErrorHandler { status, feature, statusMessage ->
26+ .licenseErrorHandler { status, feature, statusMessage ->
2827 LoggerProvider .logger.d(" ExampleApplication" , " +++> License status: ${status.name} . Status message: $statusMessage " )
29- if (feature != SdkFeature .NoSdkFeature ) {
30- LoggerProvider .logger.d(" ExampleApplication" , " +++> Feature not available: ${feature.name} " )
31- }
28+ LoggerProvider .logger.d(" ExampleApplication" , " +++> Feature not available: ${feature.name} " )
3229 }
3330 // .sdkFilesDirectory(this, getExternalFilesDir(null)!!)
3431 .initialize(this )
@@ -38,6 +35,6 @@ class ExampleApplication : Application() {
3835 val licenseInfo = ScanbotSDK (this ).licenseInfo
3936 LoggerProvider .logger.d(" ExampleApplication" , " License status: ${licenseInfo.status} " )
4037 LoggerProvider .logger.d(" ExampleApplication" , " License isValid: ${licenseInfo.isValid} " )
41- LoggerProvider .logger.d(" ExampleApplication" , " License expirationDate: ${licenseInfo.expirationDate } " )
38+ LoggerProvider .logger.d(" ExampleApplication" , " License expirationDate: ${licenseInfo.expirationDateString } " )
4239 }
4340}
0 commit comments