LogoPear Docs
ReferencesBareModules

bare-apk

Reference for bare-apk: Android APK and app-bundle packaging tools for Bare.

bare-apk provides Android packaging tools for Bare: build an Android App Bundle (.aab) from a manifest, derive an APK set, and produce an installable .apk. It's pure JavaScript (it shells out to the Android build tools) and is used in the Android packaging path of bare-build.

npm i bare-apk

Usage

const { createAppBundle, createAPK } = require('bare-apk')

await createAppBundle('./path/to/AndroidManifest.xml', './app.aab')
await createAPK('./app.aab', './app.apk')

API

await createAppBundle(manifest, out[, options])

Build an Android App Bundle (.aab) from an AndroidManifest.xml.

await createAPKSet(bundle, out[, options])

Produce an APK set from an app bundle.

await createAPK(bundle, out[, options])

Produce an installable .apk. constants holds the supporting tables.

See also

On this page