Skip to content

Android Guide

Installation

In the build.gradle file of your app add the following

repositories {
    // ...
    maven {
        // Add iotize repository url
        url "http://repo.iotize.com/artifactory/gradle-release"
    }
}

// ...

dependencies {
    // Add core library
    implementation 'com.iotize.android:iotize-core:1.0.0-alpha.6' 

    // Add tap device client library
    implementation 'com.iotize.android:iotize-client:1.0.0-alpha.6' 

    // Add device library
    implementation 'com.iotize.android:iotize-device:1.0.0-alpha.6' 

    // OPTIONAL add User interface / extra service library
    // implementation 'com.iotize.android:iotize-communicationapp-library:1.0.0-alpha.6' 

    // Smartphone to tap device communication libraries (you should only add the one you want to use)
    // NFC
    implementation 'com.iotize.android:iotize-device-com-nfc:1.0.0-alpha.6' 
    // Bluetooth Low Energy
    implementation 'com.iotize.android:iotize-device-com-ble:1.0.0-alpha.6' 
    // Socket and Wi-Fi
    implementation 'com.iotize.android:iotize-device-com-socket:1.0.0-alpha.6' 

    // Other communication libraries (may only work with a communication relay)
    // Mqtt
    // implementation 'com.iotize.android:iotize-device-mqtt:1.0.0-alpha.6' 
    // Websocket
    // implementation 'com.iotize.android:iotize-device-websocket:1.0.0-alpha.6' 
}