All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy