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
5abe2d33
Unverified
Commit
5abe2d33
authored
Jul 28, 2020
by
Jenn Magder
Committed by
GitHub
Jul 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow hyphens in iOS UDIDs (#62225)
parent
50b7940b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
xcode.dart
packages/flutter_tools/lib/src/macos/xcode.dart
+3
-1
devices_test.dart
...es/flutter_tools/test/general.shard/ios/devices_test.dart
+2
-2
xcode_test.dart
...es/flutter_tools/test/general.shard/macos/xcode_test.dart
+18
-10
No files found.
packages/flutter_tools/lib/src/macos/xcode.dart
View file @
5abe2d33
...
...
@@ -334,8 +334,9 @@ class XCDevice {
}
// Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
// Attach: 00008027-00192736010F802E
// Detach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
final
RegExp
_observationIdentifierPattern
=
RegExp
(
r'^(\w*): (
\w
*)$'
);
final
RegExp
_observationIdentifierPattern
=
RegExp
(
r'^(\w*): (
[\w-]
*)$'
);
Future
<
void
>
_startObservingTetheredIOSDevices
()
async
{
try
{
...
...
@@ -367,6 +368,7 @@ class XCDevice {
//
// Listening for all devices, on both interfaces.
// Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
// Attach: 00008027-00192736010F802E
// Detach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
// Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
final
RegExpMatch
match
=
_observationIdentifierPattern
.
firstMatch
(
line
);
...
...
packages/flutter_tools/test/general.shard/ios/devices_test.dart
View file @
5abe2d33
...
...
@@ -356,8 +356,8 @@ void main() {
);
device2
=
IOSDevice
(
'
43ad2fda7991b34fe1acbda82f9e2fd3d6ddc9f7
'
,
name:
'iP
hone 6s
'
,
'
00008027-00192736010F802E
'
,
name:
'iP
ad Pro
'
,
sdkVersion:
'13.3'
,
cpuArchitecture:
DarwinArch
.
arm64
,
iProxy:
IProxy
.
test
(
logger:
logger
,
processManager:
FakeProcessManager
.
any
()),
...
...
packages/flutter_tools/test/general.shard/macos/xcode_test.dart
View file @
5abe2d33
...
...
@@ -400,29 +400,37 @@ void main() {
'observe'
,
'--both'
,
],
stdout:
'Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
\n
'
'Attach: 00008027-00192736010F802E
\n
'
'Detach: d83d5bc53967baa0ee18626ba87b6254b2ab5418'
,
stderr:
'Some error'
,
));
final
Completer
<
void
>
attach
=
Completer
<
void
>();
final
Completer
<
void
>
detach
=
Completer
<
void
>();
final
Completer
<
void
>
attach1
=
Completer
<
void
>();
final
Completer
<
void
>
attach2
=
Completer
<
void
>();
final
Completer
<
void
>
detach1
=
Completer
<
void
>();
// Attach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
// Attach: 00008027-00192736010F802E
// Detach: d83d5bc53967baa0ee18626ba87b6254b2ab5418
xcdevice
.
observedDeviceEvents
().
listen
((
Map
<
XCDeviceEvent
,
String
>
event
)
{
expect
(
event
.
length
,
1
);
if
(
event
.
containsKey
(
XCDeviceEvent
.
attach
))
{
expect
(
event
[
XCDeviceEvent
.
attach
],
'd83d5bc53967baa0ee18626ba87b6254b2ab5418'
);
attach
.
complete
();
if
(
event
[
XCDeviceEvent
.
attach
]
==
'd83d5bc53967baa0ee18626ba87b6254b2ab5418'
)
{
attach1
.
complete
();
}
else
if
(
event
[
XCDeviceEvent
.
attach
]
==
'00008027-00192736010F802E'
)
{
attach2
.
complete
();
}
}
else
if
(
event
.
containsKey
(
XCDeviceEvent
.
detach
))
{
expect
(
event
[
XCDeviceEvent
.
detach
],
'd83d5bc53967baa0ee18626ba87b6254b2ab5418'
);
detach
.
complete
();
detach
1
.
complete
();
}
else
{
fail
(
'Unexpected event'
);
}
});
await
attach
.
future
;
await
detach
.
future
;
await
attach1
.
future
;
await
attach2
.
future
;
await
detach1
.
future
;
expect
(
logger
.
traceText
,
contains
(
'xcdevice observe error: Some error'
));
});
});
...
...
@@ -463,7 +471,7 @@ void main() {
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone8,1",
"identifier" : "
d83d5bc53967baa0ee18626ba87b6254b2ab5418
",
"identifier" : "
00008027-00192736010F802E
",
"architecture" : "arm64",
"modelName" : "iPhone 6s",
"name" : "An iPhone (Space Gray)"
...
...
@@ -542,7 +550,7 @@ void main() {
));
final
List
<
IOSDevice
>
devices
=
await
xcdevice
.
getAvailableIOSDevices
();
expect
(
devices
,
hasLength
(
3
));
expect
(
devices
[
0
].
id
,
'
d83d5bc53967baa0ee18626ba87b6254b2ab5418
'
);
expect
(
devices
[
0
].
id
,
'
00008027-00192736010F802E
'
);
expect
(
devices
[
0
].
name
,
'An iPhone (Space Gray)'
);
expect
(
await
devices
[
0
].
sdkNameAndVersion
,
'iOS 13.3'
);
expect
(
devices
[
0
].
cpuArchitecture
,
DarwinArch
.
arm64
);
...
...
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