Skip to content

Lenddo/android-lenddo

Repository files navigation

Android Lenddo SDK

Table of Contents

Introduction

The Lenddo SDK (lenddosdk module) allows you to collect information in order for LenddoEFL to verify the user's information and enhance its scoring capabilities. The Lenddo SDK connects to user's social networks and also collects information and mobile data in the background and can be activated as soon as the user has downloaded the app, granted permissions and logged into the app.

Pre-requisites

Make sure you have Android Studio properly setup and installed, please refer to the Google Developer site for the instructions Android Studio Download and Installation Instructions. Use API28 Build tools as minimum.

Before incorporating the Lenddo SDK into your app, you should be provided with the following information:

  • Partner Script ID

Please ask for the information above from your LenddoEFL representative. If you have a dashboard account, these values can also be found there.

There may be also other partner specific values that you are required to set.

Installing the Lenddo SDK

  1. Add the JitPack repository to your build file
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  1. Add the dependency
dependencies {
    implementation 'com.github.Lenddo:android-lenddo:v2.4.1'
}
  1. Sync Gradle

Adding the Lenddo Credentials

In your applications AndroidManifest.xml file, inside the application key, add the following metadata:

<!-- partner script id is mandatory -->
<meta-data android:name="partnerScriptId" android:value="@string/partner_script_id" />

Or if you wish to have separate partner script id on each module (Data, Onboarding, and VerifiMe), you would have to declare a partnerScriptId tag for each.

<!-- partner script id for Mobile Data collection  -->
<meta-data android:name="dataPartnerScriptId" android:value="@string/data_partner_script_id" />

<!-- partner script id for Social Network onboarding -->
<meta-data android:name="onboardingPartnerScriptId" android:value="@string/onboarding_partner_script_id" />

<!-- partner script id for Document Verification with Verifi.Me -->
<meta-data android:name="verifiMePartnerScriptId" android:value="@string/verifi_me_partner_script_id" />

In your strings.xml put your partnerscript_id resource string.

<string name="partner_script_id">ASK_YOUR_LENDDO_REPRESENTATIVE_FOR_THIS_VALUE</string>
<!--individual partner script id-->
<string name="data_partner_script_id">ASK_YOUR_LENDDO_REPRESENTATIVE_FOR_THIS_VALUE</string>
<string name="onboarding_partner_script_id">ASK_YOUR_LENDDO_REPRESENTATIVE_FOR_THIS_VALUE</string>
<string name="verifi_me_partner_script_id">ASK_YOUR_LENDDO_REPRESENTATIVE_FOR_THIS_VALUE</string>

Initializing Lenddo SDK

In your Application class initialize Lenddo core info as shown below

package com.sample.app;

import android.support.multidex.MultiDexApplication;

import com.lenddo.mobile.core.LenddoCoreInfo;

public class  SampleApp extends MultiDexApplication {
   @Override
   public void onCreate() {
       super.onCreate();
       LenddoCoreInfo.initCoreInfo(getApplicationContext());

       // do other Lenddo stuff after init
   }
}

Running the Demo Applications

To see how to use the demo applications, click this link.

Lenddo Mobile Data Collection

For mobile data collection guide, click this link.

Connecting Social Networks and eKYC

For onboarding your Social Networks accounts with LenddoEFL and using the eKYC feature, click this link.