The SDK file should be in libs folder of project, then it can be added to build.gradle file of the project like below.
Copy implementation files('libs/paycontactlesscustomersdk.embed-debug.aar')
SDK needs some third party libraries and the integrator app must have these dependencies. The libraries which is shared below should be added to the build.gradle file.
Copy dependencies {
// Koin
implementation "io.insert-koin:koin-android:3.5.3"
implementation "io.insert-koin:koin-core:3.5.3"
// Lottie
implementation "com.airbnb.android:lottie:3.4.0"
// Rx
implementation "io.reactivex.rxjava2:rxjava:2.2.6"
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
// Networking
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
implementation "com.squareup.retrofit2:adapter-rxjava2:2.9.0"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
implementation "com.squareup.okhttp3:logging-interceptor:4.10.0"
//Google Play Service
implementation "com.google.android.gms:play-services-base:18.5.0"
// Moxy
implementation "com.github.moxy-community:moxy-androidx:2.2.2"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
kapt "com.github.moxy-community:moxy-compiler:2.2.2"
//Security
implementation "androidx.security:security-crypto:1.0.0"
implementation "androidx.core:core-ktx:1.8.0"
implementation "com.google.android.play:integrity:1.4.0"
//BarCode
implementation "com.journeyapps:zxing-android-embedded:4.3.0"
// Glide
implementation "com.github.bumptech.glide:glide:4.14.2"
annotationProcessor "com.github.bumptech.glide:compiler:4.14.2"
// Room
implementation "androidx.room:room-runtime:2.6.1"
annotationProcessor "androidx.room:room-compiler:2.6.1"
// SQLCipher
implementation "net.zetetic:android-database-sqlcipher:4.5.0"
// Gson
implementation "com.google.code.gson:gson:2.10.1"
}
In order to support schemas' branding animations, jetifier tools must be enabled on your project. The following configuration must be added on your gradle.properties
file.
Copy # Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true