Installation
Development setup
Configure your project to use Java Development Kit (JDK) 11.
In your app’s build.gradle
file, set the minSdkVersion
to 21
and
targetSdkVersion
to 31
.
Add Maven Central and the build-info extractor inside the buildscript {}
block:
Add the remote repository (maven url) to your Gradle dependencies under the
build.gradle -> allprojects{}
section.
At the end of the file, apply the artifactory plugin.
Integrators (third parties)
Add the dependency to a module that will be using the SDK:
Additional setup
The Yoco SDK relies on Android’s Data Binding library; any module that uses the YocoSDK must have Data Binding enabled.
For more information, see the databinding guide.
ProGuard setup
If your project uses ProGuard for minification and obfuscation, then add the rules below to your ProGuard file.
Sync the project to download the dependency.