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

com.lga.contextPlugin.GlobalConfig.kt Maven / Gradle / Ivy

@file:JvmName("GlobalConfig")

package com.lga.contextPlugin

internal const val TAG = "AppContextDispatcherPlugin"

internal const val CLAZZ = ".class"

/**
 * 被注解的类的帮助类 的包名
 */
internal const val PROXY_CLASS_PACKAGE_NAME = "com.lga.contextPlugin.compiler.helper"

/**
 * 被注解的类的帮助类 的后缀
 */
private const val PROXY_CLASS_SUFFIX = "\\$\\${'$'}Helper.class"

/**
 * 匹配 被注解的类的帮助类 的正则表达式
 *
 * ^.*\$\$Proxy.class$
 */
internal const val REGEX_PROXY_CLASS = "^.*$PROXY_CLASS_SUFFIX\$"

/**
 * 要 hook 的类
 */
internal const val INJECT_CLASS_NAME = "com.lga.contextPlugin.api.AppContextDispatcher"

/**
 * 要注入的内容(方法名)
 */
internal const val METHOD_NAME_REGISTER_APP_CONTEXT = "registerAppContext"

// 字节码描述
/**
 * 注解 AppContextHookMethod 的字节码描述
 */
internal const val DESC_APP_CONTEXT_HOOK_METHOD =
    "Lcom/lga/contextPlugin/annotation/AppContextHookMethod;"

/**
 * registerAppContext 方法参数的节码描述
 */
internal const val DESC_INJECT_PARAMS = "(Ljava/lang/String;)V"




© 2015 - 2025 Weber Informatics LLC | Privacy Policy