Integration
The minimal supported version of Flutter SDK is 2.12
(inclusive) or higher
The minimal supported version of Flutter is 1.20.0
(inclusive) or higher
The minimal supported iOS version is 11.0
or higher
The minimal supported Android API version is 21
or higher
1. Declare dependencies
Add dependency to your project in thepubspec.yaml
:
dependencies:
credoappsdk_proxy_encrypt:
hosted:
name: credoappsdk_proxy_encrypt
url: https://dart.cloudsmith.io/credolab/hybrid/
version: 4.0.0
Open a terminal window on the root path of your project and execute:
flutter pub get
Add repositories for Android
Open android/build.gradle
file and add the repository according to your flow:
allprojects {
repositories {
// ...
maven { url "https://dl.cloudsmith.io/$TOKEN/credolab/proxyen-sdk/maven/" }
}
}
Add repositories for iOS
Add the Cocoapods repository to the beginning of the ios/Podfile
file
source 'https://dl.cloudsmith.io/$TOKEN/credolab/proxyen-sdk/cocoapods/index.git'
2. Build and Use Credoappsdk
Credoappsdk
In your Flutter code open the file where theCredoappsdk
planned to be used.
- Add plugin import
import 'package:credoappsdk_proxy_encrypt/credoappsdk.dart';
- Call
Credoappsdk.execute()
method to start the data collection process
Future<void> collectData() async {
final result = await Credoappsdk.execute();
if(result.isFailure){
print("Error: ${result.code} ${result.message}");
}else{
result.value // this is dataset -> now upload collected data to credolab servers
}
}
- Done!
Next Steps
After successfully integrating our SDK, it is recommended to proceed with the following steps to utilise our platform effectively:
- Setting up your Reverse Proxy
- Uploading your Dataset. Once the server is configured, you can upload your dataset using the server address.
- Collecting your Dataset Insight or TruValidate(formerly known as iovation) Fraud Check. With the dataset uploaded, you can now get insights or perform TruValidate Fraud Checks to assess risk based on the device and transaction details provided.
If you have any further questions, please do not hesitate to contact us.
Updated about 1 month ago