|
@@ -1,45 +1,34 @@
|
|
|
package com.develop.foodcooking
|
|
|
|
|
|
-import android.content.Context
|
|
|
import android.os.Bundle
|
|
|
-import android.os.Debug
|
|
|
-import android.util.DisplayMetrics
|
|
|
-import android.util.Log
|
|
|
import android.view.LayoutInflater
|
|
|
-import android.view.WindowManager
|
|
|
-import androidx.lifecycle.scopeNetLife
|
|
|
-import com.develop.base.ext.getGoneTuYa
|
|
|
+import com.develop.base.ext.appGlobalScope
|
|
|
import com.develop.base.ext.globalApp
|
|
|
import com.develop.base.ext.isBrand062
|
|
|
import com.develop.base.ext.navigateTo
|
|
|
import com.develop.base.ext.setScreenHeight
|
|
|
import com.develop.base.ext.setScreenWidth
|
|
|
-import com.develop.base.ext.toJson
|
|
|
import com.develop.base.util.MMkvUtils
|
|
|
import com.develop.base.util.ScreenUtils
|
|
|
-import com.develop.base.util.SerialportUtils
|
|
|
-import com.develop.base.util.SettingKeyBoardUtils
|
|
|
-import com.develop.common.data_repo.db.DataFactory
|
|
|
import com.develop.common.data_repo.net.Api
|
|
|
import com.develop.common.data_repo.net.model.request.DeviceInfoBody
|
|
|
import com.develop.common.data_repo.net.model.response.DevInfoResult
|
|
|
import com.develop.common.food_sdk.FloatWindowManager
|
|
|
import com.develop.common.router.Screens
|
|
|
-import com.develop.common.tag.CURRENT_LANGUAGE
|
|
|
import com.develop.common.tag.FIRST_IN
|
|
|
import com.develop.common.tag.ISTUYA
|
|
|
import com.develop.common.ui.CommonBindingActivity
|
|
|
import com.develop.common.utils.AppVersionUtil
|
|
|
import com.develop.common.utils.ConfigUtils
|
|
|
+import com.develop.common.utils.TuyaSoUtils
|
|
|
import com.develop.common.utils.TuyaUtils
|
|
|
import com.develop.foodcooking.databinding.ActivityMainBinding
|
|
|
import com.drake.net.Post
|
|
|
import com.drake.net.utils.scopeNetLife
|
|
|
import com.google.gson.Gson
|
|
|
import com.kuyuntech.cofarcooking.device.sdk.util.core.CofarSDK
|
|
|
-import java.io.File
|
|
|
-import java.security.cert.X509Certificate
|
|
|
-import javax.net.ssl.TrustManager
|
|
|
+import kotlinx.coroutines.Dispatchers
|
|
|
+import kotlinx.coroutines.launch
|
|
|
|
|
|
|
|
|
class MainActivity : CommonBindingActivity<ActivityMainBinding>() {
|
|
@@ -100,10 +89,25 @@ class MainActivity : CommonBindingActivity<ActivityMainBinding>() {
|
|
|
// getAppTuya(true)
|
|
|
// }
|
|
|
|
|
|
- getAppTuya(true)
|
|
|
+// getAppTuya(true)
|
|
|
//
|
|
|
// getDevInfo()
|
|
|
|
|
|
+ getSotuya()
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ fun getSotuya(){
|
|
|
+ appGlobalScope.launch(Dispatchers.IO) {
|
|
|
+
|
|
|
+ var pid = "xkt4eqycakmkofec"
|
|
|
+ var uuid = "uuid0f5a65239b9119b6"
|
|
|
+ var authkey = "tK1YHcSdA3pyAYnlJnoprsbDbodRRomG"
|
|
|
+
|
|
|
+ // 调用测试日志方法
|
|
|
+ TuyaSoUtils.initSDK(this@MainActivity,"1.0.0")
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//获取是否有涂鸦功能
|