Getting the SDK using plugin

Android

In Android, we have made a Gradle plugin which integrates seamlessly with the Android Gradle Plugin

📘

NOTE

Minimum supported Android Gradle Plugin version is 3.6.0. Please skip these steps if you are on older version

  1. Add a build dependency in your root build.gradle file
buildscript {
    repositories {
        google()

        maven {
            url "https://maven.juspay.in/jp-build-packages/hypersdk-asset-download/releases/"
        }
    }
    
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.0'  // ← 3.6.0 is minimum version
        classpath 'in.juspay:hypersdk-asset-plugin:1.0.3'
    }
}
  1. Apply the plugin to the application module (not any library modules)
apply plugin: 'hypersdk-asset-plugin'
  1. Add file MerchantConfig.txt in the same directory as app/build.gradle file. The content of the file should be as below
clientId = clientId shared by Juspay Team

iOS

  1. Add below post_install script in the Podfile
post_install do |installer|
 fuse_path = "./Pods/HyperSDK/Fuse.rb"
 clean_assets = false # Pass true to re-download all the assets
 if File.exist?(fuse_path)
   if system("ruby", fuse_path.to_s, clean_assets.to_s)
   end
 end
end
  1. Place the MerchantConfig.txt file inside the folder where the Podfile is present. This file doesn't need to be added to the project. The content of the file should be as below
clientId = clientId shared by Juspay Team
  1. Use command - pod install

Did this page help you?