---
page_source: https://docs.juspay.io/upi-inapp/android/getting-the-sdk/adding-plugin
page_title: Installing Assets Plugin
---


## Installing Assets Plugin



UPI In-app SDK depends on certain assets to function. These are available over the air and are supposed to be present while building the SDK. The Assets Plugin is a build time dependency that downloads all required assets and ensures the availability of the latest assets at build time.

To install Assets Plugin follow the below steps:


### Step 1 Add Assets Plugin maven url


The maven URL specifies from where the assets plugin should be downloaded. This is supposed to present inside the `buildscript` of your application



#### Code Snippets: -

#### Java Code Snippet:

```java
maven {
            url "https://maven.juspay.in/jp-build-packages/hypersdk-asset-download/releases/"
        }
```

#### Kotlin Code Snippet:

```kotlin
maven {
            url "https://maven.juspay.in/jp-build-packages/hypersdk-asset-download/releases/"
        }
```



### Step 2 Add Assets plugin classpath


Adding classpath to buildscript dependencies helps build tool load the assets plugin. This also resides inside `buildscript`.



#### Code Snippets: -

#### Java Code Snippet:

```java
classpath 'in.juspay:hypersdk-asset-plugin:1.0.4'
```

#### Kotlin Code Snippet:

```kotlin
classpath 'in.juspay:hypersdk-asset-plugin:1.0.4'
```



### Step 3 Apply Assets plugin


This step will ensure that assets plugin is used as a plugin inside your application build cycle. Ensure you apply the plugin inside your `app/build.gradle`



#### Code Snippets: -

#### Java Code Snippet:

```java
id 'hypersdk-asset-plugin'
```

#### Kotlin Code Snippet:

```kotlin
id 'hypersdk-asset-plugin'
```



### Step 4 Add MerchantConfig.txt


Create a .txt file named `MerchantConfig.txt` inside the app directory of your project. Add `clientId = your_client_id`to this file. The MerchantConfig.txt contains a clientId which helps the Assets plugin to download assets specific to your application.

Please note that the file has to added in same directory as `app/build.gradle`



#### Code Snippets: -

#### Java Code Snippet:

```java
clientId = <clientId> shared by Juspay Team

```

#### Kotlin Code Snippet:

```kotlin
clientId = <clientId> shared by Juspay Team

```



###   Plugin version


> **Note**
> Minimum supported Android Gradle Plugin version is 3.6.0. Please get in touch with your Juspay POC or the Support Team if you are on an older version.



