Skip to content

Commit

Permalink
update talkingdata
Browse files Browse the repository at this point in the history
  • Loading branch information
尹甲仑 committed Sep 16, 2022
1 parent 880b4e7 commit e43e6bf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Binary file added app/libs/SaaS_TalkingDataSDK_Android_V5.0.8.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@
#bean
-dontwarn org.yameida.worktool.model.**
-keep class org.yameida.worktool.model.**{*;}

#talkingdata
-dontwarn com.tendcloud.tenddata.**
-keep class com.tendcloud.** {*;}
-keep public class com.tendcloud.** { public protected *;}
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
android:resource="@xml/accessibility_service_config" />
</service>

<meta-data android:name="TD_APP_ID" android:value="80E9C84E39904DAFB28562910FF7C86C" />
<meta-data android:name="TD_CHANNEL_ID" android:value="worktool_master" />
</application>

</manifest>
2 changes: 2 additions & 0 deletions app/src/main/java/org/yameida/worktool/MyApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.yameida.worktool
import android.app.Application
import com.blankj.utilcode.util.SPUtils
import com.blankj.utilcode.util.Utils
import com.tendcloud.tenddata.TalkingDataSDK
import com.umeng.commonsdk.UMConfigure
import org.yameida.worktool.config.GlobalException
import update.UpdateAppUtils
Expand All @@ -19,6 +20,7 @@ class MyApplication : Application() {
if (SPUtils.getInstance().getString("uminit", "1") == "1") {
UMConfigure.init(this, "6284a3a3d024421570f97c3c", "main_channel", UMConfigure.DEVICE_TYPE_PHONE, "")
}
TalkingDataSDK.init(this, "80E9C84E39904DAFB28562910FF7C86C", "worktool_master", SPUtils.getInstance().getString(Constant.LISTEN_CHANNEL_ID));
//初始化自动更新
UpdateAppUtils.init(this)
//设置全局异常捕获重启
Expand Down

0 comments on commit e43e6bf

Please sign in to comment.