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
dec9d1f0
Commit
dec9d1f0
authored
Aug 07, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #503 from abarth/enable_checked_mode
Add a --checked argument to sky_tool start
parents
7df2c3d7
66ec3424
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
sky_tool
packages/flutter/lib/sky_tool
+11
-2
No files found.
packages/flutter/lib/sky_tool
View file @
dec9d1f0
...
@@ -127,6 +127,7 @@ class StartSky(object):
...
@@ -127,6 +127,7 @@ class StartSky(object):
help
=
'launch
%
s on the device'
%
APK_NAME
)
help
=
'launch
%
s on the device'
%
APK_NAME
)
start_parser
.
add_argument
(
'--install'
,
action
=
'store_true'
)
start_parser
.
add_argument
(
'--install'
,
action
=
'store_true'
)
start_parser
.
add_argument
(
'--poke'
,
action
=
'store_true'
)
start_parser
.
add_argument
(
'--poke'
,
action
=
'store_true'
)
start_parser
.
add_argument
(
'--checked'
,
action
=
'store_true'
)
start_parser
.
add_argument
(
'project_or_path'
,
nargs
=
'?'
,
type
=
str
,
start_parser
.
add_argument
(
'project_or_path'
,
nargs
=
'?'
,
type
=
str
,
default
=
'.'
)
default
=
'.'
)
start_parser
.
set_defaults
(
func
=
self
.
run
)
start_parser
.
set_defaults
(
func
=
self
.
run
)
...
@@ -212,11 +213,19 @@ class StartSky(object):
...
@@ -212,11 +213,19 @@ class StartSky(object):
if
args
.
poke
:
if
args
.
poke
:
url
+=
'?rand=
%
s'
%
random
.
random
()
url
+=
'?rand=
%
s'
%
random
.
random
()
subprocess
.
check_call
([
ADB_PATH
,
'shell'
,
cmd
=
[
ADB_PATH
,
'shell'
,
'am'
,
'start'
,
'am'
,
'start'
,
'-a'
,
'android.intent.action.VIEW'
,
'-a'
,
'android.intent.action.VIEW'
,
'-d'
,
url
,
'-d'
,
url
,
ANDROID_COMPONENT
])
]
if
args
.
checked
:
cmd
+=
[
'--ez'
,
'enable-checked-mode'
,
'true'
]
cmd
+=
[
ANDROID_COMPONENT
]
print
cmd
subprocess
.
check_call
(
cmd
)
class
StopSky
(
object
):
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