me.xx2bab.polyfill.arsc.export.IResArscTweaker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polyfill-arsc Show documentation
Show all versions of polyfill-arsc Show documentation
Hook Toolset for Android App Build System.
package me.xx2bab.polyfill.arsc.export
import java.io.File
import java.io.IOException
/**
* The export api for resource.arsc tool.
*/
interface IResArscTweaker {
/**
* To load the arsc file into tweaker.
* @param
*/
@Throws(IOException::class)
fun read(source: File)
/**
* To write a new arsc file to specify file.
* @param
*/
@Throws(IOException::class)
fun write(dest: File)
/**
* @return Return types with
*/
fun getResourceTypes(): Map
/**
* @param id resource ID
* @return SimpleResource instance or null
*/
fun findResourceById(id: Int): List
/**
* @param id resource ID
* @return SimpleResource instance or null
*/
fun removeResourceById(id: Int): Boolean
fun updateResourceById(resource: SimpleResource,
config: SupportedResConfig): Boolean
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy