firebase / flutterfire

πŸ”₯ A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.71k stars 3.97k forks source link

πŸ› Firebase Messaging 11.2.8 should be a breaking change (12.0.0) because it breaks support for the flutter 2.8 #8207

Closed Hexagonale closed 2 years ago

Hexagonale commented 2 years ago

Bug report

Version 11.2.8 is not backward compatible like semantic versioning implies (major.minor.patch). This breaks apps built with flutter 2.8.1 that use (e.g) firebase_messaging: ^11.2.5 in their pubspec. Because ^ allows upgrading plugin version to a newer NON-BREAKING version. As 11.2.8 is marked as non-breaking by only increasing patch version, it breaks app compilation. It's caused by 11.2.8 requiring dart sdk available only since the flutter 2.10.

Steps to reproduce

Steps to reproduce the behavior:

  1. Install flutter 2.8.1
  2. Add firebase_messaging: ^11.2.5 under dependencies to pubspec.yaml
  3. App compilation (tested on ios) fails with an dart code error (Error: Member not found: 'Error.throwWithStackTrace')

Expected behavior

App should build properly because every 11.X.X version should be compatible with flutter 2.8.

Sample project

Any project with flutter 2.8.1 and firebase_messaging: ^11.2.5 should be able to reproduce this issue.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` Doctor summary (to see all details, run flutter doctor -v): [βœ“] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-US) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.2) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [βœ“] Xcode - develop for iOS and macOS (Xcode 13.2.1) [βœ“] Chrome - develop for the web [!] Android Studio (not installed) [βœ“] VS Code (version 1.64.2) [βœ“] Connected device (3 available) ! Doctor found issues in 2 categories. ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand All internal libs are replaced with `internal_lib` ``` Dart SDK 2.15.1 Flutter SDK 2.8.1 my_app 8.1.1+123 dependencies: - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib equatable internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib equatable internal_lib internal_lib internal_lib internal_lib internal_lib flutter json_annotation rxdart internal_lib] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - bot_toast 4.0.1 [flutter] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - clock 1.1.0 - collection 1.15.0 - internal_lib 1.0.0 [connectivity_plus equatable internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib equatable internal_lib internal_lib flutter internal_lib rxdart internal_lib internal_lib internal_lib] - internal_lib 1.0.0 [equatable device_info_plus pointycastle internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib_tbr internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [equatable internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [equatable internal_lib internal_lib internal_lib flutter rxdart] - equatable 2.0.3 [collection meta] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [flutter] - internal_lib 1.1.0 [internal_lib flutter path_provider] - internal_lib 1.1.0 [clock equatable internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.1.0 [internal_lib internal_lib flutter http] - internal_lib 1.1.0 [internal_lib internal_lib local_auth] - internal_lib 1.1.0 [equatable rxdart] - internal_lib 1.2.0 [characters clock collection equatable internal_lib internal_lib internal_lib flutter json_annotation meta phone_number phonenumbers uuid] - internal_lib 1.3.0 [internal_lib internal_lib internal_lib internal_lib flutter json_annotation meta mqtt_client rxdart uuid] - internal_lib3_versioning 1.1.0 [internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.2.0 [clock equatable internal_lib internal_lib internal_lib internal_lib flutter json_annotation] - internal_lib 1.1.0 [internal_lib internal_lib internal_lib flutter shared_preferences] - internal_lib 1.1.0 [bot_toast internal_lib flutter] - internal_lib 1.1.0 [internal_lib flutter] - internal_lib 1.1.0 [equatable internal_lib internal_lib flare_flutter flutter flutter_svg] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - firebase_analytics 8.3.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core flutter meta] - firebase_core 1.12.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_dynamic_links 4.0.6 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface] - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine] - flutter_bloc 7.3.3 [flutter bloc provider] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - geocoding 2.0.2 [flutter geocoding_platform_interface] - get_it 7.2.0 [async collection] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - intl 0.17.0 [clock path] - internal_lib 1.0.0 [internal_lib internal_lib flutter flutter_test rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [clock equatable internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [equatable internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - qr_code_scanner 0.5.2 [js flutter flutter_web_plugins] - rxdart 0.27.3 - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.1.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart uuid] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib flutter rxdart] - sentry_flutter 5.1.0 [flutter flutter_web_plugins sentry package_info_plus] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [clock equatable json_annotation internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [device_info_plus equatable async internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart internal_lib] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart internal_lib] - sticky_headers 0.2.0 [flutter] - internal_lib 1.0.0 [internal_lib equatable internal_lib internal_lib internal_lib internal_lib flutter internal_lib rxdart internal_lib internal_lib internal_lib] - internal_lib 1.0.0 [flutter_local_notifications firebase_messaging device_info_plus internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] - timeago 3.2.2 - internal_lib 1.0.0 [equatable internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart collection] - internal_lib 1.0.0 [internal_lib equatable internal_lib internal_lib internal_lib internal_lib3_versioning flutter rxdart] - internal_lib_tbr 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib flutter rxdart] - webview_flutter 2.8.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - internal_lib 1.0.0 [internal_lib internal_lib_tbr internal_lib internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib flutter rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter json_annotation rxdart] - internal_lib 1.0.0 [internal_lib internal_lib internal_lib internal_lib internal_lib internal_lib flutter rxdart] dev dependencies: - args 2.3.0 - bloc_test 8.5.0 [bloc diff_match_patch meta mocktail test] - build_runner 2.1.7 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - fake_async 1.2.0 [clock collection] - internal_lib 1.0.0 [flutter_lints] - flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data] - json_annotation 4.4.0 [meta] - json_serializable 6.1.4 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper] - mockito 5.1.0 [analyzer build code_builder collection dart_style matcher meta path source_gen test_api] - process 4.2.4 [file path platform] transitive dependencies: - _fe_analyzer_shared 31.0.0 [meta] - analyzer 2.8.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.2.1 [crypto path] - async 2.8.2 [collection meta] - bloc 7.2.1 [meta] - boolean_selector 2.1.0 [source_span string_scanner] - build 2.2.1 [analyzer async convert crypto glob logging meta path] - build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 3.0.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.0.6 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.3 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.1.4 [built_collection collection fixnum meta] - characters 1.2.0 - charcode 1.3.1 - checked_yaml 2.0.1 [json_annotation source_span yaml] - cli_util 0.3.5 [meta path] - code_builder 4.1.0 [built_collection built_value collection matcher meta] - connectivity_plus 2.2.1 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows] - connectivity_plus_linux 1.3.0 [flutter connectivity_plus_platform_interface meta nm] - connectivity_plus_macos 1.2.1 [connectivity_plus_platform_interface flutter] - connectivity_plus_platform_interface 1.2.0 [flutter meta plugin_platform_interface] - connectivity_plus_web 1.2.0 [connectivity_plus_platform_interface flutter_web_plugins flutter] - connectivity_plus_windows 1.2.0 [connectivity_plus_platform_interface flutter] - convert 3.0.1 [typed_data] - coverage 1.0.3 [args logging package_config path source_maps stack_trace vm_service] - crypto 3.0.1 [collection typed_data] - dart_style 2.2.1 [analyzer args path pub_semver source_span] - dbus 0.7.1 [args ffi meta xml] - device_info_plus 3.2.2 [flutter device_info_plus_platform_interface device_info_plus_macos device_info_plus_linux device_info_plus_web device_info_plus_windows] - device_info_plus_linux 2.1.1 [device_info_plus_platform_interface file flutter meta] - device_info_plus_macos 2.2.2 [device_info_plus_platform_interface flutter] - device_info_plus_platform_interface 2.3.0+1 [flutter meta plugin_platform_interface] - device_info_plus_web 2.1.0 [device_info_plus_platform_interface flutter_web_plugins flutter] - device_info_plus_windows 2.1.1 [device_info_plus_platform_interface ffi flutter win32] - diff_match_patch 0.4.1 - event_bus 2.0.0 - ffi 1.1.2 - internal_lib 1.1.0 [flutter] - internal_lib 1.0.0 [protobuf grpc] - internal_lib 1.1.0 [equatable internal_lib internal_lib flutter json_annotation] - internal_lib 1.1.0 [internal_lib flutter flutter_secure_storage] - internal_lib 1.1.0 [characters device_info_plus equatable internal_lib flutter flutter_bloc grpc package_info_plus rxdart share url_launcher] - file 6.1.2 [meta path] - firebase 9.0.2 [http http_parser js] - firebase_analytics_platform_interface 2.0.1 [flutter meta] - firebase_analytics_web 0.3.0+1 [firebase firebase_analytics_platform_interface flutter flutter_web_plugins meta] - firebase_core_platform_interface 4.2.4 [collection flutter meta plugin_platform_interface] - firebase_core_web 1.6.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_dynamic_links_platform_interface 0.2.0+5 [firebase_core flutter meta plugin_platform_interface] - firebase_messaging 11.2.6 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_messaging_platform_interface 3.2.0 [firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 2.2.8 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.0.0 - flare_flutter 3.0.2 [collection flutter meta] - flutter_lints 1.0.4 [lints] - flutter_local_notifications 9.3.3 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone] - flutter_local_notifications_linux 0.4.2 [flutter flutter_local_notifications_platform_interface dbus path xdg_directories] - flutter_local_notifications_platform_interface 5.0.0 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.5 [flutter] - flutter_secure_storage 4.2.1 [meta flutter] - flutter_svg 0.22.0 [flutter meta path_drawing vector_math xml] - flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math] - frontend_server_client 2.1.2 [async path] - geocoding_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - glob 2.0.2 [async collection file path string_scanner] - googleapis_auth 1.3.0 [crypto http http_parser] - graphs 2.1.0 [collection] - grpc 3.0.2 [archive async crypto fixnum googleapis_auth meta http http2 protobuf] - http 0.13.4 [async http_parser meta path] - http2 2.0.0 - http_multi_server 3.2.0 [async] - http_parser 4.0.0 [charcode collection source_span string_scanner typed_data] - io 1.0.3 [meta path string_scanner] - js 0.6.3 - lints 1.0.1 - local_auth 1.1.11 [flutter flutter_plugin_android_lifecycle intl platform] - logging 1.0.2 - matcher 0.12.11 [stack_trace] - meta 1.7.0 - mime 1.0.1 - mocktail 0.2.0 [collection matcher test] - mqtt_client 9.6.5 [typed_data event_bus path crypto meta] - nested 1.0.0 [flutter] - nm 0.5.0 [dbus] - node_preamble 2.0.1 - package_config 2.0.2 [path] - package_info_plus 1.4.0 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web] - package_info_plus_linux 1.0.3 [package_info_plus_platform_interface flutter path] - package_info_plus_macos 1.3.0 [flutter] - package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface] - package_info_plus_web 1.0.4 [flutter flutter_web_plugins http meta package_info_plus_platform_interface] - package_info_plus_windows 1.0.4 [package_info_plus_platform_interface ffi flutter win32] - path 1.8.0 - path_drawing 0.5.1+1 [vector_math meta path_parsing flutter] - path_parsing 0.2.1 [vector_math meta] - path_provider 2.0.9 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows] - path_provider_android 2.0.12 [flutter path_provider_platform_interface] - path_provider_ios 2.0.8 [flutter path_provider_platform_interface] - path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_macos 2.0.5 [flutter path_provider_platform_interface] - path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface] - path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32] - pedantic 1.11.1 - petitparser 4.4.0 [meta] - phone_number 0.12.0+1 [flutter meta] - phonenumbers 1.1.0 [flutter phonenumbers_core] - phonenumbers_core 1.0.0 [quiver] - platform 3.1.0 - plugin_platform_interface 2.1.2 [meta] - pointycastle 3.5.1 [collection convert js] - pool 1.5.0 [async stack_trace] - protobuf 2.0.1 [fixnum collection] - provider 6.0.2 [collection flutter nested] - pub_semver 2.1.0 [collection meta] - pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml] - quiver 3.0.1+1 [matcher] - sentry 5.1.0 [http meta stack_trace uuid] - share 2.0.4 [meta mime flutter] - shared_preferences 2.0.13 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shared_preferences_android 2.0.11 [flutter shared_preferences_platform_interface] - shared_preferences_ios 2.1.0 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.1.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_macos 2.0.3 [flutter shared_preferences_platform_interface] - shared_preferences_platform_interface 2.0.0 [flutter] - shared_preferences_web 2.0.3 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.1.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf 1.2.0 [async collection http_parser path stack_trace stream_channel] - shelf_packages_handler 3.0.0 [path shelf shelf_static] - shelf_static 1.1.0 [convert http_parser mime path shelf] - shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - source_gen 1.2.1 [analyzer async build dart_style glob meta path source_span yaml] - source_helper 1.3.1 [analyzer collection source_gen] - source_map_stack_trace 2.1.0 [path stack_trace source_maps] - source_maps 0.10.10 [source_span] - source_span 1.8.1 [collection path term_glyph] - stack_trace 1.10.0 [path] - stream_channel 2.1.0 [async] - stream_transform 2.0.0 - string_scanner 1.1.0 [charcode source_span] - term_glyph 1.2.0 - test 1.17.12 [analyzer async boolean_selector collection coverage http_multi_server io js node_preamble package_config path pedantic pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core] - test_api 0.4.3 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - test_core 0.4.2 [analyzer async args boolean_selector collection coverage frontend_server_client glob io meta package_config path pedantic pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml matcher test_api] - timezone 0.8.0 [path] - timing 1.0.0 [json_annotation] - typed_data 1.3.0 [collection] - url_launcher 6.0.20 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - url_launcher_android 6.0.15 [flutter url_launcher_platform_interface] - url_launcher_ios 6.0.15 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.0 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.0.5 [flutter plugin_platform_interface] - url_launcher_web 2.0.6 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.0 [flutter url_launcher_platform_interface] - uuid 3.0.6 [crypto] - vector_math 2.1.1 - vm_service 7.5.0 - watcher 1.0.1 [async path] - web_socket_channel 2.1.0 [async crypto stream_channel] - webkit_inspection_protocol 1.0.0 [logging] - webview_flutter_android 2.8.3 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 1.8.1 [flutter plugin_platform_interface] - webview_flutter_wkwebview 2.7.1 [flutter webview_flutter_platform_interface] - win32 2.4.1 [ffi] - xdg_directories 0.2.0+1 [meta path process] - xml 5.3.1 [collection meta petitparser] - yaml 3.1.0 [collection source_span string_scanner] ```

rrousselGit commented 2 years ago

I don't agree with that qualifying as a breaking change.

The Dart source code did not change in a way that broke the existing tests. The only difference is the version resolution

The real issue here is that pub isn't respecting version constraints. Pub should be able to detect that your app is using Dart <2.16 and as such ignore the new release

That's how it works for dependencies. It's just somehow ignoring environment

rrousselGit commented 2 years ago

I've raised an issue about it on pub. We'll see https://github.com/dart-lang/pub/issues/3323

Hexagonale commented 2 years ago

I'm not sure if this issue is correct. Constraints in my pubspec:

environment:
  sdk: ">=2.13.4 <3.0.0"
  flutter: "2.8.1"
sigurdm commented 2 years ago

If I run flutter 2.8.1

$ flutter pub get
#pubspec.yaml
name: test

environment:
  sdk: ">=2.13.0 <3.0.0"
  flutter: "2.8.1"

dependencies:
  firebase_messaging: ^11.2.5

I get firebase_messaging 11.2.7 not 11.2.8, so I think all is good here!

Hexagonale commented 2 years ago

Yeah, my dependency tree is a little bit complicated app => internal library => firebase messaging. It's probably some strange edge case and I can agree with @rrousselGit that it's not 100% breaking change, so I'm closing this issue. Thanks πŸ™‚