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.persistence.fileio.AESEncryptedFileIOProcessor
@@ -36,11 +35,9 @@ class ExampleApplication : Application() {
3635 .withLogging(true )
3736 // TODO 2/2: Enable the Scanbot SDK license key
3837 // .license(this, licenseKey)
39- .licenceErrorHandler { status, feature, statusMessage ->
38+ .licenseErrorHandler { status, feature, statusMessage ->
4039 LoggerProvider .logger.d(" ExampleApplication" , " +++> License status: ${status.name} . Status message: $statusMessage " )
41- if (feature != SdkFeature .NoSdkFeature ) {
42- LoggerProvider .logger.d(" ExampleApplication" , " +++> Feature not available: ${feature.name} " )
43- }
40+ LoggerProvider .logger.d(" ExampleApplication" , " +++> Feature not available: ${feature.name} " )
4441 }
4542 .useFileEncryption(USE_ENCRYPTION , AESEncryptedFileIOProcessor (ENCRYPTION_PASSWORD , ENCRYPTION_METHOD ))
4643 // .sdkFilesDirectory(this, getExternalFilesDir(null)!!)
@@ -51,6 +48,6 @@ class ExampleApplication : Application() {
5148 val licenseInfo = ScanbotSDK (this ).licenseInfo
5249 LoggerProvider .logger.d(" ExampleApplication" , " License status: ${licenseInfo.status} " )
5350 LoggerProvider .logger.d(" ExampleApplication" , " License isValid: ${licenseInfo.isValid} " )
54- LoggerProvider .logger.d(" ExampleApplication" , " License expirationDate: ${licenseInfo.expirationDate } " )
51+ LoggerProvider .logger.d(" ExampleApplication" , " License expirationDate: ${licenseInfo.expirationDateString } " )
5552 }
5653}
0 commit comments