aaptjs3
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

aaptjs3

Implementation of aapt in nodejs

install

  • in npm
npm install aaptjs3 --save
  • in yarn
yarn add aaptjs3

Example

const aapt = require('aaptjs3');

aapt.list('/path/to/your/ExampleApp.apk', ['-a'])
  .then (data => {
    // Your implementation
  })
  .catch ((err) => {
    // Your implementation
  });

API

interface ExecResult {
  stdout: string,
  stderr: string,
}

interface PackageInfo {
  package: string,
  version: string,
  name: string,
  icon: string,
}

export function aapt(commanArgs: string[], maxBuffer?: number): Promise<ExecResult>;
export function list(apkPath: string, args?: Array<string>): Promise<ExecResult>;
export function dump(apkPath: string, value: string): Promise<ExecResult>;
export function packageCmd(filePath: string, command: string): Promise<ExecResult>;
export function remove(filePath: string, files: string[]): Promise<ExecResult>;
export function add(filePath: string, files: string[]): Promise<ExecResult>;
export function crunch(resource: string[], outputFolder: string): Promise<ExecResult>;
export function singleCrunch(inputFile: string, outputFile: string): Promise<ExecResult>;
export function getApkInfo(filePath: string): Promise<PackageInfo>;

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i aaptjs3

      Weekly Downloads

      0

      Version

      1.0.6

      License

      MIT

      Unpacked Size

      8.54 MB

      Total Files

      19

      Last publish

      Collaborators

      • kiliaosi