SphereMall/Android-MS-Client


SphereMall Android API client for SphereMall GateWay

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.spheremall:android-ms-client:2.1.2.1'
	}
	dependencies {
		implementation("com.github.spheremall:android-ms-client:2.1.2.1")
	}
	<dependency>
	    <groupId>com.github.spheremall</groupId>
	    <artifactId>android-ms-client</artifactId>
	    <version>2.1.2.1</version>
	</dependency>

                            
    libraryDependencies += "com.github.spheremall" % "android-ms-client" % "2.1.2.1"
        
        

                            
    :dependencies [[com.github.spheremall/android-ms-client "2.1.2.1"]]
        
        

Readme


SphereMall Gateway Android SDK

Official Android SDK for integrating with SphereMall Product

Version 2.0.8

Installation

  1. Add the JitPack repository to your build file
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  1. Add the dependency
dependencies {
  compile 'com.github.SphereMall:Android-MS-Client:version'
}

Instantiating the SDK Client:

Initialize SMClient in Application class and provide client via dagger.

SMClient client = SMClient.initialize(context, gatewayUrl, clientId, secretKey, version);

Using the client with base Resources functionality