0.2.0 • Published 6 years ago
gulp-aapt2-dump v0.2.0
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 distDump sub-commands
Can be any of
apcbadgingconfigurationspackagenamepermissionsstringsstyleparentsresourcesxmlstringsxmltree
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.
}