rnx-kit/incubator/build-plugin-firebase
Tommy Nguyen dd8389bcec
fix(align-deps): add profile for 0.76 (#3391)
2024-10-28 16:21:34 +01:00
..
src fix(align-deps): add profile for 0.76 (#3391) 2024-10-28 16:21:34 +01:00
CHANGELOG.md RELEASING: Releasing 4 package(s) (#3183) 2024-06-07 12:08:09 +02:00
README.md ci: migrate to `align-deps` (#1960) 2022-10-24 13:38:21 +02:00
eslint.config.js chore: fix `lint` command to include more files (#2865) 2023-11-30 18:02:19 +01:00
package.json fix(deps): update eslint (major) (#3394) 2024-10-17 14:41:52 +00:00
tsconfig.json feat(tsconfig): base TypeScript configs for working with Node (#2886) 2023-12-18 12:05:07 +01:00

README.md

@rnx-kit/build-plugin-firebase

Build npm version

🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧

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