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. React Native

Setting up the SDK

PreviousStart the OfferWallNextInitialize the SDK

Last updated 1 year ago

1. Add this to your build.gradle file

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

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

2. Clean build and Rebuild the project

3. Configure proguard rules

For the SDK to work properly in release(obfuscated/minified) builds, add the following rules in your proguard-rules.pro file.

proguard-rules.pro
-keep class com.pubscale.sdkone.offerwall.** {*;}
-keep class com.pubscale.caterpillar.analytics.** {*;}
#Supporting R8 full mode
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response

We have added the SDK to the project. Learn how to initialize the SDK in the next step

5. Add native module files

Add the following files to your android app's module directory.

6. Link the module

Add the following line inside the getPackages() method of MainApplication class.

packages.add(new PubscaleOfferwallSdkPackage());

We have setup the SDK in the project. Learn how to initialize the SDK in the next step

⬇️
PubscaleOfferwallSdkModule.java
PubscaleOfferwallSdkPackage.java
Adding PubscaleOfferwallSdkPackage to React packages