main.jadx.plugins.input.xapk.XapkInputPlugin.kt Maven / Gradle / Ivy
The newest version!
package jadx.plugins.input.xapk
import jadx.api.plugins.JadxPlugin
import jadx.api.plugins.JadxPluginContext
import jadx.api.plugins.JadxPluginInfo
import jadx.plugins.input.dex.DexInputPlugin
class XapkInputPlugin : JadxPlugin {
private val codeInput = XapkCustomCodeInput(this)
private val resourcesLoader = XapkCustomResourcesLoader()
internal lateinit var dexInputPlugin: DexInputPlugin
override fun getPluginInfo() = JadxPluginInfo(
"xapk-input",
"XAPK Input",
"Load .xapk files",
)
override fun init(context: JadxPluginContext) {
dexInputPlugin = context.plugins().getInstance(DexInputPlugin::class.java)
context.addCodeInput(codeInput)
context.decompiler.addCustomResourcesLoader(resourcesLoader)
}
}