Clover SDK for developing applications on Clover Station/Mobile/Mini
Latest commit ba1bc1e Mar 24, 2017 @duane1024 duane1024 committed on GitHub Merge pull request #37 from clover/r168
Release 168

Clover SDK for Android

This repo contains two Android Studio projects: clover-android-sdk and clover-android-sdk-examples. Both projects use the Gradle build system and were developed using Android Studio. If you do not have Gradle installed, you may use the Gradle wrapper executable gradlew / gradlew.bat present in this repo.

clover-android-sdk is an Android library project. To integrate it into your project, add the following dependency to your Gradle-enabled project:

dependencies {
    compile 'com.clover.sdk:clover-android-sdk:latest.release'

clover-android-sdk-examples is an Android application project. To build and install from the command line,

$ pwd
$ gradle clean installDebug

Alternatively, you may import both the SDK and examples as an Android Studio project.

Java Documentation

You can browse the javadoc for more information, including example usages.

To generate your own local copy of the javadoc,

$ pwd
$ gradle clean assemble doc-clean doc

Latest Apps for Testing

If you are testing on your own emulator or tablet then you will need the latest apps. All apps can be downloaded at:



Targeting an Emulator or Tablet to a new environment

Currently, some of the dev-apks are not pointing to the environment corresponding to the baseURL they were downloaded from (i.e. Sandbox).

Please run the following script: target_new_environment

$ pwd
$  target_new_environment

This script is meant to re-target a non-Clover device's environment.

Do not attempt to run this on a Clover device.

Please select a connected device
2) C021UQ53170436
3) C010UC43010546
4) C021UQ50430029
#? 1

Selected device:

Please select your desired target environment:
1) Prod-US
2) Prod-EU
3) Sandbox
4) Localhost
#? 3

Updating target to

You will need to 'Add Account' via Settings to set up your device