Android – Installation
Learn how to install Adapty Android SDK via Gradle and configure Proguard
You can install Adapty SDK via Gradle.
Read Checklist before releasing your app
Be sure to carefully read Release Checklist when releasing your app. It's critical to make things right from the first attempt!
Install via Gradle
If your project doesn't have dependencyResolutionManagement
in your settings.gradle
, add the following to your top-level build.gradle
at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Otherwise add the following to your settings.gradle
in repositories
of dependencyResolutionManagement
section:
dependencyResolutionManagement {
...
repositories {
...
maven { url 'https://jitpack.io' }
}
}
And then add the dependency to your module-level build.gradle
at the end of dependencies:
dependencies {
...
implementation 'com.github.adaptyteam:AdaptySDK-Android:2.3.1'
}
Configure Proguard
You should add -keep class com.adapty.** { *; }
to your Proguard configuration.
Updated 2 days ago