Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

request: support multiple ios-build-config values

Đang mở
#322 4 bình luận 8 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
dart, firebase, flutter, ios
Lĩnh vực
cli, mobile

Hướng nghiên cứu

Bắt đầu từ lệnh flutterfire configure và theo dõi cách --ios-build-config được phân tích cũng như cách các mục buildConfigurations của iOS được tạo trong firebase.json. Xác nhận rằng các cấu hình được phân tách bằng dấu phẩy tạo ra các mục giống hệt nhau, đồng thời duy trì hành vi đã được ghi nhận cho một cấu hình duy nhất, sau đó kiểm tra cấu trúc firebase.json thu được.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement keep open Needs Attention
Is there an existing feature request for this?
  • I have searched the existing issues.
Command

flutterfire configure

Description

Currently, if you have more than a single build configuration for your iOs project you are required to run the flutterfire configure command multiple times. From the documentation:

You need to run flutterfire configure for every configuration type. E.g. if you have Debug & Release configurations, you need to run flutterfire configure twice with the relevant arguments documented below.

If you are sharing the same configuration for different iOs build configurations. For example if the project has the following build configurations: Debug-dev, Profile-dev and Release-dev. Then, it would be very convenient to simply run once:

flutterfire configure --project my_project --ios-build-config Debug-dev,Profile-dev,Release-dev --ios-bundle-id com.example.project.dev --ios-out ios/Runner/development --platforms ios

Hence, I would expect the above command to create three identical entries in the firebase.json file, equivalent to when its run multiple times with different ios-build-configs:

{
  "flutter": {
    "platforms": {
      "ios": {
        "buildConfigurations": {
          "Debug-dev": {
            "projectId": "my_project",
            "appId": "1",
            "uploadDebugSymbols": false,
            "fileOutput": "ios/Runner/development/GoogleService-Info.plist"
          },
          "Profile-dev": {
            "projectId": "my_project",
            "appId": "1",
            "uploadDebugSymbols": false,
            "fileOutput": "ios/Runner/development/GoogleService-Info.plist"
          },
          "Release-dev": {
            "projectId": "my_project",
            "appId": "1",
            "uploadDebugSymbols": false,
            "fileOutput": "ios/Runner/development/GoogleService-Info.plist"
          },
        }
      }
    }
  }
}

Reasoning

It is easier to run the command once rather than running it multiple times and changing the --ios-build-config each time with the same configuration.

For example, consider projects that have 3 Schemas (production, release, development) each with 3 Build Configurations (Profile, Debug, Release), a user of the FlutterFire CLI would have to run the command 9 times! Each time modifying the --ios-build-config instead of simply running it 3 times (one per schema, each schema having its own Firebase project configuration).

Additional context and comments

No response

Ngôn ngữ chính
Dart
Star
194
Fork
76
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của invertase/flutterfire_cli

Tất cả issue của invertase/flutterfire_cli

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.