Last Updated on : 2024-06-24 08:08:55download
Tuya upgrades Smart Life App SDK and makes the latest version generally available. Based on the optimized business architecture, you can benefit from the neutral software development service and take your unique and proprietary application business to the next level. This topic describes how to upgrade your SDK from a legacy version to v5.x.x by using the automatic upgrade script.
If this is the first time you integrate with Smart Life App SDK, the SDK version is v5.x.x. In this case, you can ignore the steps in this topic.
If you have already integrated Smart Life App SDK into your app, the following legacy versions can be upgraded to v5.x.x:
Copy and paste the mapping table thingMapping.json and script thingMapping.gradle to the app
module directory.
Choose app
> build.gradle
and reference the script thingMapping.gradle
.
apply plugin: 'com.android.application'
// References the script plug-in.
apply from : "thingMapping.gradle"
Open the file thingMapping.gradle
, find replaceThing
, and then click the green triangle to start automatic modifications.
Go to Tuya Developer Platform > App SDK > SDK Development > Details page of your SDK-based app > Get SDK, and get the latest key information, including AppKey and AppSecret.
Replace the key information in your project with the new one. For more information, see Configure AppKey, AppSecret, and certificate signature.
thingMapping.json
and rerun the script to implement automatic modifications.Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback