@altabsrl/nativescript-firebase-env
为 nativescript-firebase 提供单独的环境
npm i --save @altabsrl/nativescript-firebase-env

Nativescript Firebase Env

为 nativescript-firebase 提供单独的环境

设置

对于 iOS,您可以将您的 GoogleService-Info.plist.devGoogleService-Info.plist.prod 放置在项目根目录。对于 Android,您可以将您的 google-services.json.devgoogle-services.json.prod 放置在项目根目录。

构建

此插件的构建钩子现在将根据您的构建方式选择您的 Google 服务 plistjson 文件的 devprod 版本

  • 如果您不使用 --env.production 运行,将选择 dev
  • 如果您使用 --env.production 运行,将选择 prod