mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
Modify merge to YukiHookAPI new usage
This commit is contained in:
@@ -38,7 +38,7 @@ object HookEntry : IYukiHookXposedInit {
|
|||||||
isRecord = true
|
isRecord = true
|
||||||
}
|
}
|
||||||
isDebug = false
|
isDebug = false
|
||||||
isEnableModulePrefsCache = false
|
isEnablePrefsBridgeCache = false
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onHook() = encase {
|
override fun onHook() = encase {
|
||||||
|
@@ -26,7 +26,7 @@ package com.fankes.apperrorstracking.utils.tool
|
|||||||
import android.app.Application
|
import android.app.Application
|
||||||
import android.widget.CompoundButton
|
import android.widget.CompoundButton
|
||||||
import com.fankes.apperrorstracking.BuildConfig
|
import com.fankes.apperrorstracking.BuildConfig
|
||||||
import com.highcapable.yukihookapi.hook.factory.modulePrefs
|
import com.highcapable.yukihookapi.hook.factory.prefs
|
||||||
import com.highcapable.yukihookapi.hook.xposed.prefs.data.PrefsData
|
import com.highcapable.yukihookapi.hook.xposed.prefs.data.PrefsData
|
||||||
import com.microsoft.appcenter.AppCenter
|
import com.microsoft.appcenter.AppCenter
|
||||||
import com.microsoft.appcenter.analytics.Analytics
|
import com.microsoft.appcenter.analytics.Analytics
|
||||||
@@ -51,9 +51,9 @@ object AppAnalyticsTool {
|
|||||||
* @return [Boolean]
|
* @return [Boolean]
|
||||||
*/
|
*/
|
||||||
private var isEnableAppCenterAnalytics
|
private var isEnableAppCenterAnalytics
|
||||||
get() = instance?.modulePrefs?.get(ENABLE_APP_CENTER_ANALYTICS) ?: true
|
get() = instance?.prefs()?.get(ENABLE_APP_CENTER_ANALYTICS) ?: true
|
||||||
set(value) {
|
set(value) {
|
||||||
instance?.modulePrefs?.put(ENABLE_APP_CENTER_ANALYTICS, value)
|
instance?.prefs()?.edit { put(ENABLE_APP_CENTER_ANALYTICS, value) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 绑定到 [CompoundButton] 自动设置选中状态 */
|
/** 绑定到 [CompoundButton] 自动设置选中状态 */
|
||||||
|
Reference in New Issue
Block a user