Our SDK is using the classic Android activity lifecycle in order to run.
Which means your Activity will run our SDK activity and then our SDK will run your next activity.
Example with a login / home page mechanism :
1. Adding Cleardil repository to gradle
First you will need to specify your credentials to Cleardil artifactory repository in the gradle.properties file :
Then add this to your build.gradle to reference our artifactory repository in your project :
And add to your app/build.gradle :
2. Basic calling of Cleardil SDK in your code
Add a Flutter activity to your AndroidManifest.xml :
Use the implementation of KycModule builder :
You will need to replace by your SDK Token.
You will also need to specify the Cleardil Environment (PROD, SANDBOX or DEMO) you want to connect to.
Use the Demo environment if you do not want to connect to Cleardil Environment.
As explained before you will need to specify an Activity class which will be launched at the end of the Cleardil SDK.
This code will instantiate the ClearDil Kyc Module and start it.
3. Advanced call
You can specify which type of document is allowed for your clients with theses methods :
Example with the KycModule builder :
This code will instantiate the ClearDil Kyc Module allowing only Id CARD & Driver License.
Not specifying the Allow methods will allow everything.