Zachary Anderson
2c94f2b4d9
[flutter_tool] Kill a timing out process before trying to drain its stdout/err streams ( #40159 )
2019-09-11 08:30:29 -07:00
stuartmorgan
e6ae95c4ce
Add an ephemeral directory to Windows projects ( #40194 )
...
Moves files generated in windows/flutter/ as part of the build to an ephemeral/ subdirectory, matching the approach used on macOS (and in the future, Windows).
Adds that directory to the generated properties file to minimize hard-coding of paths in the project.
2019-09-11 07:46:57 -07:00
stuartmorgan
ef97a69dab
Make Swift plugin template swift-format compliant ( #40195 )
...
swift-format will alphabetize import statements, so Flutter* should be
before Foundation. Also, separating the "Generated file" comment
prevents the formatter from thinking that the comment is associated with
the following import, rather than the file, if it does re-order.
2019-09-11 07:43:50 -07:00
Jonah Williams
32c946f31b
make sure we launch with dwds ( #40210 )
2019-09-10 20:49:27 -07:00
Jonah Williams
609a78fdca
Revert "build bundle with assemble ( #37508 )" ( #40204 )
2019-09-10 20:03:52 -07:00
Jonah Williams
f614144f0a
Add "web" server device to allow running flutter for web on arbitrary browsers ( #39951 )
...
* add web server device
* remove extra async
* fixes to server device
* testing updates
* fix test cases
* address comments
2019-09-10 19:29:31 -07:00
Jonah Williams
a7aff56741
build bundle with assemble ( #37508 )
2019-09-10 19:28:38 -07:00
Jonah Williams
8504f3ae13
Update the supported library set for Flutter for web ( #39983 )
2019-09-10 17:27:30 -07:00
Emmanuel Garcia
f098de1fde
Enable Proguard by default on release mode ( #39986 )
2019-09-10 17:22:55 -07:00
Francisco Magdaleno
362cde43ff
[windows] Searches for pre-release and 'all' Visual Studio installations ( #40011 )
2019-09-10 17:01:53 -07:00
Jenn Magder
12229264e2
Show CocoaPods version in hint text ( #40117 )
2019-09-10 13:26:32 -07:00
Sam Rawlins
2bc8f999f7
Remove visibleForTesting annotation; this constructor is used outside of testing ( #39997 )
2019-09-10 13:12:53 -07:00
Jonah Williams
f877c97b3b
Use persisted build information to automatically clean old outputs in assemble ( #39654 )
2019-09-10 09:57:47 -07:00
Jonah Williams
79ec38f7f3
ensure we use pub from flutter sdk ( #40131 )
2019-09-10 07:41:59 -07:00
Jonah Williams
477ae6b8ce
cleanup use of build runner internals ( #40045 )
2019-09-09 18:16:03 -07:00
Jonah Williams
eb7eb3ce3c
use build runners script gen ( #40049 )
2019-09-09 18:15:17 -07:00
Jonah Williams
0f365d3add
remove dart dir chrome profile ( #39934 )
2019-09-09 18:14:13 -07:00
Christopher Fujino
f945079c65
remove fallback code for ios/usb artifacts ( #39585 )
2019-09-06 14:23:20 -07:00
Jonah Williams
b2da79ce98
roll build runner and remove delay ( #39988 )
2019-09-06 14:19:12 -07:00
Harry Terkelsen
83da35fbbc
If there are no web plugins, don't generate a plugin registrant ( #39910 )
2019-09-06 12:54:31 -07:00
Jonah Williams
b4c3671718
Register reload sources call and make 'r' restart for web ( #39950 )
2019-09-06 10:41:15 -07:00
Jonah Williams
296e97f322
Revert "Correct libraries path and remove dart:io and dart:isolate for web dart platform ( #39364 )" ( #39985 )
...
This reverts commit 3f4d27c4bc
.
2019-09-06 09:24:14 -07:00
Jonah Williams
3f4d27c4bc
Correct libraries path and remove dart:io and dart:isolate for web dart platform ( #39364 )
2019-09-06 08:21:41 -07:00
stuartmorgan
4c2c7c417d
Switch to the Win32 Windows embedding ( #39836 )
...
Pulls the Win32 embedding artifacts instead of the GLFW versions for
Windows.
Fixes #38590
2019-09-05 10:09:12 -07:00
stuartmorgan
3948e8759e
Allow specifying a project for Xcode getInfo ( #39782 )
...
Avoids unnecessarily breaking projects that have another .xcodeproj in
their macos/ directory, which worked until the addition of the getInfo
call.
2019-09-05 10:07:03 -07:00
Jonah Williams
dd7694256e
remove input files argument to target ( #39769 )
2019-09-05 09:56:37 -07:00
Jonah Williams
4728ef5c16
handle browser refresh ( #39776 )
2019-09-05 09:56:05 -07:00
Jonah Williams
06348522c3
workaround for mangled web sdk source map packages ( #39774 )
2019-09-05 09:55:54 -07:00
Zachary Anderson
0f2af976a2
[flutter_tools] Add a timeout to another showBuildSettings command ( #39579 )
2019-09-05 09:50:46 -07:00
Kenzie Schmoll
d50d9c5e60
Register flutterVersion service in flutter_tools. ( #39524 )
...
* Register getFlutterVersion service in flutter_tools.
* Add short revision ids to response.
* Rename method and remove obsolete comments.
* Fix broken test by adding sendPeerNotifications flag.
* Implement mockPeer.sendNotification.
2019-09-05 09:50:36 -07:00
Emmanuel Garcia
d230234d67
Revert Maven dependencies ( #39747 ) (39157) ( #39784 )
2019-09-03 17:49:10 -07:00
Jonah Williams
d804097014
print launching on device message ( #39748 )
2019-09-03 12:55:06 -07:00
Jonah Williams
af851ab6bc
Revert "remove input files argument to target ( #39701 )" ( #39768 )
...
This reverts commit 5e7beaf7b8
.
2019-09-03 12:47:33 -07:00
Jonah Williams
5e7beaf7b8
remove input files argument to target ( #39701 )
2019-09-03 12:46:08 -07:00
Jonah Williams
476a4de17e
Add delay to recompile request for web ( #39752 )
2019-09-03 11:53:46 -07:00
Jonah Williams
76ebcc8a14
remove web flag from create ( #39756 )
2019-09-03 11:53:27 -07:00
Jonah Williams
cc9b614efd
minor cleanup and prevent multiple exit ( #39751 )
2019-09-03 11:00:39 -07:00
Harry Terkelsen
d33cf11556
Automatically generated registrants for web plugins ( #39628 )
...
* WIP on web plugin registry
* WIP on registering plugins
* WIP on web plugin registration
* Only generate `package:flutter_web_plugins` imports if plugins are
defined
* Add parsing test
* Add documentation
* Fix analyzer warnings
* add license headers
* Add tests for package:flutter_web_plugins
* Run `flutter update-packages --force-upgrade`
* Fix analyzer errors
* Fix analyzer error in test
* Update copyright and remove flutter SDK constraints
* Enable tests since engine has rolled
* add flutter_web_plugins tests to bots
* Create an empty .packages file for WebFs test
2019-09-03 10:37:34 -07:00
Zachary Anderson
b9029c7672
[flutter_tool] Add onError callback to asyncGuard. Use it in Doctor ( #39445 )
2019-09-03 08:14:44 -07:00
stuartmorgan
2e058142d2
Fix macOS App.framework version symlink ( #39702 )
...
The Current->A symlink in a framework shouldn't have a trailing slash;
some versions of codesigning consider the version with a trailing slash
unsignable.
2019-09-02 16:26:15 -07:00
Emmanuel Garcia
b63cb44105
Use new Maven artifacts from Gradle ( #39157 )
2019-09-02 10:35:17 -07:00
Jonah Williams
f12a5ec347
dont hide build commands ( #39555 )
2019-09-01 23:57:11 -07:00
Jonah Williams
f5eb12cdc2
filter error message from skip build script checks ( #39558 )
2019-09-01 23:56:56 -07:00
Devon Carew
e468296af3
remove a period from the service protocol printout ( #39545 )
2019-08-31 11:39:00 -07:00
Kaushik Iska
fc05c3738c
Flutter Plugin Tool supports multi-platform plugin config ( #38632 )
2019-08-29 21:51:31 -07:00
Jonah Williams
b2a4ebe38f
Handle single unsupported device ( #39541 )
2019-08-29 21:39:38 -07:00
Emmanuel Garcia
6266d5f35d
Log flags in build apk and appbundle ( #39457 )
2019-08-29 21:37:35 -07:00
Jonah Williams
2dbf0106d8
Create dart tool directory if it is missing ( #39543 )
2019-08-29 21:31:57 -07:00
Dan Field
eefe9d9527
keep symbols for profile ( #39530 )
2019-08-29 20:54:30 -07:00
Jonah Williams
359b532570
Remove run in shell and add unit test for chrome launching ( #39462 )
2019-08-29 19:35:06 -07:00
Dan Field
632526aab9
Update validation to support Xcode11 version ( #39463 )
2019-08-29 15:28:05 -07:00
Dan Field
cb965495d7
Reland "Relax arguments around local engine, build hello_world with bitcode" ( #39434 )
2019-08-28 15:19:04 -07:00
Emmanuel Garcia
4a1c62c28b
Add missing files in the Gradle wrapper directory ( #39145 )
2019-08-28 14:52:08 -07:00
Jonah Williams
f362419601
make sure profile is forwarded through build web command ( #39414 )
2019-08-28 14:05:01 -07:00
Jonah Williams
393106fbf5
Revert "Relax requirements around local engine, build hello_world with bitcode ( #39357 )" ( #39431 )
...
This reverts commit 202c1b4224
.
2019-08-28 13:12:45 -07:00
Dan Field
202c1b4224
Relax requirements around local engine, build hello_world with bitcode ( #39357 )
2019-08-28 10:27:01 -07:00
Zachary Anderson
b7c714e84c
[flutter_tool] Use a timeout for xcode showBuildSettings ( #39280 )
2019-08-28 10:03:53 -07:00
xster
4640690d0f
let flutter build aar use a local engine ( #39312 )
2019-08-27 23:46:33 -07:00
Jonah Williams
55a1ba761d
Use output dir instead of specific paths in assemble rules ( #39274 )
2019-08-27 22:52:51 -07:00
Jonah Williams
80f96ee662
surface errors from build runner ( #39358 )
2019-08-27 19:08:10 -07:00
Jonah Williams
23637844a3
fix source map loading and service protocol for flutter web ( #39189 )
2019-08-27 19:06:48 -07:00
Emmanuel Garcia
5353d5e877
Fid app bundle in Gradle 3.5 ( #39126 )
2019-08-27 17:08:02 -07:00
Jonah Williams
6f71ce26d6
Place terminalUi flag on terminal interface ( #39214 )
2019-08-27 14:20:51 -07:00
stuartmorgan
7407695816
Add profile support on macOS ( #39264 )
...
Fix some places where Debug/Release was treated as a binary switch.
Makes similar changes to Windows and Linux to simplify adding profile
support to those platforms in the future. This means `--profile` builds
will fail on Linux and Windows for now, but that's fine since they
aren't actually supported, and unlike `--release` don't provide useful
functionality at the native code level.
Also fixes 'stopApp' always using Debug on macOS, to avoid showing an
error when running Profile (or Release).
Fixes #33203
2019-08-26 16:30:30 -07:00
Jonah Williams
0f8b8c91a3
Kill resident runner on browser disconnect. ( #39066 )
2019-08-26 15:06:36 -07:00
Michael Klimushyn
e31d88f9c9
Downgrade the AndroidX warning ( #39147 )
...
Originally we wanted to cast as wide of a net and make the warning as
prominent as possible. Recently we've received feedback that the false
positives are more harmful than not, so downgrading the loud message to
a single line warning.
2019-08-26 14:30:22 -07:00
Zachary Anderson
e9bd2ef087
[flutter_tool] Some additional input validation for 'version' ( #39136 )
2019-08-26 12:12:50 -07:00
Christopher Fujino
d1e0273ecb
refactor cocoapods validator to detect broken install ( #38560 )
2019-08-23 09:21:09 -07:00
Jonah Williams
b3014ff5c0
add profile mode to flutter web applications ( #39073 )
2019-08-23 08:47:01 -07:00
Jonah Williams
b2d19d2af5
Add support for macOS release/profile mode (3 of 3) ( #38909 )
2019-08-23 08:46:24 -07:00
Michael Thomsen
01a5d112d5
Make forward calls run interactively ( #39052 )
2019-08-23 11:16:30 +02:00
Mehmet Fidanboylu
d921098dd4
Break dependency of tools/lib/src from lib/src/commands/ ( #39072 )
2019-08-22 21:14:03 -07:00
Jonah Williams
9818d2df3b
Add web workflow to default validators ( #39006 )
2019-08-22 09:30:19 -07:00
Zachary Anderson
663dc1d774
[flutter_tool] Teach crash reporter about HttpException ( #39005 )
2019-08-22 09:18:25 -07:00
Jonah Williams
33e7af728a
Dont throw StateError when calling assemble with bad target ( #39000 )
2019-08-21 23:44:39 -07:00
Jenn Magder
892d62f03a
Clean Xcode workspace during flutter clean ( #38992 )
2019-08-21 18:42:56 -07:00
∂ω∂
4277f364ff
flutter_tools/version: git log.showSignature=false ( #38576 )
2019-08-21 13:55:57 -07:00
Zachary Anderson
36e8b93d1c
[flutter_tool] Only send one crash report per run ( #38925 )
2019-08-21 13:07:52 -07:00
Zachary Anderson
3ceef86b9a
[flutter_tool] Handle crashes from doctor validators ( #38920 )
2019-08-21 11:15:02 -07:00
stuartmorgan
01530928f0
Add build warning for non-debug desktop builds ( #38932 )
...
When building in profile or release mode on desktop, add a prominent
warning that it's actually a debug build. This is to help address issues
with people being unaware of the current state of builds due to
following third-party guides rather than official documentation.
macOS is not included since PRs are in flight for macOS release support.
2019-08-20 20:16:29 -07:00
Jonah Williams
3b4ab4eb30
Throw error when hot reload enters bad state ( #38907 )
2019-08-20 14:30:03 -07:00
Zachary Anderson
398ac1f6c8
[flutter_tool] Remove some async file io ( #38654 )
2019-08-20 13:15:08 -07:00
Zachary Anderson
28bedb10da
[flutter_tool] Move http request close under try-catch ( #38894 )
2019-08-20 12:53:59 -07:00
Jonah Williams
2504a416bb
Create correctly structured framework for macOS ( #38748 )
2019-08-20 10:49:15 -07:00
Jonah Williams
700020fc6b
per file caching ( #38869 )
2019-08-20 10:40:02 -07:00
Jenn Magder
198c4f190a
Show process error when iOS install fails ( #38712 )
2019-08-20 10:29:49 -07:00
stuartmorgan
2daab305aa
Use GLFW-name artifacts on Windows and Linux ( #38858 )
...
Switch from the un-suffixed Windows and Linux libraries to the
_glfw-suffixed versions, in preparation for having non-GLFW versions
using the previous library/wrapper names.
Part of #38589
2019-08-20 06:29:49 -07:00
Jonah Williams
ae29174560
Handle compilation failures from web application ( #38723 )
2019-08-19 17:33:46 -07:00
Jonah Williams
7ed27b51a3
print service url when connecting to web applications ( #38823 )
2019-08-19 17:32:43 -07:00
Michael Thomsen
79d8967500
Fix publish cmd ( #38490 )
2019-08-19 08:02:13 +01:00
Todd Volkert
c22ce95e15
Change from using defaults
to plutil
for Plist parsing ( #38662 )
...
We were using the `defaults` command-line utility to parse
Plist files, but it was never supported by Apple, and it
appears that in an upcoming OS release, it will be less likely
to work:
> WARNING: The defaults command will be changed in an upcoming
> major release to only operate on preferences domains. General
> plist manipulation utilities will be folded into a different
> command-line program.
Fixes https://github.com/flutter/flutter/issues/37701
2019-08-16 17:10:07 -07:00
Dan Field
a3221667de
Kill dead code ( #38652 )
2019-08-16 10:10:23 -07:00
Andri Jasinski
267b858561
Disable xcode indexing in CI via COMPILER_INDEX_STORE_ENABLE=NO argument ( #37378 )
2019-08-16 08:29:45 -07:00
Todd Volkert
1d8deb1bb8
Handle case of a connected unpaired iOS device ( #38629 )
...
Fixes https://github.com/flutter/flutter/issues/36789
Fixes https://github.com/flutter/flutter/issues/37000
https://github.com/flutter/flutter/issues/36524
https://github.com/flutter/flutter/issues/24600
2019-08-15 17:59:37 -07:00
Jonah Williams
1df165ea13
Rename iOS arch for macOS release mode (macOS release mode 2 of 3) ( #38645 )
2019-08-15 17:38:35 -07:00
Jonah Williams
01feddbece
Support for macOS release mode (1 of 3) ( #37425 )
2019-08-15 16:36:45 -07:00
Zachary Anderson
0566971d29
[flutter_tool] Throw tool exit on malformed storage url override ( #38637 )
2019-08-15 14:59:46 -07:00
Zachary Anderson
e24a27d374
[flutter_tool] Flip create language defaults to swift and kotlin ( #38339 )
2019-08-15 12:13:28 -07:00
Jonah Williams
8d6dc620d6
fix rpc exception for real ( #38575 )
2019-08-15 12:13:12 -07:00
Zachary Anderson
a40ab895cf
[flutter_tool] Observatory connection error handling cleanup ( #38353 )
2019-08-15 12:13:03 -07:00