diff --git a/packages/devtools_shared/CHANGELOG.md b/packages/devtools_shared/CHANGELOG.md index dfa4e232fd9..d0ac7b6c111 100644 --- a/packages/devtools_shared/CHANGELOG.md +++ b/packages/devtools_shared/CHANGELOG.md @@ -3,6 +3,13 @@ Copyright 2025 The Flutter Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd. --> +# 12.1.0 +* Adds additional logging to `IntegrationTestRunner`. +* Fixes assertion error when parsing Flutter channel versions using the format `X.XX.X-X.X.pre-XXX`. +* Fixes breakage associated with ChromeDriver 138 when using `IntegrationTestRunner`. +* Adds `sanitizeVersionStr` helper to `SemanticVersion`. +* Fixes null error when parsing `bundleIdentifier` or `teamIndentifier` in `UniversalLinkSettings`. + # 12.0.0 * Update `dtd` dependency to `^4.0.0`. * Register and unregister VM service connections on DTD. This change only diff --git a/packages/devtools_shared/lib/src/deeplink/universal_link_settings.dart b/packages/devtools_shared/lib/src/deeplink/universal_link_settings.dart index 0cc78b5a96a..4e3a7b04c41 100644 --- a/packages/devtools_shared/lib/src/deeplink/universal_link_settings.dart +++ b/packages/devtools_shared/lib/src/deeplink/universal_link_settings.dart @@ -21,10 +21,11 @@ extension type const UniversalLinkSettings._(Map _json) { }); /// The bundle identifier of the iOS build of this Flutter project. - String? get bundleIdentifier => _json[_kBundleIdentifierKey] as String?; + String get bundleIdentifier => + (_json[_kBundleIdentifierKey] as String?) ?? ''; /// The team identifier of the iOS build of this Flutter project. - String? get teamIdentifier => _json[_kTeamIdentifierKey] as String?; + String get teamIdentifier => (_json[_kTeamIdentifierKey] as String?) ?? ''; /// The associated domains of the iOS build of this Flutter project. List get associatedDomains => diff --git a/packages/devtools_shared/lib/src/test/io_utils.dart b/packages/devtools_shared/lib/src/test/io_utils.dart index 65180feb332..eb1b5c8353d 100644 --- a/packages/devtools_shared/lib/src/test/io_utils.dart +++ b/packages/devtools_shared/lib/src/test/io_utils.dart @@ -94,11 +94,11 @@ mixin IOMixin { Process.killPid(processId); return process.exitCode.timeout( killTimeout, - onTimeout: () => _killForcefully(process, debugLogging: debugLogging), + onTimeout: () => killForcefully(process, debugLogging: debugLogging), ); } - Future _killForcefully( + Future killForcefully( Process process, { bool debugLogging = false, }) { diff --git a/packages/devtools_shared/pubspec.yaml b/packages/devtools_shared/pubspec.yaml index 7dad9cd2821..d9b56803d77 100644 --- a/packages/devtools_shared/pubspec.yaml +++ b/packages/devtools_shared/pubspec.yaml @@ -4,7 +4,7 @@ name: devtools_shared description: Package of shared Dart structures between devtools_app, dds, and other tools. -version: 12.0.0 +version: 12.1.0 repository: https://github.com/flutter/devtools/tree/master/packages/devtools_shared diff --git a/packages/devtools_shared/test/deeplink/universal_link_settings_test.dart b/packages/devtools_shared/test/deeplink/universal_link_settings_test.dart index 15a56adb54c..ec15bcd1e68 100644 --- a/packages/devtools_shared/test/deeplink/universal_link_settings_test.dart +++ b/packages/devtools_shared/test/deeplink/universal_link_settings_test.dart @@ -29,7 +29,7 @@ void main() { } '''; final settings = UniversalLinkSettings.fromJson(json); - expect(settings.bundleIdentifier, isNull); + expect(settings.bundleIdentifier, isEmpty); expect(settings.teamIdentifier, 'TEAMID'); expect(settings.associatedDomains, ['applinks:example.com']); }); @@ -43,7 +43,7 @@ void main() { '''; final settings = UniversalLinkSettings.fromJson(json); expect(settings.bundleIdentifier, 'com.example.app'); - expect(settings.teamIdentifier, isNull); + expect(settings.teamIdentifier, isEmpty); expect(settings.associatedDomains, ['applinks:example.com']); }); });