Gradle
Maven (recommended)
Maven allows the integration of the lightweight ArcPlay.ai SDK (~150 KB) by adding a few lines of code to the application’s build.gradle
file. To use ArcPlay.ai simply add it to your build.gradle
file:
Add the JitPack and IS repositories to your build file. Add it in your root
build.gradle
at the top of your repositories:
After adding the above code to your repositories inside build.gradle
it should look similar to this:
In case, you don't have mavenCentral()
in your repositories, you should also add the following maven repos before jitpack:
Note: If you are facing issues with fetching dependencies for com.github.ArcPlayAi:arcplay-sdk-android
, you should add the above maven repo to your repositories.
Add the dependency
Manual Integration
Alternatively, you can do the manual integration by following the below steps:
Download the SDK:
Place the
arcSDK.aar
file to thelibs
directory of your project or any other directory of your choice.
Modify
build.gradle
and verify app:Open
build.gradle
file from the app module.Add the following line of code to the
dependencies
blockClick on
Sync Now
from the Android Studio bar and build the project to ensure that SDK is integrated correctly without errors.
ADDITIONAL NOTES:
Progaurd rules
Create a file name with
proguard-arcplay.pro
Add the following code in
proguard-arcplay.pro
fileInclude the following line of code in your
build.gradle
file before generating the release apk
Last updated