0.2.0 • Published 4 years ago

gulp-aapt2-dump v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

gulp-aapt2-dump

AAPT2 Dump pipe for Vinyl streams.

NPM

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.
}

License

MIT License

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago