Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
57efbd53
Unverified
Commit
57efbd53
authored
Aug 16, 2021
by
Jenn Magder
Committed by
GitHub
Aug 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename IOSDeviceInterface to IOSDeviceConnectionInterface (#88144)
parent
31d0787d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
54 additions
and
50 deletions
+54
-50
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+4
-10
ios_deploy.dart
packages/flutter_tools/lib/src/ios/ios_deploy.dart
+7
-7
iproxy.dart
packages/flutter_tools/lib/src/ios/iproxy.dart
+10
-0
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+3
-3
xcdevice.dart
packages/flutter_tools/lib/src/macos/xcdevice.dart
+6
-6
devices_test.dart
...es/flutter_tools/test/general.shard/ios/devices_test.dart
+12
-12
ios_deploy_test.dart
...flutter_tools/test/general.shard/ios/ios_deploy_test.dart
+2
-2
ios_device_install_test.dart
...tools/test/general.shard/ios/ios_device_install_test.dart
+3
-3
ios_device_project_test.dart
...tools/test/general.shard/ios/ios_device_project_test.dart
+1
-1
ios_device_start_nonprebuilt_test.dart
.../general.shard/ios/ios_device_start_nonprebuilt_test.dart
+1
-1
ios_device_start_prebuilt_test.dart
...est/general.shard/ios/ios_device_start_prebuilt_test.dart
+1
-1
mac_test.dart
packages/flutter_tools/test/general.shard/ios/mac_test.dart
+4
-4
No files found.
packages/flutter_tools/lib/src/ios/devices.dart
View file @
57efbd53
...
@@ -138,12 +138,6 @@ class IOSDevices extends PollingDeviceDiscovery {
...
@@ -138,12 +138,6 @@ class IOSDevices extends PollingDeviceDiscovery {
List
<
String
>
get
wellKnownIds
=>
const
<
String
>[];
List
<
String
>
get
wellKnownIds
=>
const
<
String
>[];
}
}
enum
IOSDeviceInterface
{
none
,
usb
,
network
,
}
class
IOSDevice
extends
Device
{
class
IOSDevice
extends
Device
{
IOSDevice
(
String
id
,
{
IOSDevice
(
String
id
,
{
@required
FileSystem
fileSystem
,
@required
FileSystem
fileSystem
,
...
@@ -191,13 +185,13 @@ class IOSDevice extends Device {
...
@@ -191,13 +185,13 @@ class IOSDevice extends Device {
}
}
@override
@override
bool
get
supportsHotReload
=>
interfaceType
==
IOSDeviceInterface
.
usb
;
bool
get
supportsHotReload
=>
interfaceType
==
IOSDevice
Connection
Interface
.
usb
;
@override
@override
bool
get
supportsHotRestart
=>
interfaceType
==
IOSDeviceInterface
.
usb
;
bool
get
supportsHotRestart
=>
interfaceType
==
IOSDevice
Connection
Interface
.
usb
;
@override
@override
bool
get
supportsFlutterExit
=>
interfaceType
==
IOSDeviceInterface
.
usb
;
bool
get
supportsFlutterExit
=>
interfaceType
==
IOSDevice
Connection
Interface
.
usb
;
@override
@override
final
String
name
;
final
String
name
;
...
@@ -207,7 +201,7 @@ class IOSDevice extends Device {
...
@@ -207,7 +201,7 @@ class IOSDevice extends Device {
final
DarwinArch
cpuArchitecture
;
final
DarwinArch
cpuArchitecture
;
final
IOSDeviceInterface
interfaceType
;
final
IOSDevice
Connection
Interface
interfaceType
;
Map
<
IOSApp
,
DeviceLogReader
>
_logReaders
;
Map
<
IOSApp
,
DeviceLogReader
>
_logReaders
;
...
...
packages/flutter_tools/lib/src/ios/ios_deploy.dart
View file @
57efbd53
...
@@ -19,7 +19,7 @@ import '../base/process.dart';
...
@@ -19,7 +19,7 @@ import '../base/process.dart';
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../convert.dart'
;
import
'../convert.dart'
;
import
'code_signing.dart'
;
import
'code_signing.dart'
;
import
'
devices
.dart'
;
import
'
iproxy
.dart'
;
// Error message patterns from ios-deploy output
// Error message patterns from ios-deploy output
const
String
noProvisioningProfileErrorOne
=
'Error 0xe8008015'
;
const
String
noProvisioningProfileErrorOne
=
'Error 0xe8008015'
;
...
@@ -91,7 +91,7 @@ class IOSDeploy {
...
@@ -91,7 +91,7 @@ class IOSDeploy {
@required
String
bundlePath
,
@required
String
bundlePath
,
@required
Directory
appDeltaDirectory
,
@required
Directory
appDeltaDirectory
,
@required
List
<
String
>
launchArguments
,
@required
List
<
String
>
launchArguments
,
@required
IOSDeviceInterface
interfaceType
,
@required
IOSDevice
Connection
Interface
interfaceType
,
})
async
{
})
async
{
appDeltaDirectory
?.
createSync
(
recursive:
true
);
appDeltaDirectory
?.
createSync
(
recursive:
true
);
final
List
<
String
>
launchCommand
=
<
String
>[
final
List
<
String
>
launchCommand
=
<
String
>[
...
@@ -104,7 +104,7 @@ class IOSDeploy {
...
@@ -104,7 +104,7 @@ class IOSDeploy {
'--app_deltas'
,
'--app_deltas'
,
appDeltaDirectory
.
path
,
appDeltaDirectory
.
path
,
],
],
if
(
interfaceType
!=
IOSDeviceInterface
.
network
)
if
(
interfaceType
!=
IOSDevice
Connection
Interface
.
network
)
'--no-wifi'
,
'--no-wifi'
,
if
(
launchArguments
.
isNotEmpty
)
...<
String
>[
if
(
launchArguments
.
isNotEmpty
)
...<
String
>[
'--args'
,
'--args'
,
...
@@ -129,7 +129,7 @@ class IOSDeploy {
...
@@ -129,7 +129,7 @@ class IOSDeploy {
@required
String
bundlePath
,
@required
String
bundlePath
,
@required
Directory
appDeltaDirectory
,
@required
Directory
appDeltaDirectory
,
@required
List
<
String
>
launchArguments
,
@required
List
<
String
>
launchArguments
,
@required
IOSDeviceInterface
interfaceType
,
@required
IOSDevice
Connection
Interface
interfaceType
,
})
{
})
{
appDeltaDirectory
?.
createSync
(
recursive:
true
);
appDeltaDirectory
?.
createSync
(
recursive:
true
);
// Interactive debug session to support sending the lldb detach command.
// Interactive debug session to support sending the lldb detach command.
...
@@ -148,7 +148,7 @@ class IOSDeploy {
...
@@ -148,7 +148,7 @@ class IOSDeploy {
appDeltaDirectory
.
path
,
appDeltaDirectory
.
path
,
],
],
'--debug'
,
'--debug'
,
if
(
interfaceType
!=
IOSDeviceInterface
.
network
)
if
(
interfaceType
!=
IOSDevice
Connection
Interface
.
network
)
'--no-wifi'
,
'--no-wifi'
,
if
(
launchArguments
.
isNotEmpty
)
...<
String
>[
if
(
launchArguments
.
isNotEmpty
)
...<
String
>[
'--args'
,
'--args'
,
...
@@ -171,7 +171,7 @@ class IOSDeploy {
...
@@ -171,7 +171,7 @@ class IOSDeploy {
@required
String
bundlePath
,
@required
String
bundlePath
,
@required
Directory
appDeltaDirectory
,
@required
Directory
appDeltaDirectory
,
@required
List
<
String
>
launchArguments
,
@required
List
<
String
>
launchArguments
,
@required
IOSDeviceInterface
interfaceType
,
@required
IOSDevice
Connection
Interface
interfaceType
,
})
async
{
})
async
{
appDeltaDirectory
?.
createSync
(
recursive:
true
);
appDeltaDirectory
?.
createSync
(
recursive:
true
);
final
List
<
String
>
launchCommand
=
<
String
>[
final
List
<
String
>
launchCommand
=
<
String
>[
...
@@ -184,7 +184,7 @@ class IOSDeploy {
...
@@ -184,7 +184,7 @@ class IOSDeploy {
'--app_deltas'
,
'--app_deltas'
,
appDeltaDirectory
.
path
,
appDeltaDirectory
.
path
,
],
],
if
(
interfaceType
!=
IOSDeviceInterface
.
network
)
if
(
interfaceType
!=
IOSDevice
Connection
Interface
.
network
)
'--no-wifi'
,
'--no-wifi'
,
'--justlaunch'
,
'--justlaunch'
,
if
(
launchArguments
.
isNotEmpty
)
...<
String
>[
if
(
launchArguments
.
isNotEmpty
)
...<
String
>[
...
...
packages/flutter_tools/lib/src/ios/iproxy.dart
View file @
57efbd53
...
@@ -8,6 +8,12 @@ import '../base/io.dart';
...
@@ -8,6 +8,12 @@ import '../base/io.dart';
import
'../base/logger.dart'
;
import
'../base/logger.dart'
;
import
'../base/process.dart'
;
import
'../base/process.dart'
;
enum
IOSDeviceConnectionInterface
{
none
,
usb
,
network
,
}
/// Wraps iproxy command line tool port forwarding.
/// Wraps iproxy command line tool port forwarding.
///
///
/// See https://github.com/libimobiledevice/libusbmuxd.
/// See https://github.com/libimobiledevice/libusbmuxd.
...
@@ -19,6 +25,7 @@ class IProxy {
...
@@ -19,6 +25,7 @@ class IProxy {
required
MapEntry
<
String
,
String
>
dyLdLibEntry
,
required
MapEntry
<
String
,
String
>
dyLdLibEntry
,
})
:
_dyLdLibEntry
=
dyLdLibEntry
,
})
:
_dyLdLibEntry
=
dyLdLibEntry
,
_processUtils
=
ProcessUtils
(
processManager:
processManager
,
logger:
logger
),
_processUtils
=
ProcessUtils
(
processManager:
processManager
,
logger:
logger
),
_logger
=
logger
,
_iproxyPath
=
iproxyPath
;
_iproxyPath
=
iproxyPath
;
/// Create a [IProxy] for testing.
/// Create a [IProxy] for testing.
...
@@ -41,6 +48,7 @@ class IProxy {
...
@@ -41,6 +48,7 @@ class IProxy {
final
String
_iproxyPath
;
final
String
_iproxyPath
;
final
ProcessUtils
_processUtils
;
final
ProcessUtils
_processUtils
;
final
Logger
_logger
;
final
MapEntry
<
String
,
String
>
_dyLdLibEntry
;
final
MapEntry
<
String
,
String
>
_dyLdLibEntry
;
Future
<
Process
>
forward
(
int
devicePort
,
int
hostPort
,
String
deviceId
)
{
Future
<
Process
>
forward
(
int
devicePort
,
int
hostPort
,
String
deviceId
)
{
...
@@ -51,6 +59,8 @@ class IProxy {
...
@@ -51,6 +59,8 @@ class IProxy {
'
$hostPort
:
$devicePort
'
,
'
$hostPort
:
$devicePort
'
,
'--udid'
,
'--udid'
,
deviceId
,
deviceId
,
if
(
_logger
.
isVerbose
)
'--debug'
,
],
],
environment:
Map
<
String
,
String
>.
fromEntries
(
environment:
Map
<
String
,
String
>.
fromEntries
(
<
MapEntry
<
String
,
String
>>[
_dyLdLibEntry
],
<
MapEntry
<
String
,
String
>>[
_dyLdLibEntry
],
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
57efbd53
...
@@ -25,7 +25,7 @@ import '../project.dart';
...
@@ -25,7 +25,7 @@ import '../project.dart';
import
'../reporting/reporting.dart'
;
import
'../reporting/reporting.dart'
;
import
'application_package.dart'
;
import
'application_package.dart'
;
import
'code_signing.dart'
;
import
'code_signing.dart'
;
import
'
devices
.dart'
;
import
'
iproxy
.dart'
;
import
'migrations/deployment_target_migration.dart'
;
import
'migrations/deployment_target_migration.dart'
;
import
'migrations/project_base_configuration_migration.dart'
;
import
'migrations/project_base_configuration_migration.dart'
;
import
'migrations/project_build_location_migration.dart'
;
import
'migrations/project_build_location_migration.dart'
;
...
@@ -73,7 +73,7 @@ class IMobileDevice {
...
@@ -73,7 +73,7 @@ class IMobileDevice {
Future
<
void
>
takeScreenshot
(
Future
<
void
>
takeScreenshot
(
File
outputFile
,
File
outputFile
,
String
deviceID
,
String
deviceID
,
IOSDeviceInterface
interfaceType
,
IOSDevice
Connection
Interface
interfaceType
,
)
{
)
{
return
_processUtils
.
run
(
return
_processUtils
.
run
(
<
String
>[
<
String
>[
...
@@ -81,7 +81,7 @@ class IMobileDevice {
...
@@ -81,7 +81,7 @@ class IMobileDevice {
outputFile
.
path
,
outputFile
.
path
,
'--udid'
,
'--udid'
,
deviceID
,
deviceID
,
if
(
interfaceType
==
IOSDeviceInterface
.
network
)
if
(
interfaceType
==
IOSDevice
Connection
Interface
.
network
)
'--network'
,
'--network'
,
],
],
throwOnError:
true
,
throwOnError:
true
,
...
...
packages/flutter_tools/lib/src/macos/xcdevice.dart
View file @
57efbd53
...
@@ -293,11 +293,11 @@ class XCDevice {
...
@@ -293,11 +293,11 @@ class XCDevice {
}
}
}
}
final
IOSDeviceInterface
interface
=
_interfaceType
(
device
);
final
IOSDevice
Connection
Interface
interface
=
_interfaceType
(
device
);
// Only support USB devices, skip "network" interface (Xcode > Window > Devices and Simulators > Connect via network).
// Only support USB devices, skip "network" interface (Xcode > Window > Devices and Simulators > Connect via network).
// TODO(jmagman): Remove this check once wirelessly detected devices can be observed and attached, https://github.com/flutter/flutter/issues/15072.
// TODO(jmagman): Remove this check once wirelessly detected devices can be observed and attached, https://github.com/flutter/flutter/issues/15072.
if
(
interface
!=
IOSDeviceInterface
.
usb
)
{
if
(
interface
!=
IOSDevice
Connection
Interface
.
usb
)
{
continue
;
continue
;
}
}
...
@@ -353,18 +353,18 @@ class XCDevice {
...
@@ -353,18 +353,18 @@ class XCDevice {
return
null
;
return
null
;
}
}
static
IOSDeviceInterface
_interfaceType
(
Map
<
String
,
dynamic
>
deviceProperties
)
{
static
IOSDevice
Connection
Interface
_interfaceType
(
Map
<
String
,
dynamic
>
deviceProperties
)
{
// Interface can be "usb", "network", or "none" for simulators
// Interface can be "usb", "network", or "none" for simulators
// and unknown future interfaces.
// and unknown future interfaces.
if
(
deviceProperties
.
containsKey
(
'interface'
))
{
if
(
deviceProperties
.
containsKey
(
'interface'
))
{
if
((
deviceProperties
[
'interface'
]
as
String
).
toLowerCase
()
==
'network'
)
{
if
((
deviceProperties
[
'interface'
]
as
String
).
toLowerCase
()
==
'network'
)
{
return
IOSDeviceInterface
.
network
;
return
IOSDevice
Connection
Interface
.
network
;
}
else
{
}
else
{
return
IOSDeviceInterface
.
usb
;
return
IOSDevice
Connection
Interface
.
usb
;
}
}
}
}
return
IOSDeviceInterface
.
none
;
return
IOSDevice
Connection
Interface
.
none
;
}
}
static
String
_sdkVersion
(
Map
<
String
,
dynamic
>
deviceProperties
)
{
static
String
_sdkVersion
(
Map
<
String
,
dynamic
>
deviceProperties
)
{
...
...
packages/flutter_tools/test/general.shard/ios/devices_test.dart
View file @
57efbd53
...
@@ -76,7 +76,7 @@ void main() {
...
@@ -76,7 +76,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
sdkVersion:
'13.3'
,
sdkVersion:
'13.3'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
});
});
...
@@ -92,7 +92,7 @@ void main() {
...
@@ -92,7 +92,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
sdkVersion:
'1.0.0'
,
sdkVersion:
'1.0.0'
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
).
majorSdkVersion
,
1
);
).
majorSdkVersion
,
1
);
expect
(
IOSDevice
(
expect
(
IOSDevice
(
'device-123'
,
'device-123'
,
...
@@ -105,7 +105,7 @@ void main() {
...
@@ -105,7 +105,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
sdkVersion:
'13.1.1'
,
sdkVersion:
'13.1.1'
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
).
majorSdkVersion
,
13
);
).
majorSdkVersion
,
13
);
expect
(
IOSDevice
(
expect
(
IOSDevice
(
'device-123'
,
'device-123'
,
...
@@ -118,7 +118,7 @@ void main() {
...
@@ -118,7 +118,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
sdkVersion:
'10'
,
sdkVersion:
'10'
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
).
majorSdkVersion
,
10
);
).
majorSdkVersion
,
10
);
expect
(
IOSDevice
(
expect
(
IOSDevice
(
'device-123'
,
'device-123'
,
...
@@ -131,7 +131,7 @@ void main() {
...
@@ -131,7 +131,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
sdkVersion:
'0'
,
sdkVersion:
'0'
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
).
majorSdkVersion
,
0
);
).
majorSdkVersion
,
0
);
expect
(
IOSDevice
(
expect
(
IOSDevice
(
'device-123'
,
'device-123'
,
...
@@ -144,7 +144,7 @@ void main() {
...
@@ -144,7 +144,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
sdkVersion:
'bogus'
,
sdkVersion:
'bogus'
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
).
majorSdkVersion
,
0
);
).
majorSdkVersion
,
0
);
});
});
...
@@ -160,7 +160,7 @@ void main() {
...
@@ -160,7 +160,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
sdkVersion:
'13.3 17C54'
,
sdkVersion:
'13.3 17C54'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
expect
(
await
device
.
sdkNameAndVersion
,
'iOS 13.3 17C54'
);
expect
(
await
device
.
sdkNameAndVersion
,
'iOS 13.3 17C54'
);
...
@@ -178,7 +178,7 @@ void main() {
...
@@ -178,7 +178,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
sdkVersion:
'13.3'
,
sdkVersion:
'13.3'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
expect
(
device
.
supportsRuntimeMode
(
BuildMode
.
debug
),
true
);
expect
(
device
.
supportsRuntimeMode
(
BuildMode
.
debug
),
true
);
...
@@ -202,7 +202,7 @@ void main() {
...
@@ -202,7 +202,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
sdkVersion:
'13.3'
,
sdkVersion:
'13.3'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
},
},
throwsAssertionError
,
throwsAssertionError
,
...
@@ -290,7 +290,7 @@ void main() {
...
@@ -290,7 +290,7 @@ void main() {
name:
'iPhone 1'
,
name:
'iPhone 1'
,
sdkVersion:
'13.3'
,
sdkVersion:
'13.3'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
logReader1
=
createLogReader
(
device
,
appPackage1
,
process1
);
logReader1
=
createLogReader
(
device
,
appPackage1
,
process1
);
logReader2
=
createLogReader
(
device
,
appPackage2
,
process2
);
logReader2
=
createLogReader
(
device
,
appPackage2
,
process2
);
...
@@ -351,7 +351,7 @@ void main() {
...
@@ -351,7 +351,7 @@ void main() {
logger:
logger
,
logger:
logger
,
platform:
macPlatform
,
platform:
macPlatform
,
fileSystem:
MemoryFileSystem
.
test
(),
fileSystem:
MemoryFileSystem
.
test
(),
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
device2
=
IOSDevice
(
device2
=
IOSDevice
(
...
@@ -365,7 +365,7 @@ void main() {
...
@@ -365,7 +365,7 @@ void main() {
logger:
logger
,
logger:
logger
,
platform:
macPlatform
,
platform:
macPlatform
,
fileSystem:
MemoryFileSystem
.
test
(),
fileSystem:
MemoryFileSystem
.
test
(),
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
});
});
...
...
packages/flutter_tools/test/general.shard/ios/ios_deploy_test.dart
View file @
57efbd53
...
@@ -14,8 +14,8 @@ import 'package:flutter_tools/src/base/file_system.dart';
...
@@ -14,8 +14,8 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/ios/devices.dart'
;
import
'package:flutter_tools/src/ios/ios_deploy.dart'
;
import
'package:flutter_tools/src/ios/ios_deploy.dart'
;
import
'package:flutter_tools/src/ios/iproxy.dart'
;
import
'../../src/common.dart'
;
import
'../../src/common.dart'
;
import
'../../src/fake_process_manager.dart'
;
import
'../../src/fake_process_manager.dart'
;
...
@@ -74,7 +74,7 @@ void main () {
...
@@ -74,7 +74,7 @@ void main () {
bundlePath:
'/'
,
bundlePath:
'/'
,
appDeltaDirectory:
appDeltaDirectory
,
appDeltaDirectory:
appDeltaDirectory
,
launchArguments:
<
String
>[
'--enable-dart-profiling'
],
launchArguments:
<
String
>[
'--enable-dart-profiling'
],
interfaceType:
IOSDeviceInterface
.
network
,
interfaceType:
IOSDevice
Connection
Interface
.
network
,
);
);
expect
(
await
iosDeployDebugger
.
launchAndAttach
(),
isTrue
);
expect
(
await
iosDeployDebugger
.
launchAndAttach
(),
isTrue
);
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_install_test.dart
View file @
57efbd53
...
@@ -61,7 +61,7 @@ void main() {
...
@@ -61,7 +61,7 @@ void main() {
final
IOSDevice
device
=
setUpIOSDevice
(
final
IOSDevice
device
=
setUpIOSDevice
(
processManager:
processManager
,
processManager:
processManager
,
fileSystem:
fileSystem
,
fileSystem:
fileSystem
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
artifacts:
artifacts
,
artifacts:
artifacts
,
);
);
final
bool
wasInstalled
=
await
device
.
installApp
(
iosApp
);
final
bool
wasInstalled
=
await
device
.
installApp
(
iosApp
);
...
@@ -90,7 +90,7 @@ void main() {
...
@@ -90,7 +90,7 @@ void main() {
final
IOSDevice
device
=
setUpIOSDevice
(
final
IOSDevice
device
=
setUpIOSDevice
(
processManager:
processManager
,
processManager:
processManager
,
fileSystem:
fileSystem
,
fileSystem:
fileSystem
,
interfaceType:
IOSDeviceInterface
.
network
,
interfaceType:
IOSDevice
Connection
Interface
.
network
,
artifacts:
artifacts
,
artifacts:
artifacts
,
);
);
final
bool
wasInstalled
=
await
device
.
installApp
(
iosApp
);
final
bool
wasInstalled
=
await
device
.
installApp
(
iosApp
);
...
@@ -275,7 +275,7 @@ IOSDevice setUpIOSDevice({
...
@@ -275,7 +275,7 @@ IOSDevice setUpIOSDevice({
@required
ProcessManager
processManager
,
@required
ProcessManager
processManager
,
FileSystem
fileSystem
,
FileSystem
fileSystem
,
Logger
logger
,
Logger
logger
,
IOSDeviceInterface
interfaceType
,
IOSDevice
Connection
Interface
interfaceType
,
Artifacts
artifacts
,
Artifacts
artifacts
,
})
{
})
{
logger
??=
BufferLogger
.
test
();
logger
??=
BufferLogger
.
test
();
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_project_test.dart
View file @
57efbd53
...
@@ -87,6 +87,6 @@ IOSDevice setUpIOSDevice(FileSystem fileSystem) {
...
@@ -87,6 +87,6 @@ IOSDevice setUpIOSDevice(FileSystem fileSystem) {
sdkVersion:
'13.3'
,
sdkVersion:
'13.3'
,
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
iProxy:
IProxy
.
test
(
logger:
BufferLogger
.
test
(),
processManager:
FakeProcessManager
.
any
()),
iProxy:
IProxy
.
test
(
logger:
BufferLogger
.
test
(),
processManager:
FakeProcessManager
.
any
()),
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
}
}
packages/flutter_tools/test/general.shard/ios/ios_device_start_nonprebuilt_test.dart
View file @
57efbd53
...
@@ -265,7 +265,7 @@ IOSDevice setUpIOSDevice({
...
@@ -265,7 +265,7 @@ IOSDevice setUpIOSDevice({
cache:
cache
,
cache:
cache
,
),
),
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
}
}
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_start_prebuilt_test.dart
View file @
57efbd53
...
@@ -379,7 +379,7 @@ IOSDevice setUpIOSDevice({
...
@@ -379,7 +379,7 @@ IOSDevice setUpIOSDevice({
cache:
cache
,
cache:
cache
,
),
),
cpuArchitecture:
DarwinArch
.
arm64
,
cpuArchitecture:
DarwinArch
.
arm64
,
interfaceType:
IOSDeviceInterface
.
usb
,
interfaceType:
IOSDevice
Connection
Interface
.
usb
,
);
);
}
}
...
...
packages/flutter_tools/test/general.shard/ios/mac_test.dart
View file @
57efbd53
...
@@ -12,7 +12,7 @@ import 'package:flutter_tools/src/base/logger.dart';
...
@@ -12,7 +12,7 @@ import 'package:flutter_tools/src/base/logger.dart';
import
'package:flutter_tools/src/base/process.dart'
;
import
'package:flutter_tools/src/base/process.dart'
;
import
'package:flutter_tools/src/build_info.dart'
;
import
'package:flutter_tools/src/build_info.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/ios/
devices
.dart'
;
import
'package:flutter_tools/src/ios/
iproxy
.dart'
;
import
'package:flutter_tools/src/ios/mac.dart'
;
import
'package:flutter_tools/src/ios/mac.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
...
@@ -77,7 +77,7 @@ void main() {
...
@@ -77,7 +77,7 @@ void main() {
expect
(()
async
=>
iMobileDevice
.
takeScreenshot
(
expect
(()
async
=>
iMobileDevice
.
takeScreenshot
(
outputFile
,
outputFile
,
'1234'
,
'1234'
,
IOSDeviceInterface
.
usb
,
IOSDevice
Connection
Interface
.
usb
,
),
throwsA
(
anything
));
),
throwsA
(
anything
));
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
});
});
...
@@ -100,7 +100,7 @@ void main() {
...
@@ -100,7 +100,7 @@ void main() {
await
iMobileDevice
.
takeScreenshot
(
await
iMobileDevice
.
takeScreenshot
(
outputFile
,
outputFile
,
'1234'
,
'1234'
,
IOSDeviceInterface
.
usb
,
IOSDevice
Connection
Interface
.
usb
,
);
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
});
});
...
@@ -123,7 +123,7 @@ void main() {
...
@@ -123,7 +123,7 @@ void main() {
await
iMobileDevice
.
takeScreenshot
(
await
iMobileDevice
.
takeScreenshot
(
outputFile
,
outputFile
,
'1234'
,
'1234'
,
IOSDeviceInterface
.
network
,
IOSDevice
Connection
Interface
.
network
,
);
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment