Android
Integration for apps with lower minSDK
Under Development: This SDK is currently in development. Documentation and API may change. For production use, please contact our team.
Overview
Android framework makes it possible to integrate dependencies with higher minSDK configuration than supported by the application.
Disable compile-time check
Add the following tag to your application AndroidManifest.xml to suppress compile-time check of minSDK compatibility:
<uses-sdk tools:overrideLibrary="com.vlayer.vouch.sdk" />Check Android version at runtime
Before calling any vouch SDK method, check the device's Android version. Only interact with the SDK when the device is running Android 8.0 (API level 26) or later.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// Initialize and start proving
} else {
// Show an error
}