Last Updated on : 2023-06-21 05:33:28download
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.
The following legacy versions can be upgraded to v2.x.x:
Make sure the network on which the SDK-based app runs is available. Download ThingSmartCryption
from the Tuya IoT Development Platform.
Make the following changes to the Podfile:
t_s.bmp
from the project.Tuya
in the names of dependencies to Thing
. Example:
pod 'TuyaSmartHomeKit', 'xx'
pod 'ThingSmartHomeKit', '2.0.0-cube.1'
TuyaSmartHomeKit
depends on, you can find the respective version number from podspec in the GitHub project.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 the SDK.
Make sure the APIs in the SDK can be compiled as expected. To minimize the manual work, we recommend that you use the upgrade script in the GitHub project to change the word Tuya
in the identifiers of all APIs to Thing
.
Tuya
in the names of BizBundle libraries to Thing
.ty_custom_config.json
is available and rename it to thing_custom_config.json
in your project. For more information about this file, see Integrate with Framework.Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback