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
7224089c
Commit
7224089c
authored
Jul 23, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #230 from abarth/use_dart_http_server
Switch sky_tool to use a Dart-based HTTP server
parents
8998132d
278e0ab2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
sky_tool
packages/flutter/lib/sky_tool
+2
-2
pubspec.yaml
packages/flutter/pubspec.yaml
+3
-2
No files found.
packages/flutter/lib/sky_tool
View file @
7224089c
...
...
@@ -28,6 +28,7 @@ ANDROID_COMPONENT = '%s/%s.SkyDemoActivity' % (ANDROID_PACKAGE, ANDROID_PACKAGE)
ADB_PATH
=
'adb'
# FIXME: Do we need to look in $DART_SDK?
DART_PATH
=
'dart'
PUB_PATH
=
'pub'
PID_FILE_PATH
=
"/tmp/sky_tool.pids"
PID_FILE_KEYS
=
frozenset
([
...
...
@@ -44,10 +45,9 @@ def _port_in_use(port):
return
sock
.
connect_ex
((
'localhost'
,
port
))
==
0
# We need something to serve dart files, python's httpserver is sufficient.
def
_start_http_server
(
port
,
root
):
server_command
=
[
'python'
,
'-m'
,
'SimpleHTTPS
erver'
,
str
(
port
),
PUB_PATH
,
'run'
,
'sky_tools:sky_s
erver'
,
str
(
port
),
]
return
subprocess
.
Popen
(
server_command
,
cwd
=
root
)
.
pid
...
...
packages/flutter/pubspec.yaml
View file @
7224089c
author
:
Chromium Authors <sky-dev@googlegroups.com>
dependencies
:
cassowary
:
^0.1.7
mojo
:
^0.0.17
mojo_services
:
^0.0.15
mojo
:
^0.0.17
mojom
:
^0.0.17
newton
:
^0.1.0
sky_tools
:
^0.0.2
vector_math
:
^1.4.3
description
:
Dart files to support executing inside Sky
.
description
:
Dart files to support executing inside Sky
environment
:
sdk
:
'
>=1.8.0
<2.0.0'
homepage
:
https://github.com/domokit/mojo/tree/master/sky
...
...
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