some spaces formatting (#29452)
* some space formattings * always use blocks in if-else if a block is used * format spaces in for and while * allow multiline if conditions * fix missing space
This commit is contained in:
committed by
GitHub
parent
4418ec467b
commit
a6af422874
@@ -792,7 +792,7 @@ class _AdbLogReader extends DeviceLogReader {
|
||||
}
|
||||
_acceptedLastLine = false;
|
||||
} else if (line == '--------- beginning of system' ||
|
||||
line == '--------- beginning of main' ) {
|
||||
line == '--------- beginning of main') {
|
||||
// hide the ugly adb logcat log boundaries at the start
|
||||
_acceptedLastLine = false;
|
||||
} else {
|
||||
|
||||
@@ -478,7 +478,7 @@ Future<void> _buildGradleProjectV2(
|
||||
throwToolExit('Gradle task $assembleTask failed with exit code $exitCode', exitCode: exitCode);
|
||||
}
|
||||
|
||||
if(!isBuildingBundle) {
|
||||
if (!isBuildingBundle) {
|
||||
final File apkFile = _findApkFile(project, buildInfo);
|
||||
if (apkFile == null)
|
||||
throwToolExit('Gradle build failed to produce an Android package.');
|
||||
|
||||
@@ -458,7 +458,7 @@ class ApkManifestData {
|
||||
final int level = line.length - trimLine.length;
|
||||
|
||||
// Handle level out
|
||||
while(level <= currentElement.level) {
|
||||
while (level <= currentElement.level) {
|
||||
currentElement = currentElement.parent;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ Future<void> runShutdownHooks() async {
|
||||
Map<String, String> _environment(bool allowReentrantFlutter, [ Map<String, String> environment ]) {
|
||||
if (allowReentrantFlutter) {
|
||||
if (environment == null)
|
||||
environment = <String, String>{ 'FLUTTER_ALREADY_LOCKED': 'true' };
|
||||
environment = <String, String>{'FLUTTER_ALREADY_LOCKED': 'true'};
|
||||
else
|
||||
environment['FLUTTER_ALREADY_LOCKED'] = 'true';
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ abstract class Domain {
|
||||
}
|
||||
|
||||
void sendEvent(String name, [ dynamic args ]) {
|
||||
final Map<String, dynamic> map = <String, dynamic>{ 'event': name };
|
||||
final Map<String, dynamic> map = <String, dynamic>{'event': name};
|
||||
if (args != null)
|
||||
map['params'] = _toJsonable(args);
|
||||
_send(map);
|
||||
@@ -563,7 +563,7 @@ class AppDomain extends Domain {
|
||||
}
|
||||
|
||||
void _sendAppEvent(AppInstance app, String name, [ Map<String, dynamic> args ]) {
|
||||
final Map<String, dynamic> eventArgs = <String, dynamic> { 'appId': app.id };
|
||||
final Map<String, dynamic> eventArgs = <String, dynamic> {'appId': app.id};
|
||||
if (args != null)
|
||||
eventArgs.addAll(args);
|
||||
sendEvent('app.$name', eventArgs);
|
||||
@@ -652,7 +652,7 @@ class DeviceDomain extends Domain {
|
||||
|
||||
hostPort = await device.portForwarder.forward(devicePort, hostPort: hostPort);
|
||||
|
||||
return <String, dynamic>{ 'hostPort': hostPort };
|
||||
return <String, dynamic>{'hostPort': hostPort};
|
||||
}
|
||||
|
||||
/// Removes a forwarded port.
|
||||
|
||||
@@ -295,7 +295,7 @@ Future<void> _runTests(List<String> testArgs, String observatoryUri) async {
|
||||
'--packages=${PackageMap.globalPackagesPath}',
|
||||
'-rexpanded',
|
||||
]),
|
||||
environment: <String, String>{ 'VM_SERVICE_URL': observatoryUri },
|
||||
environment: <String, String>{'VM_SERVICE_URL': observatoryUri},
|
||||
);
|
||||
if (result != 0)
|
||||
throwToolExit('Driver tests failed: $result', exitCode: result);
|
||||
|
||||
@@ -16,7 +16,7 @@ import '../runner/flutter_command.dart';
|
||||
import '../version.dart';
|
||||
|
||||
class VersionCommand extends FlutterCommand {
|
||||
VersionCommand(): super() {
|
||||
VersionCommand() : super() {
|
||||
argParser.addFlag('force',
|
||||
abbr: 'f',
|
||||
help: 'Force switch to older Flutter versions that do not include a version command',
|
||||
|
||||
@@ -378,7 +378,7 @@ class _CompileExpressionRequest extends _CompilationRequest {
|
||||
}
|
||||
|
||||
class _RejectRequest extends _CompilationRequest {
|
||||
_RejectRequest(Completer<CompilerOutput> completer): super(completer);
|
||||
_RejectRequest(Completer<CompilerOutput> completer) : super(completer);
|
||||
|
||||
@override
|
||||
Future<CompilerOutput> _run(ResidentCompiler compiler) async =>
|
||||
|
||||
@@ -501,8 +501,8 @@ abstract class IntelliJValidator extends DoctorValidator {
|
||||
String get pluginsPath;
|
||||
|
||||
static final Map<String, String> _idToTitle = <String, String>{
|
||||
'IntelliJIdea' : 'IntelliJ IDEA Ultimate Edition',
|
||||
'IdeaIC' : 'IntelliJ IDEA Community Edition',
|
||||
'IntelliJIdea': 'IntelliJ IDEA Ultimate Edition',
|
||||
'IdeaIC': 'IntelliJ IDEA Community Edition',
|
||||
};
|
||||
|
||||
static final Version kMinIdeaVersion = Version(2017, 1, 0);
|
||||
@@ -615,9 +615,9 @@ class IntelliJValidatorOnMac extends IntelliJValidator {
|
||||
final String id;
|
||||
|
||||
static final Map<String, String> _dirNameToId = <String, String>{
|
||||
'IntelliJ IDEA.app' : 'IntelliJIdea',
|
||||
'IntelliJ IDEA Ultimate.app' : 'IntelliJIdea',
|
||||
'IntelliJ IDEA CE.app' : 'IdeaIC',
|
||||
'IntelliJ IDEA.app': 'IntelliJIdea',
|
||||
'IntelliJ IDEA Ultimate.app': 'IntelliJIdea',
|
||||
'IntelliJ IDEA CE.app': 'IdeaIC',
|
||||
};
|
||||
|
||||
static Iterable<DoctorValidator> get installed {
|
||||
|
||||
@@ -102,9 +102,8 @@ class FlutterManifest {
|
||||
String get buildName {
|
||||
if (appVersion != null && appVersion.contains('+'))
|
||||
return appVersion.split('+')?.elementAt(0);
|
||||
else {
|
||||
else
|
||||
return appVersion;
|
||||
}
|
||||
}
|
||||
|
||||
/// The build version number from the `pubspec.yaml` file.
|
||||
|
||||
@@ -187,8 +187,7 @@ Future<String> _chooseSigningIdentity(List<String> validCodeSigningIdentities, b
|
||||
if (validCodeSigningIdentities.contains(savedCertChoice)) {
|
||||
printStatus('Found saved certificate choice "$savedCertChoice". To clear, use "flutter config".');
|
||||
return savedCertChoice;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
printError('Saved signing certificate "$savedCertChoice" is not a valid development certificate');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -433,7 +433,7 @@ String decodeSyslog(String line) {
|
||||
try {
|
||||
final List<int> bytes = utf8.encode(line);
|
||||
final List<int> out = <int>[];
|
||||
for (int i = 0; i < bytes.length; ) {
|
||||
for (int i = 0; i < bytes.length;) {
|
||||
if (bytes[i] != kBackslash || i > bytes.length - 4) {
|
||||
// Unmapped byte: copy as-is.
|
||||
out.add(bytes[i++]);
|
||||
|
||||
@@ -192,8 +192,7 @@ class CocoaPodsValidator extends DoctorValidator {
|
||||
status = ValidationType.missing;
|
||||
messages.add(ValidationMessage.error(
|
||||
userMessages.cocoaPodsMissing(noCocoaPodsConsequence, cocoaPodsInstallInstructions)));
|
||||
}
|
||||
else if (cocoaPodsStatus == CocoaPodsStatus.unknownVersion) {
|
||||
} else if (cocoaPodsStatus == CocoaPodsStatus.unknownVersion) {
|
||||
status = ValidationType.partial;
|
||||
messages.add(ValidationMessage.hint(
|
||||
userMessages.cocoaPodsUnknownVersion(unknownCocoaPodsConsequence, cocoaPodsUpgradeInstructions)));
|
||||
|
||||
@@ -599,8 +599,7 @@ Future<void> diagnoseXcodeBuildFailure(XcodeBuildResult result) async {
|
||||
if (result.xcodeBuildExecution != null &&
|
||||
result.xcodeBuildExecution.buildForPhysicalDevice &&
|
||||
!<String>['DEVELOPMENT_TEAM', 'PROVISIONING_PROFILE'].any(
|
||||
result.xcodeBuildExecution.buildSettings.containsKey)
|
||||
) {
|
||||
result.xcodeBuildExecution.buildSettings.containsKey)) {
|
||||
printError(noDevelopmentTeamInstruction, emphasis: true);
|
||||
return;
|
||||
}
|
||||
@@ -722,7 +721,7 @@ void _copyServiceDefinitionsManifest(List<Map<String, String>> services, File ma
|
||||
// the directory and basenames.
|
||||
'framework': fs.path.basenameWithoutExtension(service['ios-framework']),
|
||||
}).toList();
|
||||
final Map<String, dynamic> jsonObject = <String, dynamic>{ 'services' : jsonServices };
|
||||
final Map<String, dynamic> jsonObject = <String, dynamic>{'services': jsonServices};
|
||||
manifest.writeAsStringSync(json.encode(jsonObject), mode: FileMode.write, flush: true);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ String getValueFromFile(String plistFilePath, String key) {
|
||||
final List<String> args = <String>[
|
||||
executable, 'read', normalizedPlistPath,
|
||||
];
|
||||
if (key != null && key.isNotEmpty){
|
||||
if (key != null && key.isNotEmpty) {
|
||||
args.add(key);
|
||||
}
|
||||
final String value = runCheckedSync(args);
|
||||
|
||||
@@ -406,7 +406,7 @@ class HotRunner extends ResidentRunner {
|
||||
final Map<String, String> analyticsParameters =
|
||||
reason == null
|
||||
? null
|
||||
: <String, String>{ kEventReloadReasonParameterName: reason };
|
||||
: <String, String>{kEventReloadReasonParameterName: reason};
|
||||
|
||||
if (!_isPaused()) {
|
||||
printTrace('Refreshing active FlutterViews before restarting.');
|
||||
|
||||
@@ -105,7 +105,7 @@ File generateServiceDefinitions(
|
||||
'class': service['android-class'],
|
||||
}).toList();
|
||||
|
||||
final Map<String, dynamic> jsonObject = <String, dynamic>{ 'services': services };
|
||||
final Map<String, dynamic> jsonObject = <String, dynamic>{'services': services};
|
||||
final File servicesFile = fs.file(fs.path.join(dir, 'services.json'));
|
||||
servicesFile.writeAsStringSync(json.encode(jsonObject), mode: FileMode.write, flush: true);
|
||||
return servicesFile;
|
||||
|
||||
@@ -19,7 +19,7 @@ class EventPrinter extends TestWatcher {
|
||||
}
|
||||
|
||||
void _sendEvent(String name, [ dynamic params ]) {
|
||||
final Map<String, dynamic> map = <String, dynamic>{ 'event': name};
|
||||
final Map<String, dynamic> map = <String, dynamic>{'event': name};
|
||||
if (params != null) {
|
||||
map['params'] = params;
|
||||
}
|
||||
|
||||
@@ -352,7 +352,7 @@ class VMService {
|
||||
Future<void> _streamListen(String streamId) async {
|
||||
if (!_listeningFor.contains(streamId)) {
|
||||
_listeningFor.add(streamId);
|
||||
await _sendRequest('streamListen', <String, dynamic>{ 'streamId': streamId });
|
||||
await _sendRequest('streamListen', <String, dynamic>{'streamId': streamId});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -873,7 +873,7 @@ class VM extends ServiceObjectOwner {
|
||||
|
||||
/// Create a new development file system on the device.
|
||||
Future<Map<String, dynamic>> createDevFS(String fsName) {
|
||||
return invokeRpcRaw('_createDevFS', params: <String, dynamic> { 'fsName': fsName });
|
||||
return invokeRpcRaw('_createDevFS', params: <String, dynamic> {'fsName': fsName});
|
||||
}
|
||||
|
||||
/// List the development file system son the device.
|
||||
@@ -913,12 +913,12 @@ class VM extends ServiceObjectOwner {
|
||||
|
||||
/// The complete list of a file system.
|
||||
Future<List<String>> listDevFSFiles(String fsName) async {
|
||||
return (await invokeRpcRaw('_listDevFSFiles', params: <String, dynamic>{ 'fsName': fsName }))['files'];
|
||||
return (await invokeRpcRaw('_listDevFSFiles', params: <String, dynamic>{'fsName': fsName}))['files'];
|
||||
}
|
||||
|
||||
/// Delete an existing file system.
|
||||
Future<Map<String, dynamic>> deleteDevFS(String fsName) {
|
||||
return invokeRpcRaw('_deleteDevFS', params: <String, dynamic>{ 'fsName': fsName });
|
||||
return invokeRpcRaw('_deleteDevFS', params: <String, dynamic>{'fsName': fsName});
|
||||
}
|
||||
|
||||
Future<ServiceMap> runInView(
|
||||
@@ -1273,7 +1273,7 @@ class Isolate extends ServiceObjectOwner {
|
||||
if (state != null && state.containsKey('enabled') && state['enabled'] is String) {
|
||||
state = await invokeFlutterExtensionRpcRaw(
|
||||
'ext.flutter.$name',
|
||||
params: <String, dynamic>{ 'enabled': state['enabled'] == 'true' ? 'false' : 'true' },
|
||||
params: <String, dynamic>{'enabled': state['enabled'] == 'true' ? 'false' : 'true'},
|
||||
);
|
||||
}
|
||||
return state;
|
||||
@@ -1288,7 +1288,7 @@ class Isolate extends ServiceObjectOwner {
|
||||
Future<Map<String, dynamic>> flutterDebugAllowBanner(bool show) {
|
||||
return invokeFlutterExtensionRpcRaw(
|
||||
'ext.flutter.debugAllowBanner',
|
||||
params: <String, dynamic>{ 'enabled': show ? 'true' : 'false' },
|
||||
params: <String, dynamic>{'enabled': show ? 'true' : 'false'},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1331,7 +1331,7 @@ class Isolate extends ServiceObjectOwner {
|
||||
Future<String> flutterPlatformOverride([ String platform ]) async {
|
||||
final Map<String, dynamic> result = await invokeFlutterExtensionRpcRaw(
|
||||
'ext.flutter.platformOverride',
|
||||
params: platform != null ? <String, dynamic>{ 'value': platform } : <String, String>{},
|
||||
params: platform != null ? <String, dynamic>{'value': platform} : <String, String>{},
|
||||
);
|
||||
if (result != null && result['value'] is String)
|
||||
return result['value'];
|
||||
|
||||
@@ -20,12 +20,12 @@ void main() {
|
||||
testUsingContext('recursively creates a directory if it does not exist', () async {
|
||||
ensureDirectoryExists('foo/bar/baz.flx');
|
||||
expect(fs.isDirectorySync('foo/bar'), true);
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
}, overrides: <Type, Generator>{FileSystem: () => fs});
|
||||
|
||||
testUsingContext('throws tool exit on failure to create', () async {
|
||||
fs.file('foo').createSync();
|
||||
expect(() => ensureDirectoryExists('foo/bar.flx'), throwsToolExit());
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
}, overrides: <Type, Generator>{FileSystem: () => fs});
|
||||
});
|
||||
|
||||
group('copyDirectorySync', () {
|
||||
|
||||
@@ -247,7 +247,7 @@ void main() {
|
||||
() => Fingerprint.fromBuildInputs(<String, String>{}, <String>['a.dart', 'b.dart']),
|
||||
throwsArgumentError,
|
||||
);
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
}, overrides: <Type, Generator>{FileSystem: () => fs});
|
||||
|
||||
testUsingContext('populates checksums for valid files', () async {
|
||||
await fs.file('a.dart').writeAsString('This is a');
|
||||
@@ -258,14 +258,14 @@ void main() {
|
||||
expect(jsonObject['files'], hasLength(2));
|
||||
expect(jsonObject['files']['a.dart'], '8a21a15fad560b799f6731d436c1b698');
|
||||
expect(jsonObject['files']['b.dart'], '6f144e08b58cd0925328610fad7ac07c');
|
||||
}, overrides: <Type, Generator>{ FileSystem: () => fs });
|
||||
}, overrides: <Type, Generator>{FileSystem: () => fs});
|
||||
|
||||
testUsingContext('includes framework version', () {
|
||||
final Fingerprint fingerprint = Fingerprint.fromBuildInputs(<String, String>{}, <String>[]);
|
||||
|
||||
final Map<String, dynamic> jsonObject = json.decode(fingerprint.toJson());
|
||||
expect(jsonObject['version'], mockVersion.frameworkRevision);
|
||||
}, overrides: <Type, Generator>{ FlutterVersion: () => mockVersion });
|
||||
}, overrides: <Type, Generator>{FlutterVersion: () => mockVersion});
|
||||
|
||||
testUsingContext('includes provided properties', () {
|
||||
final Fingerprint fingerprint = Fingerprint.fromBuildInputs(<String, String>{'a': 'A', 'b': 'B'}, <String>[]);
|
||||
@@ -274,7 +274,7 @@ void main() {
|
||||
expect(jsonObject['properties'], hasLength(2));
|
||||
expect(jsonObject['properties']['a'], 'A');
|
||||
expect(jsonObject['properties']['b'], 'B');
|
||||
}, overrides: <Type, Generator>{ FlutterVersion: () => mockVersion });
|
||||
}, overrides: <Type, Generator>{FlutterVersion: () => mockVersion});
|
||||
});
|
||||
|
||||
group('fromJson', () {
|
||||
@@ -315,8 +315,8 @@ void main() {
|
||||
testUsingContext('throws ArgumentError for unknown versions', () async {
|
||||
final String jsonString = json.encode(<String, dynamic>{
|
||||
'version': 'bad',
|
||||
'properties':<String, String>{},
|
||||
'files':<String, String>{},
|
||||
'properties': <String, String>{},
|
||||
'files': <String, String>{},
|
||||
});
|
||||
expect(() => Fingerprint.fromJson(jsonString), throwsArgumentError);
|
||||
}, overrides: <Type, Generator>{
|
||||
@@ -325,8 +325,8 @@ void main() {
|
||||
|
||||
testUsingContext('throws ArgumentError if version is not present', () async {
|
||||
final String jsonString = json.encode(<String, dynamic>{
|
||||
'properties':<String, String>{},
|
||||
'files':<String, String>{},
|
||||
'properties': <String, String>{},
|
||||
'files': <String, String>{},
|
||||
});
|
||||
expect(() => Fingerprint.fromJson(jsonString), throwsArgumentError);
|
||||
}, overrides: <Type, Generator>{
|
||||
@@ -437,7 +437,7 @@ void main() {
|
||||
fs = MemoryFileSystem();
|
||||
});
|
||||
|
||||
final Map<Type, Generator> contextOverrides = <Type, Generator>{ FileSystem: () => fs };
|
||||
final Map<Type, Generator> contextOverrides = <Type, Generator>{FileSystem: () => fs};
|
||||
|
||||
testUsingContext('returns one file if only one is listed', () async {
|
||||
await fs.file('a.d').writeAsString('snapshot.d: /foo/a.dart');
|
||||
|
||||
@@ -97,7 +97,7 @@ void main() {
|
||||
path: '/cr/report',
|
||||
queryParameters: <String, String>{
|
||||
'product': 'Flutter_Tools',
|
||||
'version' : 'test-version',
|
||||
'version': 'test-version',
|
||||
},
|
||||
));
|
||||
expect(fields['uuid'], '00000000-0000-4000-0000-000000000000');
|
||||
@@ -148,7 +148,7 @@ void main() {
|
||||
path: '/fake_server',
|
||||
queryParameters: <String, String>{
|
||||
'product': 'Flutter_Tools',
|
||||
'version' : 'test-version',
|
||||
'version': 'test-version',
|
||||
},
|
||||
));
|
||||
}, overrides: <Type, Generator> {
|
||||
|
||||
@@ -54,7 +54,7 @@ void main() {
|
||||
'success': false,
|
||||
'details': <String, dynamic>{
|
||||
'notices': <Map<String, dynamic>>[
|
||||
<String, dynamic>{ 'message': false, },
|
||||
<String, dynamic>{'message': false},
|
||||
],
|
||||
},
|
||||
}), false);
|
||||
@@ -63,7 +63,7 @@ void main() {
|
||||
'success': false,
|
||||
'details': <String, dynamic>{
|
||||
'notices': <Map<String, dynamic>>[
|
||||
<String, dynamic>{ 'message': <String>['error'], },
|
||||
<String, dynamic>{'message': <String>['error']},
|
||||
],
|
||||
},
|
||||
}), false);
|
||||
@@ -72,8 +72,8 @@ void main() {
|
||||
'success': false,
|
||||
'details': <String, dynamic>{
|
||||
'notices': <Map<String, dynamic>>[
|
||||
<String, dynamic>{ 'message': 'error', },
|
||||
<String, dynamic>{ 'message': <String>['error'], },
|
||||
<String, dynamic>{'message': 'error'},
|
||||
<String, dynamic>{'message': <String>['error']},
|
||||
],
|
||||
},
|
||||
}), false);
|
||||
@@ -82,7 +82,7 @@ void main() {
|
||||
'success': false,
|
||||
'details': <String, dynamic>{
|
||||
'notices': <Map<String, dynamic>>[
|
||||
<String, dynamic>{ 'message': 'error', },
|
||||
<String, dynamic>{'message': 'error'},
|
||||
],
|
||||
},
|
||||
}), false);
|
||||
|
||||
@@ -217,7 +217,7 @@ void main() {
|
||||
);
|
||||
expect(testLogger.errorText, isEmpty);
|
||||
verify(mockOpenSslStdIn.write('This is a mock certificate'));
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM':'4444DDDD44'});
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM': '4444DDDD44'});
|
||||
|
||||
verify(config.setValue('ios-signing-cert', 'iPhone Developer: Profile 3 (3333CCCC33)'));
|
||||
},
|
||||
@@ -288,7 +288,7 @@ void main() {
|
||||
);
|
||||
expect(testLogger.errorText, isEmpty);
|
||||
verify(mockOpenSslStdIn.write('This is a mock certificate'));
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM':'5555EEEE55'});
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM': '5555EEEE55'});
|
||||
},
|
||||
overrides: <Type, Generator>{
|
||||
ProcessManager: () => mockProcessManager,
|
||||
@@ -360,7 +360,7 @@ void main() {
|
||||
);
|
||||
expect(testLogger.errorText, isEmpty);
|
||||
verify(mockOpenSslStdIn.write('This is a mock certificate'));
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM':'4444DDDD44'});
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM': '4444DDDD44'});
|
||||
},
|
||||
overrides: <Type, Generator>{
|
||||
ProcessManager: () => mockProcessManager,
|
||||
@@ -432,7 +432,7 @@ void main() {
|
||||
testLogger.statusText,
|
||||
contains('Certificate choice "iPhone Developer: Profile 3 (3333CCCC33)"'),
|
||||
);
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM':'4444DDDD44'});
|
||||
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM': '4444DDDD44'});
|
||||
verify(config.setValue('ios-signing-cert', 'iPhone Developer: Profile 3 (3333CCCC33)'));
|
||||
},
|
||||
overrides: <Type, Generator>{
|
||||
|
||||
@@ -102,7 +102,7 @@ void main() {}
|
||||
});
|
||||
expect(invalidator.updateTime, <String, int>{
|
||||
'/foo/lib/foo.dart': fooFile.statSync().modified.millisecondsSinceEpoch,
|
||||
'/lib/main.dart':mainFile.statSync().modified.millisecondsSinceEpoch,
|
||||
'/lib/main.dart': mainFile.statSync().modified.millisecondsSinceEpoch,
|
||||
});
|
||||
expect(invalidator.findInvalidated(), isEmpty);
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Future<void> main() async {
|
||||
if (words.length > 1) {
|
||||
_send(<String, dynamic>{
|
||||
'method': 'app.stop',
|
||||
'params': <String, dynamic> { 'appId': words[1] },
|
||||
'params': <String, dynamic> {'appId': words[1]},
|
||||
});
|
||||
} else {
|
||||
_send(<String, dynamic>{'method': 'app.stop'});
|
||||
@@ -59,7 +59,7 @@ Future<void> main() async {
|
||||
if (words.length > 1) {
|
||||
_send(<String, dynamic>{
|
||||
'method': 'app.restart',
|
||||
'params': <String, dynamic> { 'appId': words[1] },
|
||||
'params': <String, dynamic> {'appId': words[1]},
|
||||
});
|
||||
} else {
|
||||
_send(<String, dynamic>{'method': 'app.restart'});
|
||||
|
||||
Reference in New Issue
Block a user