【问题标题】:What “firebase init” feature to use for android and iOS projectsandroid 和 iOS 项目使用什么“firebase init”功能
【发布时间】:2020-07-14 08:19:59
【问题描述】:

我想设置我们现有的 android 和 iOS 项目以进行 firebase 测试部署,但我不知道我应该使用哪个 firebase init 选项,因为这些选项看起来都不是特别有用:

? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confirm your choices. (Press <space> to select, <a> to toggle all, <i> to invert selection)
❯◯ Database: Deploy Firebase Realtime Database Rules
 ◯ Firestore: Deploy rules and create indexes for Firestore
 ◯ Functions: Configure and deploy Cloud Functions
 ◯ Hosting: Configure and deploy Firebase Hosting sites
 ◯ Storage: Deploy Cloud Storage security rules
 ◯ Emulators: Set up local emulators for Firebase features

以前我们使用 crashlytics 来上传和分发测试应用程序。


更新 1: 澄清一下:我正在将 ./gradlew crashlyticsUploadDistribution… 任务迁移到新的 firebase 环境。

【问题讨论】:

    标签: android ios firebase deployment crashlytics


    【解决方案1】:

    Firebase CLI 对配置 Android 和 iOS 移动客户端没有帮助。您应该按照documentation 中每个平台的说明进行操作。这些说明不会以任何方式涉及 Firebase CLI。每个平台都有自己上传 crashlytics 符号的方式。

    【讨论】:

    • 我致力于持续部署而不是分析。对于手头的任务来说,不得不更改代码感觉有点不对劲。
    • 我相信您可以编写一些脚本来根据您的 CI/CD 系统的要求配置您的移动客户端。
    【解决方案2】:

    你不需要firebase init,它有不同的用途。

    你需要firebase login:ci

    您可以在这里阅读更多内容: https://firebase.google.com/docs/cli#install_the_firebase_cli

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-30
      • 1970-01-01
      • 2019-01-15
      • 2018-11-17
      相关资源
      最近更新 更多