Pay off some technical debt. (#8710)

* Rename `Device.platform` to `Device.targetPlatform` to avoid
  collision with the exported variable from `platform.dart`
This commit is contained in:
Todd Volkert
2017-03-10 10:11:05 -08:00
committed by GitHub
parent 83d411f979
commit 34ed3d2d24
13 changed files with 33 additions and 35 deletions

View File

@@ -31,7 +31,7 @@ class MockApplicationPackageStore extends ApplicationPackageStore {
class MockAndroidDevice extends Mock implements AndroidDevice {
@override
TargetPlatform get platform => TargetPlatform.android_arm;
TargetPlatform get targetPlatform => TargetPlatform.android_arm;
@override
bool isSupported() => true;
@@ -39,7 +39,7 @@ class MockAndroidDevice extends Mock implements AndroidDevice {
class MockIOSDevice extends Mock implements IOSDevice {
@override
TargetPlatform get platform => TargetPlatform.ios;
TargetPlatform get targetPlatform => TargetPlatform.ios;
@override
bool isSupported() => true;
@@ -47,7 +47,7 @@ class MockIOSDevice extends Mock implements IOSDevice {
class MockIOSSimulator extends Mock implements IOSSimulator {
@override
TargetPlatform get platform => TargetPlatform.ios;
TargetPlatform get targetPlatform => TargetPlatform.ios;
@override
bool isSupported() => true;