Offerwall SDK
Dashboard
1.0.7
1.0.7
  • 👋Welcome to PubScale Offerwall SDK
  • Prerequisites
    • 📪Prerequisites
    • 🧙PubScale Onboarding
  • Native Android
    • ⬇️Setting up the SDK
    • 🔌Initialize the SDK
    • 🎬Start the OfferWall
  • React Native
    • ⬇️Setting up the SDK
    • 🔌Initialize the SDK
    • 🎬Start the OfferWall
  • Flutter
    • ⬇️Adding the dependencies
    • 🔌Launch the offerwall
  • Unity
    • ✅Preintegration Checks
    • ⬇️Setting up the SDK
    • 🔌Integration
  • Web (Beta)
    • ⬇️IFrame integration
    • ⬇️Direct Link
  • S2S Callback Configuration
    • 🦉S2S Callback Configuration
    • 🗝️IP Whitelist
  • Sandbox Environment
    • 🩺Sandbox Environment
  • 🔮Samples
Powered by GitBook
On this page
  • 1. Add the OfferWall Unity plugin to your Unity project
  • 2. Configuring Publishing Settings
  • 3. Configuring dependencies
  • 4. Force resolve dependencies
  1. Unity

Setting up the SDK

PreviousPreintegration ChecksNextIntegration

Last updated 1 year ago

1. Add the OfferWall Unity plugin to your Unity project

and import the latest version of OfferWall Unity Plugin from GitHub.

2. Configuring Publishing Settings

  • Set the minimum API level to 24 or above and the target API level to 33 or above under Edit/ProjectSettings/Player/Other Settings

  • Make sure you check the below-mentioned checkboxes under Edit/ProjectSettings/Player/Publishing Settings.

    • Custom Main Manifest

    • Custom Main Gradle Template

    • Custom Gradle Settings Template

3. Configuring dependencies

Adding mavenCentral() as a repository in settingsTemplate.gradle

pluginManagement {
    repositories {
        **ARTIFACTORYREPOSITORY**
        gradlePluginPortal()
        google()
    }
}

include ':launcher', ':unityLibrary'
**INCLUDES**

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        **ARTIFACTORYREPOSITORY**
        google()
        mavenCentral() //<----------------Add this line
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}

Add the below line inside the dependencies block in your mainTemplate.gradle file

implementation 'com.pubscale.sdkone:offerwall:1.0.7'

4. Force resolve dependencies

Force resolve forces the Package Manager to resolve the project’s packages, reinstalling any altered or missing package and removing extraneous packages.

To Force resolve the dependencies, Goto Assets > External Dependency Manager > Android Resolver > Force Resolve (if the resolver did not open automatically)

Assets > External Dependency Manager > Android Resolver > Force Resolve
⬇️
Download
Player > Publishing settings