Last Updated on : 2023-03-09 08:17:40
If you have integrated the previous version and want to update to v3.14.x, please refer to the following steps:
Update the version of the Tuya Smart library to the version corresponding to 3.14.x.
Remove dependencies of paho mqtt library.
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
Remove proguard rules from paho library.
-keep class org.eclipse.paho.client.mqttv3.** { *; }
-dontwarn org.eclipse.paho.client.mqttv3.**
Added proguard rules.
#mqtt
-keep class com.tuya.smart.mqttclient.mqttv3.** { *; }
-dontwarn com.tuya.smart.mqttclient.mqttv3.**
Update OkHttp client version.
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.12.3'
change okhttp proguard rules
#OkHttp3
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn okhttp3.**
-keep class okio.** { *; }
-dontwarn okio.**
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback