Getting the SDK

Android

Currently, SDK is available as a Gradle dependency. Please follow the below steps to set up an android project with the SDK.

Step 1: Add the following maven repository to the build.gradle.
Please make sure that you add it to the project dependency section. (ex:build.gradle (Project:ProjectName) )

allprojects {
    repositories {
        google()
        jcenter()

       //Other maven url
        maven {
          url "https://maven.juspay.in/jp-build-packages/hyper-sdk/"
        }
      //Other maven url
    }
}

Step 2: Add the following compile dependency to your project to the module where SDK will be used usually added to app/build.gradle (Module: app). Please make sure you don’t accidentally add it to script dependencies.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  
    //HyperSDK
    implementation 'in.juspay:hypersdk:2.0.2-rc.01'
}

❗️

NOTE

in.juspay:hypersdk:2.0.2-rc.01 - For reference only. Contact support for the current version.

iOS

Currently iOS sdk is available as cocoapods dependency to streamline integration. Please follow the below steps to set up ios sdk.

Step 1 : Add the following line in your podfile.

pod 'HyperSDK','2.0.3'

❗️

NOTE

pod 'HyperSDK','2.0.3 - For reference only. Contact support for the current version.

Step 2 : Run the below line via a command line interface to setup and Install the newly added pod.

pod install

In case there is an error Unable to find a specification for HyperSDK while pod install, local pod repo needs to be updated. You will need to run:

pod repo update

What’s Next
Did this page help you?