Michael Goderbauer
b291bf5d6a
Partial rollback of #10204 ( #10256 )
...
This broke Fuchsia as they haven't updated to Dart 1.24 yet :(
2017-05-22 13:28:59 -07:00
Todd Volkert
aa9c782693
Add initial list of known Android hardware ( #10249 )
...
Our emulator detection was based on a simple heuristic that was
failing for the Samsung Galaxy S8. Any heuristic is flawed since
Android devices can report whatever they want to adb, but this
change attempts to tighten the detection by listing known models
(by their ro.hardware property). Again, these values could be
spoofed by emulator system images, but it's less likely to be
an issue than with our previous (and fall-back) heuristic.
Fixes #10203
Related: #10248
2017-05-22 10:47:02 -07:00
Michael Goderbauer
d33fd923bf
Print locale in flutter doctor ( #10204 )
...
This helps to debug encoding issues that are believed to only happen for certain locales (see https://github.com/flutter/flutter/issues/10198 fo example).
DO NOT SUBMIT until Dart SDK has been bumped (https://github.com/flutter/flutter/pull/10110 ) as this depends on new API.
2017-05-22 10:21:10 -07:00
Rafal Wachol
ee34516491
Moved FLUTTER_HOME to FLUTTER_ROOT in gradle plugin ( #10100 )
2017-05-22 07:50:31 -07:00
Alexander Aprelev
5b1e972948
Filter out '\n' from terminal input. ( #10220 )
...
* Remove '\n' from terminal input.
* Use trim instead of replaceAll
* Add unit test
* Cleanup the test
* Fixed lint
* Style adjustments
* Forgotten @override
* Revert "Forgotten @override"
Accidently added extra files.
This reverts commit 0aba24fc8ea321b3a4d0cd8aed7f589378393d96.
* Just @override change
2017-05-21 15:15:44 -07:00
Brian Slesinsky
922c2d1213
rename Android module file to include project name ( #10163 )
...
IDEA users sometimes want to create multiple Flutter modules
in the same IDEA project. See discussion:
https://github.com/flutter/flutter-intellij/issues/1014
In this case, we will actually have pairs of modules,
one for Flutter and one for Android. Renaming the
android module to make the relationship obvious.
But, don't delete the old file yet to avoid breaking
existing users. We can do that after the next
Flutter plugin release.
2017-05-19 13:36:53 -07:00
Todd Volkert
a88379399e
Don't fail assert when we send an error to the plugin. ( #10207 )
2017-05-19 12:34:41 -07:00
Collin Jackson
f5f0895990
Comment out use_frameworks by default so that codelab users don't have to. ( #10205 )
2017-05-19 10:45:35 -07:00
Ian Hickson
77d67c9d30
fix flutter analyze --dartdocs ( #10182 )
2017-05-19 08:46:34 -07:00
Chris Bracken
d3fbf2ae6f
Avoid duplicate exceptions on VM Service Mock failure ( #10197 )
...
On failure to configure a mock VM service, we get a useful exception in
setUpAll(). This change prevents an additional failure in tearDownAll()
that provides no additional useful diagnostic info.
2017-05-18 22:56:12 -07:00
Todd Volkert
a253605c76
Fall back to IPv4 in devfs_test.dart ( #10196 )
...
Fixes the broken build in the Chromium bots
2017-05-18 22:41:41 -07:00
Todd Volkert
e8ac331d87
Change devfs_test to use IPv6 ( #10194 )
2017-05-18 21:45:24 -07:00
Michael Goderbauer
fdbb1fbbc7
Add a note about how to edit platform code in IDE to flutter create --plugin ( #10189 )
2017-05-18 18:18:51 -07:00
xster
9d3fb1f309
Auto provision iOS deploy 2/3 - prompt user to choose a certificate ( #10025 )
...
* first pass
* improvements
* extract terminal.dart
* rebase
* add default terminal to context
* The analyzer wants the ../ imports in front of the ./ imports
* review notes
2017-05-18 11:26:43 -07:00
Mikkel Nygaard Ravn
bae5a5cdf3
Simplify flutter create AppDelegate template ( #10139 )
2017-05-18 10:01:05 +02:00
Sarah Zakarias
c67b46e328
Update plugin README with link to plugin guide ( #10137 )
2017-05-17 23:06:40 +02:00
Ian Hickson
73dcca65f7
Nits for protocol discovery ( #10112 )
...
Rather than complain about these in a code review I figured I'd just fix them. :-)
2017-05-16 11:38:07 -07:00
Collin Jackson
7154ac48db
Merge remote-tracking branch 'origin/alpha'
2017-05-16 09:32:27 -07:00
Collin Jackson
00214fa7bd
Fix call to unimplemented application:openURL:options: in iOS template ( #10107 )
...
Fixes #10106
2017-05-16 09:31:35 -07:00
Todd Volkert
10decc7c19
Fix race condition in protocol_discovery.dart ( #10092 )
...
For some reaosn, when we discovered our URI, we were re-instantiating
the `Completer` instance variable whose future we listen to in `nextUri()`.
This led to a race between a caller calling `nextUri()` and us discovering
the URI. If we happened to discover our URI before a caller called
`nextUri()`, then they would be left waiting on a future from the newly
allocated `Completer` (which would never complete).
Fixes #10064
2017-05-16 08:25:51 -07:00
xster
b232a84b0d
Auto provision iOS deploy 1/3 - find and use the first valid code signing certs ( #9946 )
...
* blind wrote everything except the user prompt
* works
* Add some logical refinements
* Make certificates unique and add more instructinos
* print more info
* Add test
* use string is empty
* review notes
* some formatting around commands
* add a newline
2017-05-15 12:54:32 -07:00
Ian Hickson
db84df230d
Some tools to dump other trees. ( #9999 )
2017-05-12 15:51:58 -07:00
Ian Hickson
292abf7223
"flutter packages pub ..." to passthrough to dart pub ( #10044 )
2017-05-12 15:40:35 -07:00
Ian Hickson
7c9c5a296c
Rearrange tests to more closely match code structure ( #10043 )
2017-05-12 10:44:52 -07:00
Ian Hickson
18eac03d76
VerboseLogger should just wrap the parent Logger ( #10020 )
...
This way, you can test things even with a VerboseLogger.
2017-05-12 10:00:11 -07:00
Devon Carew
2f737cf94e
change a printStatus() to a printTrace() ( #9992 )
2017-05-11 08:49:26 -07:00
Ian Hickson
dddf572780
Minor tweaks to flutter doctor ( #9963 )
2017-05-10 16:28:12 -07:00
Todd Volkert
ff7d9432b8
Allow for different adb server version messages in device detection ( #9974 )
2017-05-10 15:51:08 -07:00
Jason Simmons
d1fa21166b
Use runCommand to start sdkmanager and adjust the executable name for Windows ( #9962 )
...
Fixes https://github.com/flutter/flutter/issues/9954
2017-05-10 12:42:42 -07:00
Alexandre Ardhuin
1f0b2d8a68
bump to linter-0.1.31 ( #9947 )
2017-05-10 08:20:13 +02:00
Ian Hickson
9f1d5ba50e
Rev versions for alpha cut ( #9940 )
...
And add a script to rev the versions.
2017-05-09 17:06:52 -07:00
Jason Simmons
d780c4b205
Revert "Gracefully handle !isValid in AndroidStudio.gradleExecutable ( #9893 )" ( #9934 )
...
Fixes https://github.com/flutter/flutter/issues/9929
2017-05-09 13:11:29 -07:00
Todd Volkert
a667bf935e
Gracefully handle !isValid in AndroidStudio.gradleExecutable ( #9893 )
...
Fixes #9866
2017-05-09 10:54:54 -07:00
Jason Simmons
f44ba8b9c9
Add a flutter doctor --android-licenses command that locates and runs the Android SDK license manager ( #9892 )
...
See https://github.com/flutter/flutter/issues/8438
2017-05-09 10:18:45 -07:00
Michael Thomsen
5cec108023
Roll android build tools to 25.0.3 ( #9922 )
...
* Roll android build tools to 25.0.3
* Roll android build tools to 25.0.3 in templates
2017-05-09 18:58:46 +02:00
Mikkel Nygaard Ravn
76dbfe9a38
Fixed android template ( #9917 )
2017-05-09 14:41:39 +02:00
Mikkel Nygaard Ravn
200952bc65
Fix of android template ( #9915 )
2017-05-09 14:24:32 +02:00
Mikkel Nygaard Ravn
c1feee93d3
iOS plugin registry ( #9818 )
2017-05-09 12:00:07 +02:00
Mikkel Nygaard Ravn
24a3e58cd0
Android plugin registry ( #9715 )
2017-05-09 11:43:19 +02:00
Yegor
aba6095444
make zero-device test hermetic ( #9891 )
2017-05-08 17:57:20 -07:00
Michael Goderbauer
ca4d7211b0
Enforce valid package names on flutter create ( #9854 )
...
* Enforce valid package names on flutter create
Fixes #9564
* refactor
* fix other tests
2017-05-08 14:08:59 -07:00
Yegor
fa47c34f76
fix version stamp Map check ( #9890 )
2017-05-08 12:59:33 -07:00
Todd Volkert
a29585298e
Add level field to the "showMessage" daemon event. ( #9889 )
...
Spawned from a discussion in https://github.com/flutter/flutter-intellij/pull/1003
2017-05-08 11:49:47 -07:00
Michael Thomsen
a625d3e140
Revert "Upgrade to most recent android build tools version ( #9878 )" ( #9888 )
...
This reverts commit 5ed2984e75d9c71ac68ee87158d529094aed54e0.
2017-05-08 20:33:12 +02:00
Michael Thomsen
5ed2984e75
Upgrade to most recent android build tools version ( #9878 )
2017-05-08 20:12:32 +02:00
xster
31b958378a
Report flutter doctor success/failure ( #9664 )
...
* record doctor failures
* fully mock out analytics dependencies
2017-05-08 11:10:36 -07:00
xster
c74225e00d
Report timing on failed executions too ( #9661 )
...
* handle errors
* review notes
2017-05-08 11:10:21 -07:00
P.Y. Laligand
8cef5232d5
Use the correct set of options to analyze Flutter packages. ( #9758 )
...
This affects the Fuchsia build which will soon run analysis by default.
2017-05-05 17:18:58 -07:00
Michael Goderbauer
6337a0553c
Don't crash on flutter create . on Windows ( #9850 )
...
* Don't crash on `flutter create .`
Fixes #9828
* review comments
2017-05-05 15:47:13 -07:00
Todd Volkert
2841497344
Support IPv6 in coverage collection ( #9841 )
...
Builds on engine fixes to #9813
Also fixes #7366
2017-05-05 11:09:55 -07:00