Sync analysis_options.yaml & cleanups (#117327)
This commit is contained in:
committed by
GitHub
parent
81bc54be75
commit
fdd2d7d64a
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
part of reporting;
|
||||
part of 'reporting.dart';
|
||||
|
||||
/// The collection of custom dimensions understood by the analytics backend.
|
||||
/// When adding to this list, first ensure that the custom dimension is
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
part of reporting;
|
||||
part of 'reporting.dart';
|
||||
|
||||
class DisabledUsage implements Usage {
|
||||
@override
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
part of reporting;
|
||||
part of 'reporting.dart';
|
||||
|
||||
/// A generic usage even that does not involve custom dimensions.
|
||||
///
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
part of reporting;
|
||||
part of 'reporting.dart';
|
||||
|
||||
const String _kFlutterUA = 'UA-67589403-6';
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import 'package:flutter_tools/src/android/android_studio.dart';
|
||||
import 'package:flutter_tools/src/android/android_workflow.dart';
|
||||
import 'package:flutter_tools/src/base/file_system.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/os.dart';
|
||||
import 'package:flutter_tools/src/base/platform.dart';
|
||||
import 'package:flutter_tools/src/base/user_messages.dart';
|
||||
import 'package:flutter_tools/src/base/version.dart';
|
||||
@@ -571,20 +570,6 @@ class FakeAndroidSdkVersion extends Fake implements AndroidSdkVersion {
|
||||
String get platformName => '';
|
||||
}
|
||||
|
||||
class CustomFakeOperatingSystemUtils extends Fake implements OperatingSystemUtils {
|
||||
CustomFakeOperatingSystemUtils({
|
||||
HostPlatform hostPlatform = HostPlatform.linux_x64
|
||||
}) : _hostPlatform = hostPlatform;
|
||||
|
||||
final HostPlatform _hostPlatform;
|
||||
|
||||
@override
|
||||
String get name => 'Linux';
|
||||
|
||||
@override
|
||||
HostPlatform get hostPlatform => _hostPlatform;
|
||||
}
|
||||
|
||||
class FakeAndroidStudio extends Fake implements AndroidStudio {
|
||||
@override
|
||||
String get javaPath => 'java';
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:flutter_tools/src/base/logger.dart';
|
||||
import 'package:flutter_tools/src/base/project_migrator.dart';
|
||||
import 'package:flutter_tools/src/base/terminal.dart';
|
||||
import 'package:flutter_tools/src/cmake_project.dart';
|
||||
import 'package:flutter_tools/src/migrations/cmake_custom_command_migration.dart';
|
||||
@@ -165,16 +164,3 @@ class FakeCmakeProject extends Fake implements CmakeBasedProject {
|
||||
@override
|
||||
final File managedCmakeFile;
|
||||
}
|
||||
|
||||
class FakeCmakeMigrator extends ProjectMigrator {
|
||||
FakeCmakeMigrator()
|
||||
: super(BufferLogger.test());
|
||||
|
||||
@override
|
||||
void migrate() { }
|
||||
|
||||
@override
|
||||
String migrateLine(String line) {
|
||||
return line;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user