mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-12 18:04:24 +01:00
11a911dc67
This commit converts various APIs to Kotlin DSL. BREAKING CHANGE: Various old APIs are removed, and DSL APIs are added instead.
1.3 KiB
1.3 KiB
💪 Advanced APIs
A handful of APIs are available to make patch development easier and more efficient.
📙 Overview
- 👹 Mutate classes with
context.proxy(ClassDef)
- 🔍 Find and proxy existing classes with
classBy(Predicate)
andclassByType(String)
- 🏃 Easily access referenced methods recursively by index with
MethodNavigator
- 🔨 Make use of extension functions from
BytecodeUtils
andResourceUtils
with certain applications (Available in ReVanced Patches) - 💾 Read and write (decoded) resources with
ResourcePatchContext.get(Path, Boolean)
- 📃 Read and write DOM files using
ResourcePatchContext.document
🧰 APIs
Warning
This section is still under construction and may be incomplete.
🎉 Afterword
ReVanced Patcher is a powerful library to patch Android applications, offering a rich set of APIs to develop patches
that outlive app updates. Patches make up ReVanced; without you, the community of patch developers,
ReVanced would not be what it is today. We hope that this documentation has been helpful to you
and are excited to see what you will create with ReVanced Patcher. If you have any questions or need help,
talk to us on one of our platforms linked on revanced.app or open an issue in case of a bug or feature request,
ReVanced