Integrate libxposed API as a Module Developer
masterTo develop an Xposed module using the modern API, add the api dependency using compileOnly. This ensures the API is available during compilation but is not bundled into your module's APK, as the framework will provide it at runtime.
If you are using ProGuard or R8 for minification, you must include specific rules to prevent your module entry class (the one extending XposedModule) from being obfuscated or removed, and to ensure the META-INF/xposed/java_init.list file is correctly updated.
dependencies {
compileOnly("io.github.libxposed:api:102.0.0")
}