Emmanuel Garcia
8e23179627
Revert "Use AndroidX in new projects by default ( #40925 )" ( #40995 )
2019-09-20 13:37:10 -07:00
Jonah Williams
57c319a9a0
Revert "Run flutter update-packages --force-upgrade
. ( #40766 )" ( #40979 )
2019-09-20 12:23:19 -04:00
Emmanuel Garcia
407668f4d5
Stop using deprecated features from Gradle ( #40900 )
2019-09-20 08:29:53 -07:00
Emmanuel Garcia
f7173dcc60
Use AndroidX in new projects by default ( #40925 )
2019-09-20 08:29:21 -07:00
Emmanuel Garcia
96482eeb5c
Re-enable AAR plugins when an AndroidX failure occurred ( #40810 )
2019-09-20 08:28:52 -07:00
Tong Wu
c238045a96
Run flutter update-packages --force-upgrade
. ( #40766 )
2019-09-20 07:58:53 -07:00
stuartmorgan
0412977e48
Support create for macOS (app and plugin) ( #40851 )
...
Adds macOS support for `flutter create`:
- Currently it is behind a hidden flag.
- Adds a TargetPlatform workaround to lib/main.dart in the standard app template when enabled.
- Supports `app` and `plugin`; `module` support doesn't yet exist for macOS in general.
This will eliminate the need to use FDE's examples as templates on macOS. The templates are based on the current state of FDE's examples, with templating support added (and with adoption of the new application delegate in the app, which hadn't been done yet in FDE, eliminating some boilerplate from the template).
Fixes #30703
2019-09-19 17:06:18 -07:00
stuartmorgan
86c342eceb
Move iOS and Android gitignore rules into folders ( #40864 )
...
Rather than have a monolithic .gitignore covering all platforms in the
app template, have each platform folder contain its own rules.
Fixes #40793
2019-09-19 17:04:53 -07:00
Jonah Williams
f8ba6756c3
Revert "Reland: implement build bundle with assemble ( #40470 )" ( #40862 )
2019-09-19 09:04:07 -07:00
Jonah Williams
ea7876ae82
Reland: implement build bundle with assemble ( #40470 )
2019-09-19 07:46:50 -07:00
Jonah Williams
2a36ad31fa
Ensure Flutter for Web debug builds are only accessible through Flutter run ( #40783 )
2019-09-18 23:10:24 -07:00
stuartmorgan
c32e543207
Invalidate macOS pods on plugin changes ( #40730 )
...
When the plugin list changes, iOS pods are invalidated, but that was
never wired up for macOS.
Should fix #39327
2019-09-18 21:42:57 -07:00
Jenn Magder
d95adf999c
Move build info checks from generating files to the xcode build ( #40792 )
2019-09-18 16:57:31 -07:00
Amir Hardon
4e108b6f90
Exclude non Android plugins from Gradle build ( #40640 )
...
Before this change, having an Android app depend on a plugin that has no android implementation resulted in a Gradle build failure.
This scenario is likely to become more common if we're enabling federated plugins, as the package implementing just the desktop implementation of a plugin won't have an Android implementation.
This changes the Gradle plugin to not try to build any plugins that doesn't have an android/build.gradle file.
2019-09-18 16:42:20 -07:00
Christopher Fujino
0b24a5a2ff
Implement mdns for flutter run
( #40447 )
2019-09-18 11:01:08 -07:00
Jonah Williams
5de5bb0172
fix platform environment ( #40692 )
2019-09-17 17:07:55 -07:00
Jenn Magder
9a68b0df3e
Warn when build number and version can't be parsed on iOS ( #40611 )
2019-09-17 17:07:41 -07:00
Emmanuel Garcia
8a1bf5b827
Reland #39157 ( #39798 )
2019-09-17 08:19:33 -07:00
Alexandre Ardhuin
df4bf453ab
more UI-as-code ( #35516 )
2019-09-17 16:23:44 +02:00
stuartmorgan
d03aecab58
Add an ephemeral directory for Linux ( #40587 )
...
Moves the generated config into that directory. Matches the structure of
the other desktop projects.
Also fixes #40265
2019-09-16 16:04:55 -07:00
Emmanuel Garcia
0df1594ba2
Enable the resource shrinker ( #40610 )
2019-09-16 15:27:05 -07:00
Jonah Williams
79107e0fe2
Dont kill other processes when starting desktop application ( #40472 )
2019-09-16 13:12:50 -07:00
Zachary Anderson
8a33d2446d
[flutter_tool] Remove the synchronous -showBuildSettings ( #40435 )
2019-09-16 07:51:50 -07:00
Emmanuel Garcia
4d404da6df
Update Kotlin and Gradle version ( #40181 )
2019-09-13 19:37:07 -07:00
Jonah Williams
6f5df21e5b
pass through --web-port in release mode too ( #40465 )
2019-09-13 19:15:52 -07:00
Emmanuel Garcia
2c857b9370
Enable R8 ( #40453 )
2019-09-13 19:06:40 -07:00
Zachary Anderson
e2340c641d
[flutter_tool] Use curly braces around single statment control structures ( #40446 )
2019-09-13 14:51:35 -07:00
Emmanuel Garcia
f29524a150
Rename useProguard method, so Gradle doesn't get confused ( #40440 )
2019-09-13 13:02:16 -07:00
Jonah Williams
6ba8fa9987
Remove direct flutter tool usage of protobuf for encoding file caches ( #40410 )
2019-09-13 12:49:03 -07:00
Jenn Magder
b80b9bea38
Set DEFINES_MODULE for FlutterPluginRegistrant to generate modulemap ( #40302 )
2019-09-13 11:03:46 -07:00
Jonah Williams
69a296463e
Allow skipping webOnlyInitializePlatform in Flutter for Web ( #40301 )
2019-09-13 10:20:30 -07:00
stuartmorgan
a7cfdbd3f3
Convert build mode to lowercase in tool_backend ( #40393 )
...
On macOS and iOS, the build mode is converted to lowercase in the
Flutter-side script, allowing projects to pass configuration names
directly. This adds the same behavior to the tool_backend.dart script
currently used by Windows and Linux, so that Windows builds can do the
same (since the default configuration names used by VS, as in Xcode,
start with a capital letter).
2019-09-12 19:13:42 -07:00
Jenn Magder
ba13aa943c
Make FlutterPluginRegistrant a static framework so add-to-app can use plugins with static frameworks ( #40401 )
2019-09-12 18:51:49 -07:00
Francisco Magdaleno
09bb07f8dd
Adds list required components when VS is not installed ( #40397 )
2019-09-12 18:44:36 -07:00
stuartmorgan
72888c7f75
Harden macOS build use of Xcode project getInfo ( #40375 )
...
- Makes build_macos.dart handle the case where there is only one Xcode
project in the macos/ directory, but it's not called Runner.xcodeproj
- Makes getInfo throw a tool exit when trying to get project info and it
can't find a project, since that is a configuration error by the user
rather than a tool bug.
2019-09-12 16:03:02 -07:00
Francisco Magdaleno
576a455a64
[windows] Refactor to optimize vswhere queries ( #40197 )
2019-09-12 15:48:25 -07:00
Jonah Williams
91af071570
ensure dart2js does not compile unsupported packages ( #40368 )
2019-09-12 15:25:21 -07:00
Jonah Williams
1667d0caa4
rename port to web-port and hostname to web-hostname ( #40370 )
2019-09-12 15:25:03 -07:00
Jonah Williams
1fec30efb6
Place existing dill into hot reload temp directory to boost initialization time ( #40366 )
2019-09-12 12:45:53 -07:00
Ryan Macnak
a6138bb005
Remove dead accessors of _getUnusedChangesInLastReload. ( #39837 )
...
This was part of a disused tool to explain what did and did not run after reload.
2019-09-12 12:34:58 -07:00
Jonah Williams
925a52fa6b
add host and port to run configuration for web devices ( #40191 )
2019-09-12 08:58:49 -07:00
Francisco Magdaleno
f5733f7a62
Fix crash on vswhere search from flutter doctor ( #40263 )
...
Fixes a crash introduced on #40011 due to an incorrect type in the vswhere search
Fixes #40238
2019-09-11 21:03:42 -07:00
Jonah Williams
270878fc50
fix copy command and remove resolve sync for macOS assemble ( #40294 )
2019-09-11 20:29:27 -07:00
Zachary Anderson
73c10e8ced
[flutter_tool] process.dart cleanup ( #39899 )
2019-09-11 18:20:42 -07:00
Emmanuel Garcia
3712ea63d8
Flip the default for proguard ( #40282 )
2019-09-11 17:51:51 -07:00
Jonah Williams
6d37867c4a
Place hot reload artifacts in a temp directory ( #40171 )
2019-09-11 12:57:43 -07:00
Jonah Williams
963c8a8921
Remove io and isolate from libraries for web sdk ( #40259 )
2019-09-11 12:40:33 -07:00
Jonah Williams
8eee93fa64
Ensure we send hot restart events for flutter web ( #40175 )
2019-09-11 09:38:42 -07:00
Christopher Fujino
c5e2bf5cfe
catch errors during gradle update ( #37526 )
2019-09-11 09:21:42 -07:00
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