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
dependencies {
...
implementation 'io.adapty:android-sdk:2.10.2'
}
dependencies {
...
implementation("io.adapty:android-sdk:2.10.2")
}
//libs.versions.toml
[versions]
..
adapty = "2.10.2"
[libraries]
..
adapty = { group = "io.adapty", name = "android-sdk", version.ref = "adapty" }
//module-level build.gradle.kts
dependencies {
...
implementation(libs.adapty)
}
If the dependency is not being resolved, please make sure that you have mavenCentral()
in your Gradle scripts.
The instruction on how to add it
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 {
...
mavenCentral()
}
}
Otherwise, add the following to your settings.gradle
in repositories
of dependencyResolutionManagement
section:
dependencyResolutionManagement {
...
repositories {
...
mavenCentral()
}
}
Configure Proguard
You should add -keep class com.adapty.** { *; }
to your Proguard configuration.
Updated 22 days ago