зеркало из https://github.com/microsoft/rnx-kit.git
…
|
||
---|---|---|
.. | ||
src | ||
CHANGELOG.md | ||
README.md | ||
eslint.config.js | ||
package.json | ||
tsconfig.json |
README.md
@rnx-kit/build-plugin-firebase
🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧
This tool is EXPERIMENTAL - USE WITH CAUTION
🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧
Firebase plugin for @rnx-kit/build
.
Installation
yarn add @rnx-kit/build @rnx-kit/build-plugin-firebase --dev
or if you're using npm
npm add --save-dev @rnx-kit/build @rnx-kit/build-plugin-firebase
Usage
Configure Firebase App Distribution by adding an rnx-kit.build.distribution
section in package.json
like in the following example:
{
...
"rnx-kit": {
"build": {
"distribution": [
"@rnx-kit/build-plugin-firebase",
{
"appId": {
"android": "1:1234567890:android:0a1b2c3d4e5f67890",
"ios": "1:1234567890:android:0a1b2c3d4e5f67890"
}
}
]
},
}
}
Next, you need to create a
service account
with the Firebase App Distribution Admin role, and create a private JSON
key. Once a key is created and downloaded, base64 it and store it as a secret,
GOOGLE_APPLICATION_CREDENTIALS_BASE64
, on your project host.
If you're using GitHub, store it as an encrypted secret: https://docs.github.com/en/actions/security-guides/encrypted-secrets
Contributors' Notes
TODO
- Figure out a way to generate direct download links