Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Run dcm checks on packages
# TODO(https://github.com/flutter/devtools/issues/9906): run on all DevTools packages.
run: |
dcm check-unused-code packages/devtools_app --exclude-public-api
dcm check-unused-code packages/devtools_app packages/devtools_shared --exclude-public-api

test-packages:
name: ${{ matrix.os }} ${{ matrix.package }} test
Expand Down
6 changes: 0 additions & 6 deletions packages/devtools_shared/lib/src/server/flutter_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ import 'file_system.dart';
/// Provides access to the local Flutter store (~/.flutter).
class FlutterStore {
static const storeName = '.flutter';
static const firstRunKey = 'firstRun';
static const gaEnabledKey = 'enabled';
static const flutterClientIdKey = 'clientId';

final properties = IOPersistentProperties(storeName);

bool get isFirstRun => properties[firstRunKey] == true;

bool get gaEnabled => properties[gaEnabledKey] == true;

String get flutterClientId =>
(properties[flutterClientIdKey] as String?) ?? '';
}
1 change: 1 addition & 0 deletions packages/devtools_shared/lib/src/utils/file_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import 'package:dtd/dtd.dart';
import 'package:meta/meta.dart';

// ignore: unused-code, false positive.
const _fileUriPrefix = 'file://';
Comment thread
kenzieschmoll marked this conversation as resolved.

/// Attempts to detect the package root of [fileUriString], which is expected to
Expand Down
Loading