From 25d907ff1ecb3cec2604ea833addc4df00743691 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Sat, 23 Sep 2023 22:49:04 +0800 Subject: [PATCH] refactor: replace isAllowPrintingLogs to isEnableLogs --- .../yukireflection/YukiReflection.kt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/yukireflection-core/src/main/java/com/highcapable/yukireflection/YukiReflection.kt b/yukireflection-core/src/main/java/com/highcapable/yukireflection/YukiReflection.kt index bcfbe11..bac686f 100644 --- a/yukireflection-core/src/main/java/com/highcapable/yukireflection/YukiReflection.kt +++ b/yukireflection-core/src/main/java/com/highcapable/yukireflection/YukiReflection.kt @@ -92,9 +92,22 @@ object YukiReflection { /** * 是否启用调试日志的输出功能 * - * - ❗关闭后将会停用 [YukiReflection] 对全部日志的输出 + * - ❗关闭后将会停用 [YukiReflection] 对全部日志的输出 - 同时 [isDebug] 将不再有效 */ - var isAllowPrintingLogs = true + var isEnableLogs = true + + /** + * 是否启用调试日志的输出功能 + * + * - ❗此方法已弃用 - 在之后的版本中将直接被删除 + * + * - ❗请现在迁移到 [isEnableLogs] + */ + @Deprecated(message = "请使用新方式来实现此功能", ReplaceWith("isEnableLogs")) + var isAllowPrintingLogs get() = isEnableLogs + set(value) { + isEnableLogs = value + } /** * 是否启用 [Member] 缓存功能