Commit Graph

18842 Commits

Author SHA1 Message Date
Jonah Williams
3b4d9f6780 more resident runner verification tests (#36595) 2019-07-23 15:38:52 -07:00
Jonah Williams
694d54ccac Place build outputs under dart tool (#36585) 2019-07-23 15:36:55 -07:00
Jonah Williams
14aa4d0a45 fix analytics reporting test (#36556) 2019-07-23 11:02:02 -07:00
Zachary Anderson
ebdc2cf73b [flutter_tool] Add some useful commands to the README.md (#36560) 2019-07-23 09:47:06 -07:00
Hans Muller
a632175fde Update Localizations: added 24 new locales (reprise) (#36589) 2019-07-23 09:40:34 -07:00
Kate Lovett
0379dd1c26 Updating cirrus fingerprint script to include goldens version (#36690) 2019-07-23 09:30:41 -07:00
Emmanuel Garcia
242a4225a1 Flutter build aar (#36732)
`flutter build aar`

This new build command works just like `flutter build apk` or `flutter build appbundle`, but for plugin and module projects.

This PR also refactors how plugins are included in app or module projects. By building the plugins as AARs, the Android Gradle plugin is able to use Jetifier to translate support libraries into AndroidX libraries for all the plugin's native code. Thus, reducing the error rate when using AndroidX in apps.

This change also allows to build modules as AARs, so developers can take these artifacts and distribute them along with the native host app without the need of the Flutter tool. This is a requirement for add to app.

`flutter build aar` generates POM artifacts (XML files) which contain metadata about the native dependencies used by the plugin. This allows Gradle to resolve dependencies at the app level. The result of this new build command is a single build/outputs/repo, the local repository that contains all the generated AARs and POM files.

In a Flutter app project, this local repo is used by the Flutter Gradle plugin to resolve the plugin dependencies. In add to app case, the developer needs to configure the local repo and the dependency manually in `build.gradle`:


repositories {
    maven {
        url "<path-to-flutter-module>build/host/outputs/repo"
    }
}

dependencies {
    implementation("<package-name>:flutter_<build-mode>:1.0@aar") {
       transitive = true
    }
}
2019-07-23 09:27:42 -07:00
Emmanuel Garcia
c9b466f9e2 Revert "Add flutter build aar (#35217)" (#36731)
This reverts commit 11460b8378.
2019-07-22 22:07:59 -07:00
Emmanuel Garcia
11460b8378 Add flutter build aar (#35217)
`flutter build aar`

This new build command works just like `flutter build apk` or `flutter build appbundle`, but for plugin and module projects.

This PR also refactors how plugins are included in app or module projects. By building the plugins as AARs, the Android Gradle plugin is able to use Jetifier to translate support libraries into AndroidX libraries for all the plugin's native code. Thus, reducing the error rate when using AndroidX in apps.

This change also allows to build modules as AARs, so developers can take these artifacts and distribute them along with the native host app without the need of the Flutter tool. This is a requirement for add to app.

`flutter build aar` generates POM artifacts (XML files) which contain metadata about the native dependencies used by the plugin. This allows Gradle to resolve dependencies at the app level. The result of this new build command is a single build/outputs/repo, the local repository that contains all the generated AARs and POM files.

In a Flutter app project, this local repo is used by the Flutter Gradle plugin to resolve the plugin dependencies. In add to app case, the developer needs to configure the local repo and the dependency manually in `build.gradle`:


repositories {
    maven {
        url "<path-to-flutter-module>build/host/outputs/repo"
    }
}

dependencies {
    implementation("<package-name>:flutter_<build-mode>:1.0@aar") {
       transitive = true
    }
}
2019-07-22 20:46:01 -07:00
Jonah Williams
e5ea996a1f disable flaky windows test (#36722) 2019-07-22 18:14:43 -07:00
Jonah Williams
3fedb8cb5a Reland: use flutter features for web and desktop (#36699) 2019-07-22 15:34:03 -07:00
Alexander Aprelev
d28f3c7cbb Unskip date_picker_test on Windows as underlying issue 19696 was fixed. (#36546) 2019-07-22 13:55:49 -07:00
Gary Qian
07fdadd1d1 Add gradient text docs (#36579) 2019-07-22 13:20:34 -07:00
chunhtai
1cb6b8bb0d fixes iphone force press keybaord select crashes (#36698) 2019-07-22 13:20:21 -07:00
Ian Hickson
542fbd4c71 Some minor fixes to the tool_coverage tool. (#36570)
Extracted from https://github.com/flutter/flutter/pull/36205
2019-07-22 13:02:02 -07:00
Devon Carew
45ae4f6dbe use sentence case in error message titles (#35750)
* use sentence case in error message titles

* add a test
2019-07-22 12:49:53 -07:00
Danny Tuppeny
d42d0c5171 Re-enable flutter test expression evaluation tests (#36431)
Plus:

- Resume the app being run after expression has been evaluated to prevent the test run being forcefully terminated because it didn't end
- Skip non-JSON when waiting for JSON (eg. when running in verbose mode for debugging locally)
- Pass defaultTimeout in waitForJson (otherwise the assert in _timeoutWithMessages fails when it's not provided)

Closes https://github.com/flutter/flutter/issues/26518 (the original reason for skip was fixed in https://github.com/dart-lang/sdk/issues/34224).
2019-07-22 19:43:37 +01:00
Brian Egan
70b405ee18 Add images and update examples for top widgets: (#36460)
* Add images and update examples for top widgets:

  - scaffold
  - text field
  - image
  - text
  - row
  - column
  - stack
2019-07-22 18:34:56 +02:00
Jonah Williams
8eae2dfb92 Revert "Use FlutterFeatures to configure web and desktop devices (#36465)" (#36654)
This reverts commit bd52a78c71.
2019-07-21 21:47:43 -07:00
Jonah Williams
bd52a78c71 Use FlutterFeatures to configure web and desktop devices (#36465) 2019-07-21 18:21:15 -07:00
Jonah Williams
9bd50c5459 Ensure fx flutter attach can find devices (#36564) 2019-07-21 10:24:04 -07:00
Todd Volkert
fbd4bb91f6 Revert "AsyncSnapshot.data to throw if error or no data (#34626)" (#36618)
This reverts commit b61fcfd25d.
2019-07-20 22:10:59 -07:00
Lau Ching Jun
677b7c15c3 Load assets during test from file system instead of manifest. (#36553) 2019-07-19 14:54:24 -07:00
Zachary Anderson
76cbbeb627 [flutter_tool] Send the local time to analytics with screens and events (#36545) 2019-07-19 14:54:18 -07:00
Jonah Williams
6830edd0be Clean up flutter driver device detection. (#36434) 2019-07-19 14:48:17 -07:00
Yegor
ecd89fb7ad fix message codecs for the Web (#36549) 2019-07-19 13:49:15 -07:00
chunhtai
5ecda9e1b5 Adds doc example for Listview and pageview (#36391) 2019-07-19 13:19:24 -07:00
liyuqian
50a483879f Change Future.done to Future.whenComplete (#36270)
This is for the missed comment in
https://github.com/flutter/flutter/pull/36089#discussion_r303960949
2019-07-19 13:01:42 -07:00
Jenn Magder
5e650af7fa Clean up host_app_ephemeral_cocoapods Profile build settings (#36498) 2019-07-19 12:49:26 -07:00
Christopher Fujino
9bd2e4000b Throw exception if instantiating IOSDevice on non-mac os platform (#36288) 2019-07-19 12:20:45 -07:00
chunhtai
a52f0f773c Fixes sliver list does not layout firstchild when child reordered (#36493) 2019-07-19 12:19:05 -07:00
chunhtai
2338576aa6 implement selectable text (#34019) 2019-07-19 12:17:41 -07:00
Gary Qian
41bc10fa70 Add text border docs (#36485) 2019-07-19 12:13:00 -07:00
Kate Lovett
38e41f5aee SliverFillRemaining accounts for child size when hasScrollBody is false (#35810)
Fixes the hasScrollBody flag not accounting for child size. Adds the ability to specify over-scroll behavior.
2019-07-19 11:35:31 -07:00
Darren Austin
252491f8ac Updated ColorScheme.dark() colors to match the Material Dark theme specification (#36106)
Updated ColorScheme.dark() primaryVariant, surface, background and error
colors to match the spec.
2019-07-19 11:31:29 -07:00
Todd Volkert
7b556dcc18 Fix the web builds by reverting version bump of build_modules (#36548) 2019-07-19 09:36:36 -07:00
Dan Field
c953cd19d2 Enable bitcode compilation for AOT (#36471) 2019-07-18 22:42:47 -07:00
Todd Volkert
e6128a0c14 Fix flutter pub -v (#36513)
When we were running `pub` within `flutter pub`, we were
unconditionally including the `--verbosity=warning` argument.
Then we were conditionally including `--verbose` if we were
running in verbose mode.  However, the former argument
supersedes the latter, and we were never able to run `pub`
in verbose mode.
2019-07-18 22:22:22 -07:00
Todd Volkert
1170105eae flutter update-packages --force-upgrade (#36510) 2019-07-18 22:21:58 -07:00
adazh
4e4b9bd0b1 Renamed the Driver API waitUntilFrameSync to waitUntilNoPendingFrame. (#36512) 2019-07-18 22:16:57 -07:00
Zachary Anderson
82a4ba40bb [flutter_tool] Send analytics command before the command runs (#36490) 2019-07-18 18:05:44 -07:00
Jonah Williams
d1190b638f remove unrelated code (#36481) 2019-07-18 16:49:39 -07:00
Todd Volkert
b61fcfd25d AsyncSnapshot.data to throw if error or no data (#34626)
This updates `AsyncSnapshot.data` to act as `AsyncSnapshot.requireData`
used to -- and it removes `AsyncSnapshot.requireData`. Correspondingly,
this adds a `StreamBuilder.withoutInitialData()` constructor, makes the
`initialData` argument to the default `StreamBuilder()` constructor required,
and deprecates the `initialData` argument to the `FutureBuilder()` constructor.

See the  breaking change announcement for more info.

https://github.com/flutter/flutter/issues/34545
https://groups.google.com/forum/#!topic/flutter-announce/H6Od0QdsdrI
2019-07-18 16:26:13 -07:00
Tong Mu
1aa4628fa2 Dismiss modal with any button press (#32770)
This PR makes ModalBarrier dismiss modal with any button press instead of primary button up, by making it use a private recognizer _AnyTapGestureRecognizer that claims victor and calls onAnyTapDown immediately after it receives any PointerDownEvent.
2019-07-18 15:33:49 -07:00
Todd Volkert
adb2aeebe3 Ensure that cache dirs and files have appropriate permissions (#28090)
This is a partial re-application of #24669, which was
reverted due to Fuchsia breakages.

https://github.com/flutter/flutter/issues/24413
2019-07-18 15:29:06 -07:00
adazh
dd51afd161 Added Driver API that waits until frame sync. (#36334) 2019-07-18 15:03:19 -07:00
Shi-Hao Hong
db6c362bef Implement InputDecorationTheme copyWith, ==, hashCode (#36411)
* Implement InputDecorationTheme copyWith, ==, hashCode
2019-07-18 14:40:39 -07:00
Emmanuel Garcia
5a34e7981e Catch exceptions thrown by runChecked* when possible (#36109) 2019-07-18 10:45:37 -07:00
Jonah Williams
7b0cc5051b release lock in flutter pub context (#36218) 2019-07-18 10:41:39 -07:00
Jonah Williams
757b5365fa Add missing test case for Usage (#36379) 2019-07-18 10:41:13 -07:00