Install the SDK
Install the Superwall Unity SDK beta through Unity Package Manager.
Overview
Install the Unity SDK from the Superwall-Unity GitHub repository. The beta package name is com.superwall.sdk.
Requirements
- Unity 6+ (
6000.3+) - iOS 15.0+
- Xcode 26 or later for iOS builds
- Android
minSdkVersion25+
Add the Package
In Unity, open Window > Package Manager. Click +, choose Add package from git URL, then paste:
https://github.com/superwall/Superwall-Unity.git
After Unity resolves the package, your scripts can import the SDK:
using Superwall;iOS Build Setup
The package includes an iOS post-build processor. When you build for iOS, it:
- Adds SuperwallKit to the generated Xcode project as a Swift package, from
4.19.1up to the next major version. - Links
SuperwallKitto theUnityFrameworktarget and copies its resource bundle into that target.
CocoaPods isn't needed. Open Unity-iPhone.xcodeproj, and Xcode resolves the package the first time you open or build it.
Set Player Settings > Other Settings > Target minimum iOS Version to 15.0 or later. The build logs a warning if it's lower, and Xcode can't link SuperwallKit.
Versions before 0.6.0 added SuperwallKit through CocoaPods. If you make an Append build over a
project exported by an earlier version, the processor removes the SuperwallKit pod from the Podfile
and runs pod install. If that fails, run pod install in the generated Xcode project folder, or
make a Replace build.
Android Build Setup
No manual Android SDK setup is required for the default Unity Gradle export. The package includes a
Gradle .androidlib module that declares the Superwall paywall activities and pulls:
com.superwall.sdk:superwall-android:2.10.0- Google Play Billing
9.1.0 - Material Components
1.12.0 - Kotlin coroutines for Android
1.9.0
Each Unity SDK release pins an exact Superwall Android SDK version. The module uses the compile SDK from your Player Settings, and Superwall Android 2.10.0 needs compile SDK 35 or later.
The included Android manifest adds the internet, network state, notification, and Google Play Billing permissions, plus the Superwall paywall and debug activities.
If your project uses custom Gradle templates, keep google() and mavenCentral() enabled and do
not remove the generated Superwall .androidlib dependency.
The package uses Google Play Billing 9.1.0. If your game also uses Unity IAP or another billing library, Gradle resolves it to Billing 9.1.0, so confirm that library supports Billing 9 before shipping.
How is this guide?