gulp-aapt2-dump
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

gulp-aapt2-dump

AAPT2 Dump pipe for Vinyl streams.

NPM

Table of contents

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-aapt2-dump

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

7.57 kB

Total Files

7

Last publish

Collaborators

  • frooooonk