Appearance
Mobile Flutter Bridge
Treezor provides a Flutter bridge which exposes the same methods and interfaces as the Mobile SDK, in Flutter.
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
1
2
3
2
3
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
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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" />
1
2
3
4
5
6
2
3
4
5
6
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" />
1
2
3
4
2
3
4