Install via Gradle

Gradle is the preferred way to install Superwall for Android.

In your build.gradle or build.gradle.kts add the latest Superwall SDK. You can find the latest release here.

implementation "com.superwall.sdk:superwall-android:1.1.2"

Make sure to run Sync Now to force Android Studio to update.

Go to your AndroidManifest.xml and add the following permissions:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="" />

Then add our Activity to your AndroidManifest.xml:

<activity android:name="com.superwall.sdk.debug.DebugViewControllerActivity" />
<activity android:name="com.superwall.sdk.debug.localizations.SWLocalizationActivity" />
<activity android:name="com.superwall.sdk.debug.SWConsoleActivity" />

Set your app’s theme in the android:theme section.

When choosing a device or emulator to run on make sure that it has the Play Store app and that you are signed in to your Google account on the Play Store.

And you’re done! Now you’re ready to configure the SDK 👇