Swift Package Manager Support: Add FlutterFramework Dependency

Đang mở Phù hợp với người mới
#343 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
flutter, swift
Lĩnh vực
mobile

Hướng nghiên cứu

Tìm tệp Package.swift của từng plugin và thêm các dependency của package và product FlutterFramework được nêu trong issue. Cập nhật phiên bản Flutter tối thiểu trong pubspec.yaml thành 3.41. Xem hướng dẫn migration được liên kết trong issue, sau đó xác minh rằng tất cả manifest của package và ràng buộc phiên bản đều khớp với hướng dẫn.

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

Mô tả

Hello,

Thank you for adding Swift Package Manager support to your plugin! Please also add the FlutterFramework dependency, as described in the updated migration guide. Future versions of Flutter will require this dependency.

  1. Add FlutterFramework to each of your plugin's Package.swift files:
    dependencies: [
+       .package(name: "FlutterFramework", path: "../FlutterFramework")
    ],
    targets: [
        .target(
            name: "plugin_name",
            dependencies: [
+               .product(name: "FlutterFramework", package: "FlutterFramework")
            ]
        )
    ]
  1. Raise your plugin's minimum Flutter version to at least 3.41 in pubspec.yaml:

    environment:
      sdk: ^3.11.0
      flutter: ">=3.41.0"
    

If you have questions, reach out in the #hackers-ios channel on Flutter's Discord or open a GitHub issue.

Thank you for your wonderful contributions to the Flutter ecosystem!

Ngôn ngữ chính
Dart
Star
180
Fork
145
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 google-pay/flutter-plugin

Tất cả issue của google-pay/flutter-plugin

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.