All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hina.analytics.android.plugin.ClassNameAnalytics.kt Maven / Gradle / Ivy

The newest version!
package com.hina.analytics.android.plugin

import com.hina.analytics.android.plugin.common.HookConstant
import com.hina.analytics.android.plugin.version.SensorsDataSDKVersionHelper

class ClassNameAnalytics(
    val className: String,
    val superClass: String?,
    val interfaces: List? = null
) {
    val isHinaContext: Boolean by lazy {
        className == HookConstant.HINA_CONTEXT
    }

    val isAndroidIdUtils: Boolean by lazy {
        className == HookConstant.ANDROID_ID_UTILS
    }

    val isOAIDHelper by lazy {
        className == HookConstant.OAID_HELPER
    }

    val isSensorsDataVersion by lazy {
        className.endsWith(SensorsDataSDKVersionHelper.VERSION_KEY_HINA_DATA_VERSION_CONFIG)
    }

    val isSALog by lazy { className == HookConstant.SA_LOG }

    val isAppWebViewInterface by lazy {
        className == HookConstant.APP_JS_INTERFACE || className == HookConstant.VISUAL_JS_INTERFACE
    }

    val isKeyboardViewUtil by lazy {
        className.startsWith(PACKAGE_START) && className.endsWith(KEY_KEYBOARD)
    }

    companion object {
        private const val PACKAGE_START = "com/hina/analytics"
        private const val KEY_KEYBOARD = "KeyboardViewUtils"
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy