AAPT2 dump pipe for [Vinyl](https://github.com/gulpjs/vinyl) streams.
npm install gulp-aapt2-dump[AAPT2 Dump] pipe for Vinyl streams.

Table of contents
- Usage
- Declaration
- Example
- Dump sub-commands
- Dump options
- License
Calls aapt2 dump ${subCommand} for streamed files and passes stdout to the stream.
``ts`
declare function aapt2Dump(
subCommand: DumpSubCommand,
options?: DumpOptions
): Transform;
aapt2 has to be in $PATH.
`ts
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
`
Can be any of
- apcbadging
- configurations
- packagename
- permissions
- strings
- styleparents
- resources
- xmlstrings
- xmltree
-
`ts``
/**
* 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.
}
[MIT License]
[aapt2 dump]: https://developer.android.com/studio/command-line/aapt2#dump
[mit license]: http://en.wikipedia.org/wiki/MIT_License