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
For version 2.4.1 and above
dependencies {
...
implementation 'io.adapty:android-sdk:2.4.3'
}
If the dependency is not being resolved, please make sure that you have
mavenCentral()
in your gradle scripts. The instruction to add it is the same as forhttps://jitpack.io
in the section below
For pre-2.4.1 versions
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.4.1'
}
Configure Proguard
You should add -keep class com.adapty.** { *; }
to your Proguard configuration.
Updated 25 days ago