lsq_tusdk_configs.json
中的 master key
进行一些操作来进行操作简化。TuSDK.bundle/others/lsq_tusdk_configs.json
中的相关内容,使用 masters
字段来配置 master key :"masters": {
"release": "eIxxgNvjFAFnCe\/xLYrpMthpjU7qzgHMdswAxLvYkLX\/w+V\/m3dk80\/\/FebdCV7rGzoGD2wszQtPY0g9ZXgkKH93UjLNnJnTyRbN0dN\/0kHQExCcd2Efue5O8zAiwFb9utTET2ZkOLGfEyow+FrTzwh3xgKm0ts9nErSIQBEsNhJ3De7jOI++Y0G97b\/fuBHE5pF+h2IcTaSjL0TbUKt9ymNd2NMbC5zd7z1RdE3dOsHyDbyN+87NjuNEg8wr3Fs7HSa1FI3pBk+i9Csl11k9DttxQftS8jBNidvTtQjvhlrRxFhgFJAkdIL5nwi3CcIbQzqb\/S+iQRFfmt\/oc9MO3FnJyWOg3w2UgNPjU2k0f1VJKFxRFCugUZCYl+8avKmktw+qmfTW6KrAc01KtGsLEkTl8Wp21LJJxKNf1+RUkeLiHlC9UdaG7p89HWogww+AEgS2QrsYWgkmBKI7rmC+jn9X\/8bjccgESjghSKYYtqWOBTynQUPE\/DhU+PNUfa9CbozdAm6WhTjrVfTLU7knkrXYSNNDUVwYAnB0Ey\/WqFaRbqQPU9Fz42eDrv3z5nqB1V2At8tA0sR9yr1Kz3qXWUad\/CWr6rEpB+D0tUSzn5yQQvMFTQpC+s9pPt6Oov\/vFXulBqyETZ1GJF6cMEvxpQeW1zji\/xhHU2cbLSoipOru5x7YMpfp+ELHnwMnXm88qtO+pyY3gGffZ9PzOSDgek+3sSs9xCDKlfv36LTcbW1mDqThwQb8sF6CQ5\/16kVRuHFdhN3vyMRGcdzjDbcbYBlPTckRwXzrGoju1KH\/\/24hrkTBPQSFVzgrhUNtgeerKwV0EsfmAPDtw7qi6iddydxAds5sDG8p95nzW6Ffy7dc8NbcBetZ1PHfJrEi0LLwemjAC3f2JffflflcM0VafTPN3XyDpLUB9OvFU3yCeWo4UWBxusPvesGeADAE9jW3QaGB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NscqbKIczI7uXkbTc8EbleeMdp9iIhT7UjEyE9vhmtoa1MEIDb5DK8htvZ10Pv3B+Q+1+5LnlsvO75P0UnXrOq4BNO1TyQgIQ5aqgJCC0p9q6dB2i1hekUlVDDYlZpPZVuiuNBn1g31Qvxn6\/pkvMEi6jHAyiXdWeJHF7cCNMkjhncTGOilvShs+FcjY1X6qnYIHtjcubljh6EbdGRKpRO7ca8XYwCpOs7UQd046gQdvrPgi4uab14oovLSLl3YDG\/Jf2vW2hb2JQcBv1\/OUeWRSBsc6cbw8iOOkrutKr9nrzQk7RcxTYJLVEPgd0Fji8zZl+IOXmcCrjc9owXqBNMr2bNNqol13P\/DLT6Ka7unWqsg0Q8U3W22SUxuFBLQ\/PabimZDKmNDIFmgSJw77jS5gm4oiQPznpkwMLUKPH5LWwV7T+9SPvRiPKVoBrhYgZgwk+b10YXbp42\/RsDskKNyu2CKwwHeQHlHIIgQ3dhpwA2uvjxUrY6i9xgmFjJC3WbwEv+TYH5dMxFdi88xcX6XPv2YzOjsKAHalMVkFBAEZMVehfNIL+e9fWNSaU9ArTpvGJC3JCDnBcLmRXofBKGoZZKp8pwn\/vkYoWVmTdmSnP7YWwlTh1FXEmqJK533S+RAh\/p64LakxR7FNIVmtDBTmxQ\/ZG483L0y9UahSp6FFvkb++NW2vWBhA65CICxjS6ABw29uQddWnVRxy\/efm53YSgmN5jZHlRPrBi9tiz9K9tetYfwNf+A==FA668D074E"
}
将原有初始化 app key 的方法替换为示例代码中的方法,并指定相应的开发模式。开发模式对应的 master key 要和 应用的包名及 app key 一一对应。
3.* 版本
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.XXXXXXXX.XXXX"])
{
[TuSDK initSdkWithAppKey:@"714f0a1265b39708-02-xie0p1" devType:@"release"];
}
4.0.* 版本
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.XXXXXXXX.XXXX"])
{
[TuSDKPulseCore initSdkWithAppKey:@"714f0a1265b39708-02-xie0p1" devType:@"release"];
}
4.1.* 版本
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.XXXXXXXX.XXXX"])
{
[TUCCore initSdkWithAppKey:@"714f0a1265b39708-02-xie0p1" devType:@"release"];
}
devType
是指指定开发模式,对应的字段是示例代码中的 release
,debug
和 test
。用户可以自定义名称,例如 free
。
指定的开发模式需要与 lsq_tusdk_configs.json 中 masters.key 匹配, 如果找不到 devType
将默认读取 master
字段。
©2019-2024 TUTUCLOUD. All Rights Reserved. 杭州元凡视觉智能科技有限公司 | 浙ICP备14040447号-1 | 浙公网安备33010602001649号