Skip to content

Commit

Permalink
Improve flutter backwards compatibility for devtools_app_shared (#6632
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kenzieschmoll authored Nov 1, 2023
1 parent d5ce5a8 commit 49e6ff9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/devtools_app_shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 0.0.7
* Soften breaking change from 0.0.6 to add the `profilePlatformChannels` service extension,
improving backwards compatibility for older versions of Flutter.
* Bump the `devtools_shared` dependency to ^5.0.0
* Remove public getter `libraryRef`, and public methods `getLibrary` and `retrieveFullValueAsString` from `EvalOnDartLibrary`.
* Change `toString` output for `UnknownEvalException`, `EvalSentinelException`, and `EvalErrorException`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter/services.dart';

class ServiceExtension<T> {
ServiceExtension({
Expand Down Expand Up @@ -217,8 +216,10 @@ final trackRebuildWidgets = ToggleableServiceExtension<bool>(
);

final profilePlatformChannels = ToggleableServiceExtension<bool>(
extension:
'$flutterExtensionPrefix${ServicesServiceExtensions.profilePlatformChannels.name}',
// TODO(kenz): use ${ServicesServiceExtensions.profilePlatformChannels.name}
// once this enum value has existed on Flutter stable for a reasonable amount
// of time (6 months, or June 2024).
extension: '${flutterExtensionPrefix}profilePlatformChannels',
enabledValue: true,
disabledValue: false,
);
Expand Down

0 comments on commit 49e6ff9

Please sign in to comment.