Skip to content

Commit

Permalink
update freezed generated code; use real freezed_annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameri11 committed Sep 30, 2024
1 parent ddedef3 commit 36e6338
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 40 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:collection/collection.dart';
import 'package:devtools_app_shared/service.dart';
import 'package:flutter/foundation.dart';
import 'package:vm_service/vm_service.dart';

import 'fake_freezed_annotation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'result.dart';

// This part is generated using `package:freezed`, but without the devtool depending
// on the package.
// To update the generated files, temporarily add freezed/freezed_annotation/build_runner
// as dependencies; replace the `fake_freezed_annotation.dart` import with the
// real annotation package, then execute `pub run build_runner build`.
part 'instance_details.freezed.dart';

typedef Setter = Future<void> Function(String newValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:collection/collection.dart';
import 'package:devtools_app_shared/service.dart';
import 'package:flutter/foundation.dart';
import 'package:vm_service/vm_service.dart' hide SentinelException, Error;

import 'fake_freezed_annotation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

// This part is generated using `package:freezed`, but without the devtool depending
// on the package.
// To update the generated files, temporarily add freezed/freezed_annotation/build_runner
// as dependencies; replace the `fake_freezed_annotation.dart` import with the
// real annotation package, then execute `pub run build_runner build`.
part 'result.freezed.dart';

@freezed
Expand Down
3 changes: 3 additions & 0 deletions packages/provider_devtools_extension/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
flutter_riverpod: ^2.5.1
logging: ^1.1.1
vm_service: ^14.2.5
freezed_annotation: ^2.4.4

dev_dependencies:
flutter_driver:
Expand All @@ -27,6 +28,8 @@ dev_dependencies:
integration_test:
sdk: flutter
mockito: ^5.4.4
freezed: ^2.5.7
build_runner: ^2.4.12

flutter:
uses-material-design: true

0 comments on commit 36e6338

Please sign in to comment.