@hot-updater/firebase 1.0.0-rc.2 → 1.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7971,7 +7971,7 @@ const prepareFirebaseTemplate = async (firebaseRootDir) => {
7971
7971
  };
7972
7972
  };
7973
7973
  //#endregion
7974
- //#region iac/select.ts
7974
+ //#region iac/configTemplate.ts
7975
7975
  const getConfigScaffold = (build) => {
7976
7976
  const storageConfig = {
7977
7977
  imports: [{
@@ -7999,9 +7999,9 @@ const getConfigScaffold = (build) => {
7999
7999
  strategy: "preserve-existing",
8000
8000
  code: `
8001
8001
  // https://firebase.google.com/docs/admin/setup?hl=en#initialize_the_sdk_in_non-google_environments
8002
- // Check your .env.hotupdater file and add the credentials
8003
- // Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to your credentials file path
8004
- // Example: GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
8002
+ // Reuse working application-default credentials (ADC).
8003
+ // Only when a credential file is needed, set its private local path in .env.hotupdater:
8004
+ // GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
8005
8005
  const credential = applicationDefault();`.trim()
8006
8006
  }];
8007
8007
  const builder = new _hot_updater_cli_tools.ConfigBuilder().setBuildType(build).setStorage(storageConfig).setDatabase(databaseConfig).addImport({
@@ -8010,6 +8010,8 @@ const credential = applicationDefault();`.trim()
8010
8010
  }).setIntermediateCode(helperStatements.map((statement) => statement.code.trim()).join("\n\n"));
8011
8011
  return (0, _hot_updater_cli_tools.createHotUpdaterConfigScaffoldFromBuilder)(builder, { helperStatements });
8012
8012
  };
8013
+ //#endregion
8014
+ //#region iac/select.ts
8013
8015
  const setEnv = async ({ applicationCredentials, projectId, storageBucket, build, region }) => {
8014
8016
  await (0, _hot_updater_cli_tools.makeEnv)({
8015
8017
  [initProvider.inputs.applicationCredentials.envKey]: {
@@ -7964,7 +7964,7 @@ const prepareFirebaseTemplate = async (firebaseRootDir) => {
7964
7964
  };
7965
7965
  };
7966
7966
  //#endregion
7967
- //#region iac/select.ts
7967
+ //#region iac/configTemplate.ts
7968
7968
  const getConfigScaffold = (build) => {
7969
7969
  const storageConfig = {
7970
7970
  imports: [{
@@ -7992,9 +7992,9 @@ const getConfigScaffold = (build) => {
7992
7992
  strategy: "preserve-existing",
7993
7993
  code: `
7994
7994
  // https://firebase.google.com/docs/admin/setup?hl=en#initialize_the_sdk_in_non-google_environments
7995
- // Check your .env.hotupdater file and add the credentials
7996
- // Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to your credentials file path
7997
- // Example: GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
7995
+ // Reuse working application-default credentials (ADC).
7996
+ // Only when a credential file is needed, set its private local path in .env.hotupdater:
7997
+ // GOOGLE_APPLICATION_CREDENTIALS=./firebase-adminsdk-credentials.json
7998
7998
  const credential = applicationDefault();`.trim()
7999
7999
  }];
8000
8000
  const builder = new ConfigBuilder().setBuildType(build).setStorage(storageConfig).setDatabase(databaseConfig).addImport({
@@ -8003,6 +8003,8 @@ const credential = applicationDefault();`.trim()
8003
8003
  }).setIntermediateCode(helperStatements.map((statement) => statement.code.trim()).join("\n\n"));
8004
8004
  return createHotUpdaterConfigScaffoldFromBuilder(builder, { helperStatements });
8005
8005
  };
8006
+ //#endregion
8007
+ //#region iac/select.ts
8006
8008
  const setEnv = async ({ applicationCredentials, projectId, storageBucket, build, region }) => {
8007
8009
  await makeEnv({
8008
8010
  [initProvider.inputs.applicationCredentials.envKey]: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/firebase",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.2",
4
+ "version": "1.0.0-rc.3",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "types": "dist/index.d.cts",