{"_id":"@meta-quest/bubblewrap-cli","_rev":"2-800f980cd69cd5272a6924ca60e5d2a5","name":"@meta-quest/bubblewrap-cli","dist-tags":{"latest":"1.24.1"},"versions":{"1.24.1":{"name":"@meta-quest/bubblewrap-cli","version":"1.24.1","keywords":[],"author":"","license":"Apache-2.0","_id":"@meta-quest/bubblewrap-cli@1.24.1","maintainers":[{"name":"zbowling","email":"zac@zacbowling.com"},{"name":"joseph-meta","email":"jdcarroll@meta.com"},{"name":"zjm-meta","email":"zjm@meta.com"}],"homepage":"https://github.com/meta-quest/bubblewrap#readme","bugs":{"url":"https://github.com/meta-quest/bubblewrap/issues"},"bin":{"bubblewrap":"bin/bubblewrap.js"},"dist":{"shasum":"684909c355bc56cd378ad803df810392c8ab2cae","tarball":"https://registry.npmjs.org/@meta-quest/bubblewrap-cli/-/bubblewrap-cli-1.24.1.tgz","fileCount":49,"integrity":"sha512-5ViVuav+LhYWcweUFm3PimpZXg4C7lUsdsTveCid4VJNzs5zey7VqLH8Ikz9JxF5SFaMI3xK7J/rjfPAfek4VQ==","signatures":[{"sig":"MEYCIQDox7e6AOi159H2JDsRaj6f7guWh/Xp7h22wXA1K/oszgIhANMPkCnhqq6XGPPSFinbM/bXDUlVFTH41Dpe9a9mqm/v","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":188477},"engines":{"node":">=18.0.0"},"gitHead":"ba2a8430ee11d6bf650ed3d071c9c144fff31538","scripts":{"lint":"eslint \"src/**/*.{js,ts}\"","test":"tsc && jasmine --config=jasmine.json","build":"tsc","clean":"del dist"},"_npmUser":{"name":"zjm-meta","email":"zjm@meta.com"},"repository":{"url":"git+https://github.com/meta-quest/bubblewrap.git","type":"git"},"_npmVersion":"10.9.2","description":"CLI tool to Generate TWA projects from a Web Manifest","directories":{},"_nodeVersion":"23.6.0","dependencies":{"color":"^3.1.2","colors":"1.4.0","semver":"^7.3.2","inquirer":"^8.2.6","minimist":"^1.2.2","valid-url":"^1.0.9","mime-types":"^2.1.27","@types/color":"^3.0.0","cli-progress":"^3.8.2","@types/semver":"^7.3.1","@types/inquirer":"^8.2.6","@types/minimist":"^1.2.0","@types/valid-url":"^1.0.3","@types/mime-types":"^2.1.0","@types/cli-progress":"^3.7.0","@meta-quest/bubblewrap-core":"^1.24.1","@meta-quest/bubblewrap-validator":"^1.22.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bubblewrap-cli_1.24.1_1778013843581_0.06002207849931662","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-05-05T20:44:03.519Z","modified":"2026-08-14T19:40:23.739Z","1.24.1":"2026-05-05T20:44:03.836Z"},"bugs":{"url":"https://github.com/meta-quest/bubblewrap/issues"},"license":"Apache-2.0","homepage":"https://github.com/meta-quest/bubblewrap#readme","keywords":[],"repository":{"url":"git+https://github.com/meta-quest/bubblewrap.git","type":"git"},"description":"CLI tool to Generate TWA projects from a Web Manifest","maintainers":[{"email":"zac@zacbowling.com","name":"zbowling"},{"email":"jdcarroll@meta.com","name":"joseph-meta"},{"email":"zjm@meta.com","name":"zjm-meta"},{"email":"opensource+npm@fb.com","name":"fb"}],"readme":"<!---\n\n  Copyright (c) Meta Platforms, Inc. and affiliates.\n  Copyright 2019 Google Inc. All Rights Reserved.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n-->\n# Bubblewrap CLI\n![Node CI Status](https://github.com/GoogleChromeLabs/bubblewrap/workflows/Node%20CI/badge.svg)\n\nThis is a fork of the [bubblewrap]() project by Google. It has been modified to allow\ncreating [Trusted Web Activities (TWA)](https://developer.chrome.com/docs/android/trusted-web-activity/)\nfor Meta Quest headsets.\n\nBubblewrap is a Command Line Interface (CLI) that helps developers to create\na Project for an Android application that launches an existing Progressive Web App (PWA) using a\n[Trusted Web Activity (TWA)](https://developer.chrome.com/docs/android/trusted-web-activity/).\n\n## Requirements\n- [Node.js](https://nodejs.org/en/) 14.15.0 or above\n\n## Setting up the Environment\n\nWhen running Bubblewrap for the first time, it will offer to automatically download and install\nexternal dependencies. This is the recommended setup, but it's possible to\n[manually setup the environment](#manually-setting-up-the-environment).\n\n## Container\n\nAs an alternative to running the cli on your machine with Node.js directly you can use this\ncontainer image which got the cli and all dependencies pre-installed. To use the cli run\n`docker run --rm -ti ghcr.io/googlechromelabs/bubblewrap:latest [cmd]` as you would normally\nuse `bubblewrap [cmd]`.\n\n## Quickstart Guide\n\n### Installing Bubblewrap\n\n```bash\nnpm i -g @meta-quest/bubblewrap-cli\n```\n\n:warning: **Warning:** Don't use `sudo npm i -g @meta-quest/bubblewrap-cli` to install Bubblewrap. Using `npm` commands with `sudo`\ncan create different kinds of problems and should be avoided (see\n[here](https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92) and\n[here](https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-5711d2726aa3)).\n\n### Initializing an Android Project\nGenerate an Android project from an existing Web Manifest:\n\n```bash\nbubblewrap init --manifest https://my-twa.com/manifest.json --metaquest\n```\n\nWhen initalizing a project, Bubblewrap will download the Web Manifest and ask you to confirm\nthe values that should be used when building the Android project.\n\nIt will also ask you for the details needed to generate a signing key, used to sign the\napp before uploading to the Play Store.\n\n> :grey_exclamation: Even though we recommend Bubblewrap for building and generating a signed\nAPK, the output from the `init` command is a regular Android project that can be opened\nand built using [Android Studio](https://developer.android.com/studio/). Please, refer to the\n[documentation]( https://developer.android.com/studio/publish/app-signing#sign-apk) to build and sign\napplications using Android Studio.\n\n### Building the Android Project\n\n```bash\nbubblewrap build\n```\n\nWhen building the project for the first time, the Android Build Tools will need to be installed.\nThe tool will invoke the installation process for the build tools. Make sure to read and accept\nthe license agreement before proceeding. This process will install the other required files inside the `directory/decompressed` root directory of the android CLI package.\n\nAs a result of the build step, the tool will generate a signed APK (`app-release-signed.apk`)\nthat can be used for testing the app and a signed AppBundle (`./app-release-bundle.aab`) that can be [uploaded to the Play Store](https://android-developers.googleblog.com/2020/08/recent-android-app-bundle-improvements.html). You will also need to deploy a Digital Asset Links file to\nvalidate your domain. The\n[TWA Quick Start Guide](https://developers.google.com/web/updates/2019/08/twas-quickstart#creating-your-asset-link-file)\nexplains how to extract the information needed to generate it.\n\n## Commands\n\n![Overview of bubblewrap commands](command_flow.svg)\n\nThe diagram above shows which commands (in the black boxes) take as input or produce as output various files (in white ovals).\nAn arrow leading to a file means \"creates or modifies\" and an arrow leading to a command means \"is used as input\".\n\n## `init`\n\nUsage:\n\nInitializes an Android project for Trusted Web Activity from a Web Manifest. The init script will\nparse the Web manifest and generate default values for the Android project, where possible. It\nwill prompt the user to confirm or input values where one could not be generated.\n\n```\nbubblewrap init --manifest=\"<web-manifest-url>\" [--directory=\"<path-to-output-location>\"] [--chromeosonly] [--metaquest]\n```\n\nOptions:\n  - `--directory`: path where to generate the project. Defaults to the current directory.\n  - `--chromeosonly`: this flag specifies that the build will be used for Chrome OS only and prevents non-Chrome OS devices from installing the app.\n  - `--metaquest`: this flag specifies that the build will be compatible with Meta Quest devices.\n  - `--alphaDependencies`: enables features that depend on upcoming version of the Android library\n  for Trusted Web Activity or that are still unstable.\n\n## `build`\n\nBuilds the project into a final APK that can be uploaded to the Play Store.\n\nThe command will ask the user for they key store passwords. Alternatively, users can set the\npasswords as enviromental variables, which allows running `build` as part of a continuous integration.\nSet `BUBBLEWRAP_KEYSTORE_PASSWORD` for the key store password and `BUBBLEWRAP_KEY_PASSWORD` as the key password.\n\nUsage:\n\n```\nbubblewrap build [--skipPwaValidation] [--skipSigning] [--manifest=\"<path-twa-manifest>\"] [--signingKeyPath=\"<path-to-signing-key>\"] [--signingKeyAlias=\"<key-alias>\"]\n```\n\nOptions:\n  - `--skipPwaValidation`: skips validating the wrapped PWA against the Quality Criteria.\n  - `--skipSigning`: skips signing the built APK and App Bundle. Other signing-related flags are ignored when this is used.\n  - `--signingKeyPath`: path to keystore to use for signing the built APK and App Bundle. Overrides signingKey.path specified in `twa-manifest.json`.\n  - `--signingKeyAlias`: key name. Overrides signingKey.alias specified in `twa-manifest.json`.\n  - `--manifest`: directory where the client should look for `twa-manifest.json`.\n\n\n## `update`\n\nRegenerates the Android project files from a `twa-manifest.json` file.\n\n:warning: **Warning:** Bubblewrap doesn't expect the generated Android project to be updated using\nexternal editors. Any files added manually to the Android project will be deleted or overwritten\nwhen `update` is executed. Changes to `twa-manifest.json` are preserved.\n\nUsage:\n\n```\nbubblewrap update [--appVersionName=\"<version-string>\"] [--skipVersionUpgrade] [--manifest=\"<path-twa-manifest>\"]\n```\n\nOptions:\n - `--appVersionName`: version name to be used on on the upgrade. Ignored if `--skipVersionUpgrade` is used.\n - `--skipVersionUpgrade`: skips upgrading `appVersion` and `appVersionCode`.\n - `--manifest`: directory where the client should look for `twa-manifest.json`.\n\n## `validate`\n\nValidates a PWA agains the Quality Criteria for being using in a Trusted Web Activity.\n\nUsage:\n\n```\nbubblewrap validate --url=[pwa-url]\n```\n\n## `install`\n\nInstall the application generated in the output command to a device connected for debugging.\n\nUsage:\n\n```\nbubblewrap install [--apkFile=\"/path-to-apk/apkfile.apk\"]\n```\n\nOptions:\n  - `--apkFile`: path to the APK file to be installed. Defaults to `./app-release-signed.apk`.\n  - `--verbose`: prints the adb command being executed.\n\n## `help`\n\nDisplays a list of commands and options.\n\nUsage:\n\n```\nbubblewrap help\n```\n\n## `doctor`\n\nValidates that the jdk and the androidSdk are located at the path specified in your config\nand that they are at the correct version.\n\nUsage:\n\n```\nbubblewrap doctor\n```\n\n## `updateConfig`\n\nSets the paths of the jdk or the androidSdk to the given paths.\n\nUsage:\n\n```\nbubblewrap updateConfig  --jdkPath=\"/path-to-jdk\" --androidSdkPath=\"/path-to-androidSdk\"\n```\n\nOptions:\n  - `--jdkPath`: sets the jdk's path to the path given.\n  - `--androidSdkPath`: sets the androidSdk's path to the path given.\n\n## `merge`\n\nMerges the user's web manifest into their twaManifest.json.\n\nUsage:\n\n```\nbubblewrap merge --ignore [fields-list]\n```\n\nOptions:\n  - `--appVersionName`: version name to be used on on the upgrade. Ignored if `--skipVersionUpgrade` is used.\n  - `--skipVersionUpgrade`: skips upgrading `appVersion` and `appVersionCode`.\n  - `--ignore`: Ignores all of the fields on the list. Accepts all of the possible fields\n  in the Web Manifest.\n\n## `fingerprint`\n\nManages the list of fingerprints used to generate the Digital Asset Links file for the web application.\n\nUsage:\n\n```bash\nbubblewrap fingerprint [subcommand]\n```\n\nGlobal flags:\n  - `--manifest=<manifest>`: path to the Trusted Web Activity configuration.',\n\n### Subcommands:\n\n#### `add`\nAdds a fingerprint to the project configuration.\n\nUsage:\n\n```\nbubblewrap fingerprint add [SHA-256 fingerprint] <flags>\n```\n\nAdditional flags:\n - `--name=<name>`: optionally set a name to help identify the fingerprint. The name is printed\nalong with the fingerprint when using the `list` subcommand.\n\n#### `remove`\nRemoves a fingerprint from the project configuration.\n\nUsage:\n```\nbubblewrap fingerprint remove [SHA-256 fingerprint] <flags>\n```\n\n#### `list`\nLists the fingerprints in the project configuration.\n\nUsage:\n```\nbubblewrap fingerprint list <flags>\n```\n\n#### `generateAssetLinks`\nGenerates an AssetLinks file from the project configuration\n\nUsage:\n```\nbubblewrap fingerprint generateAssetLinks <flags>\n```\n\nFlags:\n - `--output=<filename>`: path from where to load the project configuration.\n\n## `play`\n\nManages the artifacts for your Google Play Project.\n\nUsage:\n\n```bash\nbubblewrap play [subcommand]\n```\n\n**Note**:\nThese feature requires a service account file to work correctly. Please see [this documentation](https://github.com/chromeos/pwa-play-billing#setup-a-service-account) for setting up a service account.\n\nGlobal flags (can be applied to all of the features commands):\n  - `--serviceAccountFile`: sets the service account json file location in the twa-manifest.\n  - `--manifest`: specifies the manifest file to use if not in the current directory.\n\n\n### Subcommands\n\n#### `publish`\n\nPublishes provided bundle to the Play Store.\n\nUsage:\n\n```bash\nbubblewrap play publish --serviceAccountFile=\"/path/to/service/account.json\" --track=\"beta\" --appBundleLocation=\"/home/appBundle.aab\"\n```\n\nOptions:\n  - `--track`: publishes the prebuilt file to the Google Play Store specificed track (defaults to internal track).\n  - `--appBundleLocation`: specifies the location of the appbundle to upload to Google Play (defaults to current directory).\n\n#### `retain`\n\n:warning: This is an experimental feature.\n\nUsage:\n\n```bash\nbubblewrap play retain --add=86\n```\n\nOptions:\n  - `--add`: specifies the bundles to retain for release (this would be Android only bundles if releasing a Chrome OS only release).\n  - `--remove`: removes the specified bundle if no longer relevant.\n  - `--list`: shows a list of existing retained bundles in the twa-manifest.json, not what is listed as retained from play.\n\n#### `versionCheck`\n\nUsage:\n\n```bash\nbubblewrap play versionCheck --serviceAccountFile=\"/path/to/service/account.json\"  --targetDirectory=\"/home/my/app/dir\"\n```\n\nOptions:\n  - `--targetDirectory`: the directory that versionCheck should run in (defaults to the current directory). This should be your bubblewrap project directory.\n\n## `twa-manifest.json` reference\n\nThe `twa-manifest.json` file is generated as by the `init` comand and contains the configuration of\nAndroid application.\n\nDevelopers who want to change their application configuration after running `init` can do so by\nediting this file then running the `update` command.\n\nFields:\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|additionalTrustedOrigins|string[]|false|A list of additional origins owned by developer and validated with Digital Asset Links. The user will remain in fullscreen mode when navigating to those origins inside the application.|\n|alphaDependencies|[AlphaDependencies](#AlphaDependencies)|false|Enables the Android application to use alpha version of dependencies. Defaults to `false`.|\n|appVersion|string|false|`versionName` for the Android application. Check the [Android docs](https://developer.android.com/studio/publish/versioning) for details.|\n|appVersionCode|number|false|`versionCode` for the Android application. Check the [Android docs](https://developer.android.com/studio/publish/versioning) for details.|\n|backgroundColor|string|true|Color used for the splash screen background.|\n|display|`'standalone'` \\| `'fullscreen'` \\| `'fullscreen-sticky'`|false|The initial [display mode](https://developer.mozilla.org/en-US/docs/Web/Manifest/display) for the Android application. `fullscreen-sticky` corresponds to Android's [Immersive Sticky](https://developer.android.com/training/system-ui/immersive#sticky-immersive). Defaults to `standalone`.|\n|enableNotifications|boolean|true|Set to `true` to enable notification delegation.|\n|enableMicrophone|boolean|false|Adds handling of microphone permission request.|\n|enableSiteSettingsShortcut|boolean|false|Adds a shortcut to the site settings in the application launcher. Defaults to `true`.|\n|enableXRScene|boolean|false|Adds handling of XR Scene (USE_SCENE) permission request.|\n|fallbackType|`'customtabs'` \\| `'webview'`|false|Fallback strategy used when a browser that supports Trusted Web Activity is not available on the users device. Defaults to `'customtabs'`.|\n|features|[Features](#Features)|false|Enables optional features in the Android application. Read the [Features](#Features) section for details.|\n|fingerprints|[Fingerprint](#fingerprint)[]|false|List of fingerprints used to generate the Digital Asset Links file. Read the [Fingerprint](#fingerprint) section for details.|\n|generatorApp|string|false|Identifier for tool used to generate the Android project. Bubblewrap uses `bubblewrap-cli`. Should only be modified by generator apps.|\n|host|string|true|The origin that will be opened in the Trusted Web Activity.|\n|iconUrl|string|true|Full URL to an the icon used for the application launcher and splash screen. Must be at least 512x512 px.|\n|isChromeOSOnly|boolean|false|Generates an application that targets only ChromeOS devices. Defaults to `false`.|\n|isMetaQuest|boolean|false|Generates an application that compatible with Meta Quest devices. Defaults to `false`.|\n|launcherName|string|false|A short name for the Android application, displayed on the Android launcher|\n|maskableIconUrl|string|false|Full URL to an the icon used for maskable icons, when supported by the device.|\n|monochromeIconUrl|string|false|Full URL to a monochrome icon, used when displaying notifications.|\n|name|string|true|Name for the Android application, displayed on vairous places when installed on an Android device.|\n|navigationColor|string|true|The color used for the navigation bar.|\n|navigationColorDark|string|false|The color used for the navigation bar when the device is in dark mode. Defaults to `#000000`.|\n|navigationDividerColor|string|false|The color used for the navigation bar divider. Defaults to `#000000`.|\n|navigationDividerColorDark|string|false|The color used for the navigation bar divider when the device is dark mode. Defaults to `#000000`.|\n|orientation|`'default'` \\| `'any'` \\| `'natural'` \\| `'landscape'` \\| `'portrait'` \\| `'portrait-primary'` \\| `'portrait-secondary'` \\| `'landscape-primary'` \\| `'landscape-secondary'`|false|Initial orientation used to launch the Android application. Defaults to `'default'`.|\n|packageId|string|true|The [application id](https://developer.android.com/studio/build/application-id) for the output Android app.|\n|retainedBundles|Array<number>|false|These are the bundles of app bundles that you want to retain when publishing a new bundle.|\n|serviceAccountJsonFile|string|false|The Play Store serviced account information. [Guide to setting up](https://github.com/chromeos/pwa-play-billing#setup-a-service-account)|\n|shareTarget|[ShareTarget](https://w3c.github.io/web-share-target/#sharetarget-and-its-members)|false|[Web Share Target](https://web.dev/web-share-target/) configuration for the application.|\n|shortcuts|[ShortcutInfo](https://developer.mozilla.org/en-US/docs/Web/Manifest/shortcuts)[]|false|[Shortcuts](https://web.dev/app-shortcuts/) configuration for the application.|\n|signingKey|[SigningKeyInfo](#SigningKeyInfo)|true|Signing key and alias used to sign the Android application. Read the [SigningKeyInfo](#SigningKeyInfo) section for details.|\n|splashScreenFadeOutDuration|number|true|Duration for the splash screen fade out animation.|\n|startUrl|string|true|The start path for the TWA. Must be relative to the domain.|\n|themeColor|string|true|The color used for the status bar.|\n|themeColorDark|string|true|The color used for the dark status bar.|\n|webManifestUrl|string|false|Full URL to the PWA Web Manifest. Required for the application to be compatible with Chrome OS and Meta Quest devices.|\n|fullScopeUrl|string|false|The navigation scope that the browser considers to be within the app. If the user navigates outside the scope, it reverts to a normal web page inside a browser tab or window. Must be a full URL. Required and used only by Meta Quest devices.|\n|minSdkVersion|number|false|The minimum [Android API Level](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) required for the application to run. Defaults to `23`, if `isMetaQuest` is `true`, and `19` otherwise.|\n|protocolHandlers|[ProtocolHandler](#protocolhandlers)[]|false|List of [Protocol Handlers](#protocolhandlers) supported by the app.|\n|fileHandlers|[FileHandler](#fileHandlers)[]|false|List of [File Hanlders](#fileHandlers) supported by the app.|\n|launchHandlerClientMode|string|false|launch_handler [client_mode](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/launch_handler#client_mode) of the app.|\n\n### Features\n\nDevelopers can enable additional features in their Android application. Some features may include more dependencies into the application and increase the binary size.\n\n|Name|Type|Required|Increases Binary Size|Description|\n|:--:|:--:|:------:|:-------------------:|:---------:|\n|appsFlyer|[AppsFlyerConfig](#appsflyerconfig)|false|true|Read the [AppsFlyerConfig](#appsflyerconfig) section for details.|\n|firstRunFlag|[FirstRunFlagConfig](#firstrunflagconfig)|false|false|Read the [FirstRunFlagConfig](#firstrunflagconfig) section for details.|\n|locationDelegation|[LocationDelegationConfig](#locationdelegationconfig)|false|true|Read the [LocationDelegationConfig](#locationdelegationconfig) section for details.|\n|playBilling|[PlayBillingConfig](#playbillingconfig)|false|true|Read the [PlayBillingConfig](#playbillingconfig) section for details.|\n\n#### AppsFlyerConfig\nEnables the [AppsFlyer SDK](https://support.appsflyer.com/hc/en-us/articles/360002330178-Using-AppsFlyer-with-TWA#introduction) in the Android application. Includes additional libraries and is not compatible with Chrome OS.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|appsFlyerId|boolean|true|The appsflyer id.|\n|enabled|boolean|true|Set to `true` to enable the feature.|\n\n#### LocationDelegationConfig\n\nDelegates the location permission dialog to the Android system, instead of showing the browser dialog. Recommended when the application requests the location permission, but not enabled by default as it includes additional dependencies in the application.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|enabled|boolean|true|Set to `true` to enable the feature.|\n\n#### PlayBillingConfig\n\nEnables the Play Billing integration in the application and allows the web application to [use the Digital Goods API to receive payments](https://developer.chrome.com/docs/android/trusted-web-activity/receive-payments-play-billing/). Includes additional dependencies in the Android app.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|enabled|boolean|true|Set to `true` to enable the feature.|\n\n#### FirstRunFlagConfig\n\nAdds an extra query parameter when launching the application, indicating if the application is run for the first time.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|enabled|boolean|true|Set to `true` to enable the feature.|\n|queryParameterName|string|true|The query parameter name used to attach the first run information to the `start-url`.|\n\n### AlphaDependencies\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|enabled|boolean|false|When set to `true` enables the application to use an alpha version of [`android-browser-helper`](https://github.com/GoogleChrome/android-browser-helper).|\n\n\n### SigningKeyInfo\n\nInformation on filesystem location and alias used to sign the Android application.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|path|string|true|Path to the keystore file in the local filesystem|\n|alias|string|true|Alias for the key used to sign the application in the keystore|\n\n### Fingerprint\n\nInformation on the signature fingerprints for the application. Use to generate the `assetlinks.json` file and managed by the `fingerprint` command.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|name|string|false|An optional name for the fingerprint.|\n|value|string|true|The SHA-256 value for the fingerprint.|\n\n\n### ProtocolHandlers\n\nList of Protocol Handlers registered for the application. These entries may not exactly match what was originally in the webmanifest, because they have been normalized and validated using [these](https://wicg.github.io/manifest-incubations/#processing-the-protocol_handlers-member) rules. If a webmanifest entry is incorrect for any reason (invalid protocol, malformed target url, missing '%s' token) they will be ignored and a warning will be printed out. See [here](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/protocol_handlers) for more information about the Protocol Handler spec. The full list of supported protocols is [here](https://github.com/GoogleChromeLabs/bubblewrap/blob/main/packages/core/src/lib/types/ProtocolHandler.ts).\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|protocol|string|true|Data scheme to register (e.g. `bitcoin`, `irc`, `web+coffee`).|\n|url|string|true|Formula for converting a custom data scheme back to a http(s) link, must include '%s' and be the same origin as the web manifest file. Example: `https://test.com/?target=%s`|\n\n### FileHandlers\n\nList of File Handlers registered for the application. These entries may not exactly match what was originally in the webmanifest. If a webmanifest entry is incorrect for any reason it will be ignored and a warning will be printed out. See [here](https://developer.chrome.com/docs/capabilities/web-apis/file-handling?hl=en) for more information about file handling and [here](https://wicg.github.io/manifest-incubations/#file_handlers-member) for file_handlers webmanifest spec.\n\n|Name|Type|Required|Description|\n|:--:|:--:|:------:|:---------:|\n|actionUrl|string|true|URL to be navigated to in case of file handler launch matching the according MIME types|\n|mimeTypes|string[]|true|The list of MIME types for the file handler|\n\n### LaunchHandler\nA string, which specifies the context in which the app should be loaded when launched. Possible values are: \"auto\", \"focus-existing\", \"navigate-existing\", \"navigate-new\".\nSee [launch_handler](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/launch_handler) for more information.\n\n\n## Manually setting up the Environment\n\n### Get the Java Development Kit (JDK) 11.\nThe Android Command line tools requires the correct version of the JDK to run. To prevent version\nconflicts with a JDK version that is already installed, Bubblewrap uses a JDK that can unzipped in\na separate folder.\n\nDownload a version of JDK 17 that is compatible with your OS from\n[Adoptium](https://adoptium.net/temurin/releases/?version=17&package=jdk)\nand extract it in its own folder.\n\n:warning: **Warning:** Using a version lower than 17 will make it impossible to compile the project and higher\nversions are incompatible with the Android command line tools.\n\n### Get the Android command line tools\nDownload a version of Android command line tools that is compatible with your OS from\n[https://developer.android.com/studio#command-line-tools-only](https://developer.android.com/studio#command-line-tools-only).\nCreate a folder and extract the downloaded file into it. This will further install the androidSdk and android SDK manager without needing to install the whole Android IDE.\n\n### Tell Bubblewrap where the JDK and Android command line tools are\nWhen running `bubblewrap` for the first time, it will ask where it can find the JDK and Android command\nline tools. So, take note of the location where both were decompressed.\n\nTo ensure if you are taking note of the correct location, check if each directory contains the following files:\n- On **Windows** and **Linux**, the correct **OpenJDK** path should contain `bin`, `include` ,`lib`, etc. On **MacOS**,\nthe directory should contain the `Contents` subdirectory.\n- The **AndroidSDK** path should contain `tools` which should have `bin`, `cli`\n\n### Updating the location of the JDK and / or the Android command line tools.\nIf the location for the JDK or the Android command line tools have been setup with the wrong path or\nif their location has changed after the initial configuration, the location for either of those can\nbe changed by editing the configuration file at `${USER_HOME}/.bubblewrap/config.json`.\n\n#### Sample config.json\n```\n{\n  \"jdkPath\":\"\\\\user\\\\home\\\\bubblewrap-user\\\\open-jdk\",\n  \"androidSdkPath\":\"\\\\user\\\\home\\\\bubblewrap-user\\\\android-cli\"\n }\n\n```\n*(Note : Make sure you don't have `spaces` in the androidSdkPath. Check [this link](https://stackoverflow.com/questions/37052934/android-sdk-location-should-not-contain-whitespace-as-this-cause-problems-with) for more details.)*\n\n## Contributing\n\nSee [CONTRIBUTING](../../CONTRIBUTING.md) for more.\n\n## License\n\nSee [LICENSE](../../LICENSE) for more.\n\n## Disclaimer\n\nThis is not a Google product.\n","readmeFilename":"README.md"}