Install via Gradle

Gradle is the preferred way to install Superwall for Android.

In settings.gradle, find dependencyResolutionManagement:

Gradle Settings

Then, paste our Maven Repository:

maven { url 'https://mvn.superwall.com/release' }

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.0.0-alpha.26"

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


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

AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.vending.BILLING" />

Then add our Activity to your AndroidManifest.xml:

AndroidManifest.xml
<activity
  android:name="com.superwall.sdk.paywall.vc.SuperwallPaywallActivity"
  android:theme="@style/Theme AppCompat.NoActionBar"
  android:configChanges="orientation|screenSize|keyboardHidden">
</activity>
And you’re done! Now you’re ready to configure the SDK 👇