Skip to content

Mobile Flutter Bridge

Treezor provides a Flutter bridge which exposes the same methods and interfaces as the Mobile SDK, in Flutter.

Warning icon

Caution – The abstraction layer is provided "as is"

Contrary to the SDK, this bridge is provided "as is", without any warranty.

To use it you have to specify the following dependency in your pubspec.yaml.

yaml
dependencies:
  endtrust_bridge_flutter:
    path: path_to_the_bridge_folder

The bridge will be provided to you as a ZIP archive.

Android Bridge Configuration

Add the following to android/app/build.gradle

json
android {
    [...]

    defaultConfig {
		[...]
        minSdkVersion 21
    }
    
    packagingOptions {
        jniLibs {
            keepDebugSymbols += "*/*/libscm.so"
            useLegacyPackaging = true
        }
    }
}

Metadata

Add the following metadata to android/app/src/main/AndroidManifest.xml

xml
<meta-data
  android:name="fr.antelop.application_id"
  android:value="\4713640103500149457" />
<meta-data
  android:name="fr.antelop.issuer_id"
  android:value="treezor" />

Permissions

Add the following permissions to android/app/src/main/AndroidManifest.xml

xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />