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
f6eb26c0
Commit
f6eb26c0
authored
Jul 22, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #207 from abarth/fix_sky_tool
Update sky_tool now that sky:// isn't a thing
parents
0a427a0a
665f6c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sky_tool
packages/flutter/lib/sky_tool
+5
-3
No files found.
packages/flutter/lib/sky_tool
View file @
f6eb26c0
...
...
@@ -23,6 +23,7 @@ SKY_SERVER_PORT = 9888
OBSERVATORY_PORT
=
8181
APK_NAME
=
'SkyDemo.apk'
ANDROID_PACKAGE
=
"org.domokit.sky.demo"
ANDROID_COMPONENT
=
'
%
s/
%
s.SkyDemoActivity'
%
(
ANDROID_PACKAGE
,
ANDROID_PACKAGE
)
# FIXME: This assumes adb is in $PATH, we could look for ANDROID_HOME, etc?
ADB_PATH
=
'adb'
# FIXME: Do we need to look in $DART_SDK?
...
...
@@ -111,7 +112,7 @@ class Pids(object):
def
_url_for_path
(
port
,
root
,
path
):
relative_path
=
os
.
path
.
relpath
(
path
,
root
)
return
'
sky
://localhost:
%
s/
%
s'
%
(
port
,
relative_path
)
return
'
http
://localhost:
%
s/
%
s'
%
(
port
,
relative_path
)
class
StartSky
(
object
):
...
...
@@ -193,13 +194,14 @@ class StartSky(object):
pids
[
'remote_sky_server_port'
]
=
sky_server_port
# The load happens on the remote device, use the remote port.
sky_
url
=
_url_for_path
(
pids
[
'remote_sky_server_port'
],
sky_server_root
,
url
=
_url_for_path
(
pids
[
'remote_sky_server_port'
],
sky_server_root
,
main_dart
)
subprocess
.
check_call
([
ADB_PATH
,
'shell'
,
'am'
,
'start'
,
'-a'
,
'android.intent.action.VIEW'
,
'-d'
,
sky_url
])
'-d'
,
url
,
ANDROID_COMPONENT
])
class
StopSky
(
object
):
...
...
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