SDK Integration

Last Updated on : 2024-07-09 08:26:46download

Preparation

An account is registered on the Tuya Developer Platform, and a smart travel product such as an anti-lost tracker, a vehicle locator, or a smart electric vehicle is created. A key is obtained to activate the Travel SDK. For more information, see Fast Integration with Smart Life App SDK for Android.

Fast integration

  1. Add the following configuration to repositories of the file build.gradle:

    maven {	url "https://maven-other.tuya.com/repository/maven-releases/	}
    maven { url "https://maven-other.tuya.com/repository/maven-commercial-releases/" }
    
  2. Add dependencies downloaded in the preparation steps to the file build.gradle.

    dependencies{
        implementation 'com.thingclips.smart:thingsmart:5.0.0'
        implementation 'com.thingclips.smart:thingsmart-outdoor-sdk:5.4.0'
    }
    

Run the demo app

You can get the Travel SDK sample on GitHub. For more information, see Travel SDK Sample.

The values of AppKey, AppSecret, and security image obtained in the Preparation section must be configured correctly in the sample.