From 22b03bb858cecc1d865dd81b19c70f3176a4caf4 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Sat, 12 Mar 2022 22:45:51 +0800 Subject: [PATCH] Update to New Rule --- .idea/gradle.xml | 2 +- .idea/misc.xml | 2 +- .../yukihookapi_ksp_xposed/YukiHookXposedProcessor.kt | 2 +- .../src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt | 2 +- .../com/highcapable/yukihookapi/annotation/DoNotUseClass.kt | 2 +- .../com/highcapable/yukihookapi/annotation/DoNotUseField.kt | 2 +- .../com/highcapable/yukihookapi/annotation/DoNotUseMethod.kt | 2 +- .../com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt | 2 +- .../yukihookapi/hook/core/finder/ConstructorFinder.kt | 2 +- .../com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt | 2 +- .../highcapable/yukihookapi/hook/core/finder/MethodFinder.kt | 2 +- .../highcapable/yukihookapi/hook/factory/ReflectionFactory.kt | 2 +- .../kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt | 2 +- .../com/highcapable/yukihookapi/hook/param/PackageParam.kt | 2 +- .../yukihookapi/hook/param/wrapper/PackageParamWrapper.kt | 2 +- .../com/highcapable/yukihookapi/hook/utils/UtilsFactory.kt | 2 +- .../yukihookapi/hook/xposed/prefs/YukiHookModulePrefs.kt | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 3daaa9d9..ed802320 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -7,6 +7,7 @@ - diff --git a/.idea/misc.xml b/.idea/misc.xml index b6bf4741..29e61399 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -10,7 +10,7 @@ - + diff --git a/yukihookapi-ksp-xposed/src/api/kotlin/com/highcapable/yukihookapi_ksp_xposed/YukiHookXposedProcessor.kt b/yukihookapi-ksp-xposed/src/api/kotlin/com/highcapable/yukihookapi_ksp_xposed/YukiHookXposedProcessor.kt index e1409942..3d01b003 100644 --- a/yukihookapi-ksp-xposed/src/api/kotlin/com/highcapable/yukihookapi_ksp_xposed/YukiHookXposedProcessor.kt +++ b/yukihookapi-ksp-xposed/src/api/kotlin/com/highcapable/yukihookapi_ksp_xposed/YukiHookXposedProcessor.kt @@ -216,7 +216,7 @@ class YukiHookXposedProcessor : SymbolProcessorProvider { ).apply { /** 插入 xposed_init 代码 */ write( - ("@file:Suppress(\"EXPERIMENTAL_API_USAGE\")\n" + + ("@file:Suppress(\"OPT_IN_USAGE\")\n" + "\n" + "package $packageName\n" + "\n" + diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt index d9b61d24..9de6997c 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/YukiHookAPI.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("MemberVisibilityCanBePrivate", "unused", "EXPERIMENTAL_API_USAGE") +@file:Suppress("MemberVisibilityCanBePrivate", "unused", "OPT_IN_USAGE") package com.highcapable.yukihookapi diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseClass.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseClass.kt index 5f80bfd7..0f6d5a54 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseClass.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseClass.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("EXPERIMENTAL_IS_NOT_ENABLED") +@file:Suppress("OPT_IN_IS_NOT_ENABLED") package com.highcapable.yukihookapi.annotation diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseField.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseField.kt index 3c01853f..1708d8e7 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseField.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseField.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("EXPERIMENTAL_IS_NOT_ENABLED") +@file:Suppress("OPT_IN_IS_NOT_ENABLED") package com.highcapable.yukihookapi.annotation diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseMethod.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseMethod.kt index 9c1d4ee6..63e5aaa2 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseMethod.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/annotation/DoNotUseMethod.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("EXPERIMENTAL_IS_NOT_ENABLED") +@file:Suppress("OPT_IN_IS_NOT_ENABLED") package com.highcapable.yukihookapi.annotation diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt index 6e881177..297ed5fc 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/YukiHookCreater.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("MemberVisibilityCanBePrivate", "unused", "EXPERIMENTAL_API_USAGE") +@file:Suppress("MemberVisibilityCanBePrivate", "unused", "OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.core diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt index a824adf2..0a33ceac 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/4. */ -@file:Suppress("unused", "EXPERIMENTAL_API_USAGE", "MemberVisibilityCanBePrivate", "UNCHECKED_CAST") +@file:Suppress("unused", "OPT_IN_USAGE", "MemberVisibilityCanBePrivate", "UNCHECKED_CAST") package com.highcapable.yukihookapi.hook.core.finder diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt index 76dd973f..0a951b01 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/FieldFinder.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/4. */ -@file:Suppress("unused", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "EXPERIMENTAL_API_USAGE") +@file:Suppress("unused", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.core.finder diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt index cabc5ee8..9d0a3fa5 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/4. */ -@file:Suppress("unused", "MemberVisibilityCanBePrivate", "EXPERIMENTAL_API_USAGE", "UNCHECKED_CAST") +@file:Suppress("unused", "MemberVisibilityCanBePrivate", "OPT_IN_USAGE", "UNCHECKED_CAST") package com.highcapable.yukihookapi.hook.core.finder diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/factory/ReflectionFactory.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/factory/ReflectionFactory.kt index 2c41a039..a780fabc 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/factory/ReflectionFactory.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/factory/ReflectionFactory.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("unused", "EXPERIMENTAL_API_USAGE") +@file:Suppress("unused", "OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.factory diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt index 929273a0..81cf51fc 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("unused", "MemberVisibilityCanBePrivate", "UNCHECKED_CAST", "EXPERIMENTAL_API_USAGE") +@file:Suppress("unused", "MemberVisibilityCanBePrivate", "UNCHECKED_CAST", "OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.param diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/PackageParam.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/PackageParam.kt index 1126370d..69cb9192 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/PackageParam.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/PackageParam.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/2. */ -@file:Suppress("unused", "MemberVisibilityCanBePrivate", "EXPERIMENTAL_API_USAGE") +@file:Suppress("unused", "MemberVisibilityCanBePrivate", "OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.param diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/wrapper/PackageParamWrapper.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/wrapper/PackageParamWrapper.kt index a29c998d..766ff890 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/wrapper/PackageParamWrapper.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/wrapper/PackageParamWrapper.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/7. */ -@file:Suppress("unused", "MemberVisibilityCanBePrivate", "EXPERIMENTAL_API_USAGE") +@file:Suppress("unused", "MemberVisibilityCanBePrivate", "OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.param.wrapper diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/utils/UtilsFactory.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/utils/UtilsFactory.kt index dfdd96bd..a89bd4f0 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/utils/UtilsFactory.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/utils/UtilsFactory.kt @@ -25,7 +25,7 @@ * * This file is Created by fankes on 2022/2/5. */ -@file:Suppress("EXPERIMENTAL_API_USAGE") +@file:Suppress("OPT_IN_USAGE") package com.highcapable.yukihookapi.hook.utils diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs.kt index da550c88..8cd75c59 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/xposed/prefs/YukiHookModulePrefs.kt @@ -26,7 +26,7 @@ * This file is Created by fankes on 2022/2/8. */ @file:Suppress( - "EXPERIMENTAL_API_USAGE", "SetWorldReadable", "CommitPrefEdits", + "OPT_IN_USAGE", "SetWorldReadable", "CommitPrefEdits", "DEPRECATION", "WorldReadableFiles", "unused" )