Vouch logovouch
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 of the vouch SDK methods check Android currently running on this device. Interact with vouch SDK only if it is at least Android 13 (SDK 33).

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
            // Initialize and start proving
        } else {
            // Show an error
        }