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

In your Flutter code open the file where theCredoappsdk planned to be used.

  1. Add plugin import
import 'package:credoappsdk_proxy_encrypt/credoappsdk.dart';
  1. 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
  }
}
  1. Done!

Next Steps

After successfully integrating our SDK, it is recommended to proceed with the following steps to utilise our platform effectively:

  1. Setting up your Reverse Proxy
  2. Uploading your Dataset. Once the server is configured, you can upload your dataset using the server address.
  3. 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.