@litecase/aapt-js
v0.0.3
Published
A node wraper for aapt
Downloads
5
Readme
aapt-js
aapt-js is cloned from shenzhim's aaptjs project.
aapt-js is a node wraper for aapt. You can get information about .apk
file which you provide, eg: bit version(32-bit or 64-bit), version and so on.
Install
npm install @litecase/aapt-js --save
Example
const { list } = require('aapt-js')
aaptJs.list('/path/to/your/ExampleApp.apk', (err, data) => {
if (!err) {
console.log(data)
} else {
// something went wrong
}
})
Some Methods
list(apkfilePath: string, callback?: (err: Error|null, data: string) => void): Promise
dump(what: string, apkfilePath: string, callback?: (err: Error|null, data: string) => void): Promise
packageCmd(command: string, callback?: (err: Error|null, data: string) => void): Promise
remove(apkfilePath: string, files: string|string[], callback?: (err: Error|null, data: string) => void): Promise
add(apkfilePath: string, files: string|string[], callback?: (err: Error|null, data: string) => void): Promise
crunch(resource: string|string[], outputFolder: string, callback?: (err: Error|null, data: string) => void): Promise
singleCrunch(inputFile: string, outputfile: string, callback?: (err: Error|null, data: string) => void): Promise
getVersion(callback?: (err: Error|null, data: string) => void): Promise
getBit(callback?: (err: Error|null, data: string) => void): Promise