1. 12 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Fix tests to use Ahem, and helpful changes around that (#9332) · 2a545243
      Ian Hickson authored
      * Fix tests to use Ahem, and helpful changes around that
      
      - Fix fonts that had metric-specific behaviours.
      
      - LiveTestWidgetsFlutterBinding.allowAllFrames has been renamed
        to LiveTestWidgetsFlutterBinding.framePolicy.
      
      - LiveTestWidgetsFlutterBinding now defaults to using a frame policy
        that pumps slightly more frames, to animate the pointer crosshairs.
      
      - Added "flutter run --use-test-fonts" to enable Ahem on devices.
      
      - Changed how idle() works to be more effective in live mode.
      
      - Display the test name in live mode (unless ahem fonts are enabled).
      
      - Added a toString to TextSelectionPoint.
      
      - Style nit fixes.
      
      * Roll engine to get Ahem changes.
      
      * Update tests for dartdoc changes.
      
      * Fix flutter_tools tests
      2a545243
  2. 10 Apr, 2017 1 commit
    • Jakob Andersen's avatar
      Inject plugin registration. (#9216) · 7ffa82aa
      Jakob Andersen authored
      Added a PluginRegistry to the new project template. The registry files will be automatically updated at build time to register the native plugins.
      
      Fixes #7814.
      7ffa82aa
  3. 09 Apr, 2017 1 commit
  4. 08 Apr, 2017 1 commit
    • Alexandre Ardhuin's avatar
      upgrade to linter-0.1.30 (#9297) · 610955f8
      Alexandre Ardhuin authored
      * upgrade to linter-0.1.30
      
      * add prefer_is_empty lint
      * add directives_ordering lint
      * add no_adjacent_strings_in_list lint
      * add no_duplicate_case_values lint
      * add prefer_collection_literals lint
      * add prefer_const_constructors lint
      * add prefer_contains lint
      * add prefer_initializing_formals lint
      * add unnecessary_null_aware_assignments lint
      * add unnecessary_null_in_if_null_operators lint
      610955f8
  5. 07 Apr, 2017 1 commit
  6. 05 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Update the examples/ README and associated fixes. (#9090) · a52c7b47
      Ian Hickson authored
      This yak shave went as follows:
      
      Fix https://github.com/flutter/flutter/issues/8795 by adding stocks to
      the examples README.
      
      Notice the layers entry in that README isn't quite right either.
      Update that.
      
      Check the layers/README file is worth pointing at.
      
      Update the layers/README.
      
      Let's run some of the layer tests to see if they still work.
      
      Oops, need to update them to gradle.
      
      Ok let's try running them again.
      
      Oops, sector is broken.
      
      Add a test for sector.
      
      Fix sector. Find you need to add an assert to a const constructor.
      
      Notice we need to turn const asserts on for the analyzer.
      
      Notice the analysis_options files are out of sync with each other and
      with the full list of lints.
      
      Turn on the lints that should be on.
      
      Fix the bugs that finds.
      a52c7b47
  7. 31 Mar, 2017 1 commit
    • Chris Bracken's avatar
      iOS: fail build wth error if Python six missing (#9135) · a54979e1
      Chris Bracken authored
      Xcode builds depend on the Python 'six' module. If not present, exit
      immediately with a useful error message.
      
      The six module is included in the system default Python installation. We
      perform this check in case a custom Python install has higher priority
      on $PATH; e.g., due to a Homebrew or MacPorts installation.
      
      This extracts an existing doctor check to use it during the build step
      as well.
      a54979e1
  8. 29 Mar, 2017 1 commit
  9. 27 Mar, 2017 2 commits
  10. 23 Mar, 2017 1 commit
    • Jakob Andersen's avatar
      Automatically wire dependencies for native plugins (#8891) · b61e1690
      Jakob Andersen authored
      Go through all packages brought in by pub, and write the name and path of every one that is a flutter plugin into .flutter-plugins.
      
      In android/settings.gradle and ios/Podfile, read in .flutter-plugins, if that file exists. The Android / iOS code from the plugins is automatically added as dependencies of the native code of the app.
      b61e1690
  11. 20 Mar, 2017 1 commit
    • Jakob Andersen's avatar
      Remove legacy .apk build. (#8793) · 7b2367ed
      Jakob Andersen authored
      * Remove legacy .apk build.
      
      Print out an error message telling the user to upgrade the project if
      it's not Gradle-based. Removed all the obvious traces of the legacy
      build.
      
      Added support for Dart VM kernel snapshots in Gradle builds.
      
      Fixed Android installs to verify that the app is actually installed, and
      not just rely on the presence of the .sha1 file.
      7b2367ed
  12. 16 Mar, 2017 1 commit
  13. 15 Mar, 2017 1 commit
  14. 14 Mar, 2017 1 commit
    • Todd Volkert's avatar
      Make tests more hermetic. (#8765) · 1b4f817b
      Todd Volkert authored
      1. Add `PortScanner` abstraction so that we don't do actual port scanning
         in tests.
      2. Don't change the real `cwd` of the isolate during tests, as it affects
         all tests, not just the current running test.
      
      Fixes #8761
      1b4f817b
  15. 10 Mar, 2017 6 commits
    • Todd Volkert's avatar
      Fix and enable broken flutter_tools tests (#8720) · a4c58292
      Todd Volkert authored
      (follow-on to #8698)
      a4c58292
    • Todd Volkert's avatar
      Pay off some technical debt. (#8710) · 34ed3d2d
      Todd Volkert authored
      * Rename `Device.platform` to `Device.targetPlatform` to avoid
        collision with the exported variable from `platform.dart`
      34ed3d2d
    • Jakob Andersen's avatar
      Revert "Eliminate CocoaPods install step (#8694)" (#8705) · 60c0c3d3
      Jakob Andersen authored
      * Revert "Eliminate CocoaPods install step (#8694)"
      
      This reverts commit f4a13bc7.
      
      If the developer is relying on CocoaPods and hasn't done a pod install, we will do it for them. This is needed for a smooth native plugin experience, similar to what Gradle is doing on the Android side.
      
      There's no hard dependency on CocoaPods. We only run pod install if the project uses CocoaPods, so developers are still free to use alternatives if they prefer (and if they don't want to use native plugins).
      
      Fixes #8685
      Fixes #8657
      Fixes #8526
      
      * Require CocoaPods 1.0.0 or newer.
      
      And make sure we don't get a crash if running `pod install` fails.
      
      * Address review feedback
      60c0c3d3
    • Chris Bracken's avatar
      Add brew update step before install/upgrade (#8703) · 7b9cefb3
      Chris Bracken authored
      This avoids unintentionally installing an older version if the
      developer's homebrew installation is out-of-date.
      7b9cefb3
    • Chris Bracken's avatar
      Eliminate brew tap flutter/flutter instruction (#8702) · 1bb0d772
      Chris Bracken authored
      The flutter tap was deleted as part of the resolution to #7783.
      1bb0d772
    • Chris Bracken's avatar
      Eliminate CocoaPods install step (#8694) · f4a13bc7
      Chris Bracken authored
      If the developer is relying on CocoaPods and hasn't done a pod install,
      they'll get a build failure indicating the issue.
      
      This also avoids a hard dependency on CocoaPods in the tool and allows
      developers to customize their Xcode steps to use alternatives such as
      Carthage if they prefer.
      f4a13bc7
  16. 09 Mar, 2017 3 commits
  17. 08 Mar, 2017 4 commits
  18. 07 Mar, 2017 1 commit
  19. 04 Mar, 2017 1 commit
  20. 02 Mar, 2017 1 commit
  21. 28 Feb, 2017 1 commit
  22. 23 Feb, 2017 3 commits
  23. 22 Feb, 2017 1 commit
  24. 21 Feb, 2017 1 commit
    • Chris Bracken's avatar
      Only attempt to deploy to USB-connected iOS devices (#8309) · 58898636
      Chris Bracken authored
      Do not attempt to deploy/debug wifi connected iOS devices. ios-deploy is
      able to install over wifi, but we've had several bugs reporting failure
      to run/debug once installation has completed when the device is also
      connected via USB. Note that we don't currently support deploy/debug
      over wifi since libimobiledevice (which is also required) requires a USB
      connection.
      58898636
  25. 20 Feb, 2017 2 commits
    • Alexandre Ardhuin's avatar
      prefer const constructor (#8292) · 2888139c
      Alexandre Ardhuin authored
      2888139c
    • Jakob Andersen's avatar
      Teach flutter tools to find gradle (#8241) · 77efc38b
      Jakob Andersen authored
      * Teach flutter tools to find gradle
      
      Flutter tools will now use Gradle from Android Studio, which is now found automatically.
      
      flutter doctor will verify that Android Studio has been installed, and that the included Gradle is at least version 2.14.1.
      
      It is still possible to manually configure the path to Android Studio (flutter config --android-studio-dir=XXX) or Gradle (flutter config --gradle-dir=XXX), but this should only be necessary if they're installed somewhere non-standard.
      
      Only tested on Linux and macOS for now.
      
      Fixes #8131
      77efc38b
  26. 17 Feb, 2017 1 commit
    • Michael Goderbauer's avatar
      Refactor how Artifacts are located (#8234) · cd8434d9
      Michael Goderbauer authored
      Artifacts are now located in a central place.
      This will enable us to downlaod artifacts when we need them (instead of
      downloading them all upfront).
      This also makes replacing sky_snapshot with gen_snapshot easier.
      cd8434d9