> For the complete documentation index, see [llms.txt](https://pubscale.gitbook.io/offerwall-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pubscale.gitbook.io/offerwall-sdk/1.0.7/react-native/setting-up-the-sdk.md).

# Setting up the SDK

#### 1. Add this to your build.gradle file

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

{% tabs %}
{% tab title="Kotlin Script" %}

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

{% endtab %}

{% tab title="Groovy" %}

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

{% endtab %}
{% endtabs %}

#### 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.

{% code title="proguard-rules.pro" %}

```properties
-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

```

{% endcode %}

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.

* [PubscaleOfferwallSdkModule.java](https://storage.googleapis.com/pubscale-offerwall/lib/PubscaleOfferwallSdkModule.java)
* [PubscaleOfferwallSdkPackage.java](https://storage.googleapis.com/pubscale-offerwall/lib/PubscaleOfferwallSdkPackage.java)

#### 6. Link the module

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

`packages.add(new PubscaleOfferwallSdkPackage());`

<figure><img src="https://content.gitbook.com/content/hi3J82Irfk38cjMHFvTF/blobs/czhHuDSTWk8hwZSMKZM2/image.png" alt=""><figcaption><p>Adding PubscaleOfferwallSdkPackage to React packages</p></figcaption></figure>

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