mirror of
https://github.com/LSPosed/DisableFlagSecure.git
synced 2025-05-04 22:29:43 +08:00
fix annotations
This commit is contained in:
parent
5f342219df
commit
92c067bb15
@ -63,4 +63,5 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'androidx.annotation:annotation:1.8.1'
|
compileOnly 'androidx.annotation:annotation:1.8.1'
|
||||||
compileOnly 'io.github.libxposed:api:100'
|
compileOnly 'io.github.libxposed:api:100'
|
||||||
|
compileOnly project(":libxposed-compat")
|
||||||
}
|
}
|
||||||
|
12
app/proguard-rules.pro
vendored
12
app/proguard-rules.pro
vendored
@ -6,9 +6,15 @@
|
|||||||
public void onPackageLoaded(...);
|
public void onPackageLoaded(...);
|
||||||
public void onSystemServerLoaded(...);
|
public void onSystemServerLoaded(...);
|
||||||
}
|
}
|
||||||
-keep,allowoptimization,allowobfuscation @io.github.libxposed.api.annotations.* class * {
|
-keep,allowshrinking,allowoptimization,allowobfuscation class ** implements io.github.libxposed.api.XposedInterface$Hooker
|
||||||
@io.github.libxposed.api.annotations.BeforeInvocation <methods>;
|
-keepclassmembers,allowoptimization class ** implements io.github.libxposed.api.XposedInterface$Hooker {
|
||||||
@io.github.libxposed.api.annotations.AfterInvocation <methods>;
|
public *** before(***);
|
||||||
|
public *** after(***);
|
||||||
|
public static *** before();
|
||||||
|
public static *** before(io.github.libxposed.api.XposedInterface$BeforeHookCallback);
|
||||||
|
public static void after();
|
||||||
|
public static void after(io.github.libxposed.api.XposedInterface$AfterHookCallback);
|
||||||
|
public static void after(io.github.libxposed.api.XposedInterface$AfterHookCallback, ***);
|
||||||
}
|
}
|
||||||
|
|
||||||
-repackageclasses
|
-repackageclasses
|
||||||
|
1
libxposed-compat/.gitignore
vendored
Normal file
1
libxposed-compat/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/build
|
20
libxposed-compat/build.gradle
Normal file
20
libxposed-compat/build.gradle
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
plugins {
|
||||||
|
id 'com.android.library'
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace 'io.github.libxposed'
|
||||||
|
compileSdk 34
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdk 24
|
||||||
|
targetSdk 34
|
||||||
|
versionCode 1
|
||||||
|
versionName "1.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
|
}
|
||||||
|
}
|
3
libxposed-compat/src/main/AndroidManifest.xml
Normal file
3
libxposed-compat/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest>
|
||||||
|
</manifest>
|
@ -19,3 +19,4 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
rootProject.name = "DisableFlagSecure"
|
rootProject.name = "DisableFlagSecure"
|
||||||
include ':app'
|
include ':app'
|
||||||
|
include ':libxposed-compat'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user