Add a --no-http flag to start command

This flag builds a local FLX file and pushes that to the device instead of
using an HTTP server.
This commit is contained in:
Adam Barth
2015-10-30 22:57:39 -07:00
parent 48c3d01587
commit 94b472ff67
9 changed files with 337 additions and 161 deletions

View File

@@ -26,21 +26,21 @@ class MockToolchain extends Toolchain {
}
class MockAndroidDevice extends Mock implements AndroidDevice {
BuildPlatform get platform => BuildPlatform.android;
TargetPlatform get platform => TargetPlatform.android;
@override
dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockIOSDevice extends Mock implements IOSDevice {
BuildPlatform get platform => BuildPlatform.iOS;
TargetPlatform get platform => TargetPlatform.iOS;
@override
dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
class MockIOSSimulator extends Mock implements IOSSimulator {
BuildPlatform get platform => BuildPlatform.iOSSimulator;
TargetPlatform get platform => TargetPlatform.iOSSimulator;
@override
dynamic noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);