Install the SDK (manual)

Anslået læsetid: < 1 min

Download

SDK 2.37.0 for Android

 

Install

  1. Download and extract the components from above file.
  2. For the Miura reader, drag and drop mpos.android.core.aarmpos.android.ui.aar,
    mpos.android.accessories.miura.aarmpos.android.comlinks.bluetooth.aar
    and mpos.android.comlinks.tcp.aar to the “libs” folder of your project.
  3. The SDK requires a bunch of 3rd-party libraries, which are all available through Maven Central. Add them in the dependencies section of your build.gradle:
dependencies {
    compile 'com.squareup:otto:1.3.5'
    compile 'com.squareup.okhttp:okhttp:2.7.4'
    compile 'com.squareup.okhttp:okhttp-ws:2.7.4'
    compile 'com.parse.bolts:bolts-android:1.2.1'
    compile 'com.fasterxml.jackson.core:jackson-databind:2.4.4'
    compile 'com.couchbase.lite:couchbase-lite-android:1.4.0'
    compile 'com.couchbase.lite:couchbase-lite-android-forestdb:1.4.0'

    compile ':mpos.android.core:+@aar'
    compile ':mpos.android.ui:+@aar'

    // For the Miura reader add this:
    compile ':mpos.android.accessories.miura:+@aar'
    compile ':mpos.android.comlinks.bluetooth:+@aar'
    compile ':mpos.android.comlinks.tcp:+@aar'
}

Also make sure, that you have added the local libs directory as repository in the repositories section in your build.gradle

repositories {
    mavenCentral()
    flatDir name: 'localRepository', dirs: 'libs'
}