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.4' 

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

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

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

    // 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.4' 
    // Bluetooth Low Energy
    implementation 'com.iotize.android:iotize-device-com-ble:1.0.0-alpha.4' 
    // Socket and Wi-Fi
    implementation 'com.iotize.android:iotize-device-com-socket:1.0.0-alpha.4' 

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