Last Updated on : 2023-06-21 05:33:29download
Tuya upgrades cube 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 v2.x.x by using the automatic upgrade script.
If this is the first time you integrate with cube App SDK, the SDK version is v2.x.x. In this case, you can ignore the steps in this topic.
If you have already integrated cube App SDK into your app, the following legacy versions can be upgraded to v2.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 IoT Development 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