build: Move subproject to root project

This commit is contained in:
oSumAtrIX
2023-10-14 19:18:57 +02:00
parent 4456031459
commit c38f0ef42a
85 changed files with 73 additions and 988 deletions

View File

@@ -0,0 +1,22 @@
package app.revanced.patcher.patch.usage
import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.patch.ResourcePatch
import org.w3c.dom.Element
class ExampleResourcePatch : ResourcePatch() {
override fun execute(context: ResourceContext) {
context.xmlEditor["AndroidManifest.xml"].use { editor ->
val element = editor // regular DomFileEditor
.file
.getElementsByTagName("application")
.item(0) as Element
element
.setAttribute(
"exampleAttribute",
"exampleValue"
)
}
}
}