gulp-aapt2-dump
v0.2.0
Published
AAPT2 dump pipe for [Vinyl](https://github.com/gulpjs/vinyl) streams.
Downloads
2
Readme
gulp-aapt2-dump
AAPT2 Dump pipe for Vinyl streams.
Usage
Calls aapt2 dump ${subCommand}
for streamed files and passes stdout
to the stream.
Declaration
declare function aapt2Dump(
subCommand: DumpSubCommand,
options?: DumpOptions
): Transform;
Example
aapt2
has to be in $PATH
.
import { src, dest } from 'gulp';
import aapt2Dump from 'gulp-aapt2-dump';
src('build/**/*.apk')
.pipe(dest('dist')) // write apk to dist
.pipe(aapt2Dump('badging', { v: true }))
.pipe(dest('dist')); // write dump to dist
Dump sub-commands
Can be any of
apc
badging
configurations
packagename
permissions
strings
styleparents
resources
xmlstrings
xmltree
Dump options
/**
* Dump options for aapt2 dump.
*/
export interface DumpOptions {
noValues?: boolean; // Suppresses the output of values when displaying resource.
file?: string; // Specifies a file as an argument to be dumped from the APK.
v?: boolean; // Increases verbosity of the output.
}