Prepare more of dev for use_super_parameters (#101073)
This commit is contained in:
committed by
GitHub
parent
75baed585e
commit
ca2d60e8e2
@@ -74,12 +74,9 @@ class NextContext extends Context {
|
||||
const NextContext({
|
||||
required this.autoAccept,
|
||||
required this.force,
|
||||
required Checkouts checkouts,
|
||||
required File stateFile,
|
||||
}) : super(
|
||||
checkouts: checkouts,
|
||||
stateFile: stateFile,
|
||||
);
|
||||
required super.checkouts,
|
||||
required super.stateFile,
|
||||
});
|
||||
|
||||
final bool autoAccept;
|
||||
final bool force;
|
||||
|
||||
@@ -467,26 +467,20 @@ abstract class Repository {
|
||||
class FrameworkRepository extends Repository {
|
||||
FrameworkRepository(
|
||||
this.checkouts, {
|
||||
String name = 'framework',
|
||||
Remote upstreamRemote = const Remote(
|
||||
super.name = 'framework',
|
||||
super.upstreamRemote = const Remote(
|
||||
name: RemoteName.upstream, url: FrameworkRepository.defaultUpstream),
|
||||
bool localUpstream = false,
|
||||
String? previousCheckoutLocation,
|
||||
String initialRef = FrameworkRepository.defaultBranch,
|
||||
Remote? mirrorRemote,
|
||||
super.localUpstream,
|
||||
super.previousCheckoutLocation,
|
||||
String super.initialRef = FrameworkRepository.defaultBranch,
|
||||
super.mirrorRemote,
|
||||
List<String>? additionalRequiredLocalBranches,
|
||||
}) : super(
|
||||
name: name,
|
||||
upstreamRemote: upstreamRemote,
|
||||
mirrorRemote: mirrorRemote,
|
||||
initialRef: initialRef,
|
||||
fileSystem: checkouts.fileSystem,
|
||||
localUpstream: localUpstream,
|
||||
parentDirectory: checkouts.directory,
|
||||
platform: checkouts.platform,
|
||||
processManager: checkouts.processManager,
|
||||
stdio: checkouts.stdio,
|
||||
previousCheckoutLocation: previousCheckoutLocation,
|
||||
requiredLocalBranches: <String>[
|
||||
...?additionalRequiredLocalBranches,
|
||||
...kReleaseChannels,
|
||||
@@ -757,26 +751,20 @@ class HostFrameworkRepository extends FrameworkRepository {
|
||||
class EngineRepository extends Repository {
|
||||
EngineRepository(
|
||||
this.checkouts, {
|
||||
String name = 'engine',
|
||||
String initialRef = EngineRepository.defaultBranch,
|
||||
Remote upstreamRemote = const Remote(
|
||||
super.name = 'engine',
|
||||
String super.initialRef = EngineRepository.defaultBranch,
|
||||
super.upstreamRemote = const Remote(
|
||||
name: RemoteName.upstream, url: EngineRepository.defaultUpstream),
|
||||
bool localUpstream = false,
|
||||
String? previousCheckoutLocation,
|
||||
Remote? mirrorRemote,
|
||||
super.localUpstream,
|
||||
super.previousCheckoutLocation,
|
||||
super.mirrorRemote,
|
||||
List<String>? additionalRequiredLocalBranches,
|
||||
}) : super(
|
||||
name: name,
|
||||
upstreamRemote: upstreamRemote,
|
||||
mirrorRemote: mirrorRemote,
|
||||
initialRef: initialRef,
|
||||
fileSystem: checkouts.fileSystem,
|
||||
localUpstream: localUpstream,
|
||||
parentDirectory: checkouts.directory,
|
||||
platform: checkouts.platform,
|
||||
processManager: checkouts.processManager,
|
||||
stdio: checkouts.stdio,
|
||||
previousCheckoutLocation: previousCheckoutLocation,
|
||||
requiredLocalBranches: additionalRequiredLocalBranches ?? const <String>[],
|
||||
);
|
||||
|
||||
|
||||
@@ -227,8 +227,8 @@ class StartContext extends Context {
|
||||
required this.conductorVersion,
|
||||
required this.processManager,
|
||||
required this.releaseChannel,
|
||||
required Checkouts checkouts,
|
||||
required File stateFile,
|
||||
required super.checkouts,
|
||||
required super.stateFile,
|
||||
this.force = false,
|
||||
this.versionOverride,
|
||||
}) : git = Git(processManager),
|
||||
@@ -254,10 +254,6 @@ class StartContext extends Context {
|
||||
name: RemoteName.mirror,
|
||||
url: frameworkMirror,
|
||||
),
|
||||
),
|
||||
super(
|
||||
checkouts: checkouts,
|
||||
stateFile: stateFile,
|
||||
);
|
||||
|
||||
final String candidateBranch;
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import 'package:args/command_runner.dart';
|
||||
import 'package:conductor_core/src/codesign.dart';
|
||||
import 'package:conductor_core/src/repository.dart';
|
||||
import 'package:file/file.dart';
|
||||
import 'package:file/memory.dart';
|
||||
import 'package:platform/platform.dart';
|
||||
|
||||
@@ -512,11 +511,11 @@ void main() {
|
||||
|
||||
class FakeCodesignCommand extends CodesignCommand {
|
||||
FakeCodesignCommand({
|
||||
required Checkouts checkouts,
|
||||
required super.checkouts,
|
||||
required this.binariesWithEntitlements,
|
||||
required this.binariesWithoutEntitlements,
|
||||
required Directory flutterRoot,
|
||||
}) : super(checkouts: checkouts, flutterRoot: flutterRoot);
|
||||
required super.flutterRoot,
|
||||
});
|
||||
|
||||
@override
|
||||
final Future<List<String>> binariesWithEntitlements;
|
||||
|
||||
@@ -1196,16 +1196,9 @@ class _TestRepository extends Repository {
|
||||
|
||||
class _TestNextContext extends NextContext {
|
||||
const _TestNextContext({
|
||||
bool autoAccept = false,
|
||||
bool force = false,
|
||||
required File stateFile,
|
||||
required Checkouts checkouts,
|
||||
}) : super(
|
||||
autoAccept: autoAccept,
|
||||
force: force,
|
||||
checkouts: checkouts,
|
||||
stateFile: stateFile,
|
||||
);
|
||||
required super.stateFile,
|
||||
required super.checkouts,
|
||||
}) : super(autoAccept: false, force: false);
|
||||
|
||||
@override
|
||||
Future<bool> prompt(String message) {
|
||||
|
||||
Reference in New Issue
Block a user