From 62eff767c79302ec6066f34fffb6473f60efbc61 Mon Sep 17 00:00:00 2001 From: jiangpengyong Date: Sun, 6 Feb 2022 21:18:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20aspectof?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/zinc/libpermission/JPermissionAspect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib.permission/src/main/java/com/zinc/libpermission/JPermissionAspect.java b/lib.permission/src/main/java/com/zinc/libpermission/JPermissionAspect.java index 0cd7c60..6a1ae79 100644 --- a/lib.permission/src/main/java/com/zinc/libpermission/JPermissionAspect.java +++ b/lib.permission/src/main/java/com/zinc/libpermission/JPermissionAspect.java @@ -31,6 +31,10 @@ public class JPermissionAspect { private static final String TAG = JPermissionAspect.class.getSimpleName(); + public static JPermissionAspect aspectOf() { + return new JPermissionAspect(); + } + /** * 它在选择Jpoint的时候,把 @Permission 使用上了,并且携带有这个注解的API都是目标 JPoint * 接着,由于我们希望在函数中获取注解的信息,所有这里的 poincut 函数有一个参数,