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
1ddc71aa
Commit
1ddc71aa
authored
Nov 14, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #379 from TheBosZ/master
Updates for Windows development
parents
afaedbf2
d36af446
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
flutter.bat
bin/flutter.bat
+4
-1
device.dart
packages/flutter_tools/lib/src/device.dart
+1
-1
No files found.
bin/flutter.bat
View file @
1ddc71aa
...
@@ -12,6 +12,8 @@ SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart
...
@@ -12,6 +12,8 @@ SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart
REM TODO: Don't require dart to be on the user's path
REM TODO: Don't require dart to be on the user's path
SET dart=dart
SET dart=dart
REM Set current working directory to the flutter directory
PUSHD %flutter_root%
REM IF doesn't have an "or". Instead, just use GOTO
REM IF doesn't have an "or". Instead, just use GOTO
FOR /f %%r IN ('git rev-parse HEAD') DO SET revision=%%r
FOR /f %%r IN ('git rev-parse HEAD') DO SET revision=%%r
IF NOT EXIST %snapshot_path% GOTO do_snapshot
IF NOT EXIST %snapshot_path% GOTO do_snapshot
...
@@ -34,10 +36,11 @@ CALL pub.bat get
...
@@ -34,10 +36,11 @@ CALL pub.bat get
CD "%flutter_root%"
CD "%flutter_root%"
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
<nul SET /p=%revision%> "%stamp_path%"
<nul SET /p=%revision%> "%stamp_path%"
goto :eof
:after_snapshot
:after_snapshot
REM Go back to last working directory
POPD
CALL %dart% "%snapshot_path%" %*
CALL %dart% "%snapshot_path%" %*
IF /I "%ERRORLEVEL%" EQU "253" (
IF /I "%ERRORLEVEL%" EQU "253" (
...
...
packages/flutter_tools/lib/src/device.dart
View file @
1ddc71aa
...
@@ -509,7 +509,7 @@ class AndroidDevice extends Device {
...
@@ -509,7 +509,7 @@ class AndroidDevice extends Device {
// 015d172c98400a03 device usb:340787200X product:nakasi model:Nexus_7 device:grouper
// 015d172c98400a03 device usb:340787200X product:nakasi model:Nexus_7 device:grouper
RegExp
deviceRegex1
=
new
RegExp
(
RegExp
deviceRegex1
=
new
RegExp
(
r'^(\S+)\s+device\s+
\S+\s+
product:(\S+)\s+model:(\S+)\s+device:(\S+)$'
);
r'^(\S+)\s+device\s+
.*
product:(\S+)\s+model:(\S+)\s+device:(\S+)$'
);
// 0149947A0D01500C device usb:340787200X
// 0149947A0D01500C device usb:340787200X
RegExp
deviceRegex2
=
new
RegExp
(
r'^(\S+)\s+device\s+\S+$'
);
RegExp
deviceRegex2
=
new
RegExp
(
r'^(\S+)\s+device\s+\S+$'
);
...
...
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