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
bfeaaa8f
Commit
bfeaaa8f
authored
Oct 23, 2015
by
Nathan Kerr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Web paths should always replace \ with /
parent
a9ef4e1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
device.dart
packages/flutter_tools/lib/src/device.dart
+9
-2
No files found.
packages/flutter_tools/lib/src/device.dart
View file @
bfeaaa8f
...
...
@@ -702,6 +702,13 @@ class AndroidDevice extends Device {
return
CryptoUtils
.
bytesToHex
(
sha1
.
close
());
}
/**
* Since Window's paths have backslashes, we need to convert those to forward slashes to make a valid URL
*/
String
_convertToURL
(
String
path
)
{
return
path
.
replaceAll
(
'
\\
'
,
'/'
);
}
@override
bool
isAppInstalled
(
ApplicationPackage
app
)
{
if
(!
isConnected
())
{
...
...
@@ -775,7 +782,7 @@ class AndroidDevice extends Device {
runCheckedSync
([
adbPath
,
'reverse'
,
serverPortString
,
serverPortString
]);
}
String
relativeDartMain
=
path
.
relative
(
mainDart
,
from:
serverRoot
);
String
relativeDartMain
=
_convertToURL
(
path
.
relative
(
mainDart
,
from:
serverRoot
)
);
String
url
=
'http://localhost:
$_serverPort
/
$relativeDartMain
'
;
if
(
poke
)
{
url
+=
'?rand=
${new Random().nextDouble()}
'
;
...
...
@@ -837,7 +844,7 @@ class AndroidDevice extends Device {
//Split the columns by 1 or more spaces
RegExp
columnPattern
=
new
RegExp
(
'[ ]+'
);
processes
.
forEach
((
String
process
){
processes
.
forEach
((
String
process
)
{
if
(
process
.
contains
(
pattern
))
{
//The last column is the Process ID
String
processId
=
process
.
split
(
columnPattern
).
last
;
...
...
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