Configuration Steps

  1. Configure your app for multidex support (as shown below in the code below)
  2. Configure Kotlin (as shown below in the code below)
  3. AePS SDK is bundled in two .aar files,
  • aepsapis-release.aar
  • pnb-aeps-sdk.aar
  1. Place AePS Sdk’s .aar files and place them under /libs directory of app module
  2. To import and configure the Aeps Sdk in your project, please implement the following changes in app module build.gradle:
android {
  buildFeatures {
    dataBinding = true
    viewBinding = true
    }
}

dependencies {
  implementation files("libs/pnb-aeps-core-1.0.0-release.aar") 
  implementation files("libs/pnb-aeps-sdk-1.0.0.aar")

/**----------- ANDROID SUPPORT LIBRARIES	*/
  implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  implementation 'androidx.appcompat:appcompat:1.2.0'
  implementation 'androidx.cardview:cardview:1.0.0'
  implementation 'com.google.android.material:material:1.2.1'
  implementation 'androidx.annotation:annotation:1.1.0'
  implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
  implementation "androidx.core:core-ktx:+"
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

/**----------- GOOGLE LIBRARIES	*/
  implementation "com.google.android.gms:play-services-location:17.1.0"
  implementation "com.google.android.gms:play-services-places:17.0.0"
  api 'com.google.android.libraries.places:places:2.4.0'
  api 'com.google.maps.android:android-maps-utils:0.4.4'
  implementation 'com.google.android.gms:play-services-vision:20.1.2' 

/**----------- LIVEDATA LIBRARIES	*/
  implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
  implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
  implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"

 /**----------- NETWORKING LIBRARIES	*/
  implementation 'com.squareup.retrofit2:retrofit:2.0.0'
  implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
 implementation 'com.squareup.retrofit2:converter-scalars:2.4.0'
 implementation 'com.squareup.okhttp3:logging-interceptor:4.2.1'
 implementation 'com.squareup.okhttp3:okhttp:3.4.1'
 implementation 'com.squareup.picasso:picasso:2.71828'
 implementation 'androidx.multidex:multidex:2.0.1'
 implementation 'androidx.exifinterface:exifinterface:1.3.0'
 implementation 'androidx.browser:browser:1.2.0'
 implementation 'org.greenrobot:eventbus:3.2.0'
 implementation 'org.parceler:parceler-api:1.1.12'
 annotationProcessor 'org.parceler:parceler:1.1.12'
 implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0"
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.google.android.gms:play-services-vision:20.1.2'
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
  1. Add below code in manifest.xml file for File provider. Authorities should be set as package name.fileprovider
<provider
            
android:name="androidx.core.content.FileProvider"
android:authorities="${package name}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<!-- resource file to create -->
  <meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths">
  </meta-data>
</provider>
  1. Create new provider_paths xml in res->xml folder and add below code in this xml:
<?xml version="1.0" encoding="utf-8"?>
<paths    xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="."/>
</paths>
  1. Get an instance of AePS SDK
AepsSdk aepsSdk =AepsSdk.getInstance(mContext); // mContext is application context