|
|
@ -16,6 +16,7 @@ import com.alibaba.android.arouter.launcher.ARouter; |
|
|
import com.jakewharton.processphoenix.ProcessPhoenix; |
|
|
import com.jakewharton.processphoenix.ProcessPhoenix; |
|
|
import com.lztek.toolkit.Lztek; |
|
|
import com.lztek.toolkit.Lztek; |
|
|
import com.lzy.okgo.OkGo; |
|
|
import com.lzy.okgo.OkGo; |
|
|
|
|
|
import com.ys.rkapi.MyManager; |
|
|
|
|
|
|
|
|
import java.io.PrintWriter; |
|
|
import java.io.PrintWriter; |
|
|
import java.io.StringWriter; |
|
|
import java.io.StringWriter; |
|
|
@ -90,10 +91,15 @@ public class MyApplication extends Application { |
|
|
private void initSbcSDK(){ |
|
|
private void initSbcSDK(){ |
|
|
// 产品认证需设置 apiKey, productId, productKey, productSecret
|
|
|
// 产品认证需设置 apiKey, productId, productKey, productSecret
|
|
|
DUILiteConfig config = new DUILiteConfig.Builder() |
|
|
DUILiteConfig config = new DUILiteConfig.Builder() |
|
|
.setApiKey("d823edab41b8d823edab41b868ecc552") |
|
|
|
|
|
.setProductId("279632533") |
|
|
|
|
|
.setProductKey("ab73065d16e11bcfac026eee3db9f6cb") |
|
|
|
|
|
.setProductSecret("85d9490c438099acc33be7676799399f").create(); |
|
|
|
|
|
|
|
|
.setApiKey("3ac5b2151aab3ac5b2151aab692e463b") |
|
|
|
|
|
.setProductId("279633115") |
|
|
|
|
|
.setProductKey("f08d7e0da576f89fedc67bbf44e2e2d6") |
|
|
|
|
|
.setProductSecret("25846304a956fd09b14de16cbf3832b0").create(); |
|
|
|
|
|
|
|
|
|
|
|
MyManager manager = MyManager.getInstance(this); |
|
|
|
|
|
String mac = manager.getEthMacAddress(); |
|
|
|
|
|
config.setExtraParameter("DEVICE_ID", mac); |
|
|
|
|
|
config.setExtraParameter("DEVICE_NAME", mac); |
|
|
|
|
|
|
|
|
DUILiteSDK.init(getApplicationContext()); |
|
|
DUILiteSDK.init(getApplicationContext()); |
|
|
// SDK 授权
|
|
|
// SDK 授权
|
|
|
|