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
f0b7ef83
Commit
f0b7ef83
authored
Oct 11, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1572 from abarth/bin_flutter
Add a bin/flutter.dart to the flutter package
parents
760811e6
85d8f8c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
flutter.dart
packages/flutter/bin/flutter.dart
+7
-0
sky_tool
packages/flutter/lib/sky_tool
+6
-6
pubspec.yaml
packages/flutter/pubspec.yaml
+3
-0
No files found.
packages/flutter/bin/flutter.dart
0 → 100644
View file @
f0b7ef83
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky_tools/executable.dart'
as
executable
;
main
(
List
<
String
>
args
)
=>
executable
.
main
(
args
);
packages/flutter/lib/sky_tool
View file @
f0b7ef83
...
...
@@ -1255,15 +1255,15 @@ class SkyShellRunner(object):
# Also make sure that args is consistent with machine state for local builds
if
args
.
local_build
and
args
.
sky_src_path
is
None
:
real_
sky_path
=
os
.
path
.
realpath
(
os
.
path
.
join
(
PACKAGES_DIR
,
'sky
'
))
match
=
re
.
match
(
r'pub.dartlang.org/
sky'
,
real_sky
_path
)
real_
flutter_path
=
os
.
path
.
realpath
(
os
.
path
.
join
(
PACKAGES_DIR
,
'flutter
'
))
match
=
re
.
match
(
r'pub.dartlang.org/
flutter'
,
real_flutter
_path
)
if
match
is
not
None
:
args
.
local_build
=
False
else
:
sky_src_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
real_
sky
_path
))))
os
.
path
.
dirname
(
real_
flutter
_path
))))
if
sky_src_path
==
'/'
or
sky_src_path
==
''
:
args
.
local_build
=
False
else
:
...
...
@@ -1275,9 +1275,9 @@ class SkyShellRunner(object):
'to your pubspec.yaml file and then run pub get again:
\n
'
'dependency_overrides:
\n
'
' material_design_icons:
\n
'
' path: /path/to/
sky_
engine/src/sky/packages/material_design_icons
\n
'
'
sky
:
\n
'
' path: /path/to/
sky_
engine/src/sky/packages/sky
\n
'
)
' path: /path/to/
flutter/
engine/src/sky/packages/material_design_icons
\n
'
'
flutter
:
\n
'
' path: /path/to/
flutter/
engine/src/sky/packages/sky
\n
'
)
if
args
.
local_build
:
if
not
os
.
path
.
isdir
(
args
.
sky_src_path
):
logging
.
warning
(
'The selected sky-src-path ('
+
args
.
sky_src_path
+
') does not exist.'
...
...
packages/flutter/pubspec.yaml
View file @
f0b7ef83
...
...
@@ -16,3 +16,6 @@ dependencies:
intl
:
'
>=0.12.4+2
<0.13.0'
environment
:
sdk
:
'
>=1.12.0
<2.0.0'
executables
:
flutter
:
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