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
84c27333
Commit
84c27333
authored
Nov 10, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #274 from devoncarew/init_tweak
fix a ws issue in the sample app
parents
b9bc5e79
20c2aa16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
init.dart
packages/flutter_tools/lib/src/commands/init.dart
+1
-1
device.dart
packages/flutter_tools/lib/src/device.dart
+3
-3
No files found.
packages/flutter_tools/lib/src/commands/init.dart
View file @
84c27333
...
...
@@ -170,7 +170,7 @@ void main() {
}
class FlutterDemo extends StatelessComponent {
Widget build(BuildContext context)
{
Widget build(BuildContext context) {
return new Scaffold(
toolBar: new ToolBar(
center: new Text("Flutter Demo")
...
...
packages/flutter_tools/lib/src/device.dart
View file @
84c27333
...
...
@@ -575,10 +575,10 @@ class AndroidDevice extends Device {
_adbPath
=
_getAdbPath
();
_hasAdb
=
_checkForAdb
();
// Checking for
lollipop
only needs to be done if we are starting an
// Checking for
Jelly Bean
only needs to be done if we are starting an
// app, but it has an important side effect, which is to discard any
// progress messages if the adb server is restarted.
_hasValidAndroid
=
_checkFor
LollipopOrLater
();
_hasValidAndroid
=
_checkFor
SupportedAndroidVersion
();
if
(!
_hasAdb
||
!
_hasValidAndroid
)
{
_logging
.
warning
(
'Unable to run on Android.'
);
...
...
@@ -660,7 +660,7 @@ class AndroidDevice extends Device {
return
false
;
}
bool
_checkFor
LollipopOrLater
()
{
bool
_checkFor
SupportedAndroidVersion
()
{
try
{
// If the server is automatically restarted, then we get irrelevant
// output lines like this, which we want to ignore:
...
...
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