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. 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
  4. 07 Apr, 2017 3 commits
  5. 04 Apr, 2017 1 commit
  6. 31 Mar, 2017 2 commits
  7. 30 Mar, 2017 1 commit
    • Jakob Andersen's avatar
      Add template for plugin projects. (#9076) · f34f8a31
      Jakob Andersen authored
      Plugin projects are created by running `flutter create --plugin <name>`.
      
      An example app is also created in the plugin project, using the normal 'create' template, which has been modified to allow for conditional plugin code.
      
      Modified the android package name to match package naming conventions (all lower-case, and must match the directory name).
      f34f8a31
  8. 29 Mar, 2017 2 commits
  9. 28 Mar, 2017 1 commit
  10. 27 Mar, 2017 1 commit
    • Jakob Andersen's avatar
      Make pod install a long-running step. (#8999) · eedc5d9f
      Jakob Andersen authored
      The very first time `pod install` is invoked, CocoaPods downloads the master spec repository, which takes quite a while. Before this change, the build appeared to have stalled. With this change, at least the spinner is moving.
      
      Added `pod setup` to the install instructions for CocoaPods, so the spec repo is downloaded while setting up Flutter, instead of during the first build.
      eedc5d9f
  11. 23 Mar, 2017 3 commits
    • Chris Bracken's avatar
      25999678
    • xster's avatar
      Remove various roboto font logic (#8350) · 3bc3d4a5
      xster authored
      3bc3d4a5
    • Chris Bracken's avatar
      Build Flutter app as a framework on iOS (#8971) · 0ee3f57a
      Chris Bracken authored
      **THIS IS A BREAKING CHANGE.** See below for migration steps for
      existing projects.
      
      Previously, Flutter app code was built as a raw dylib on iOS.  Dynamic
      libraries outside of a framework bundle are not supported on iOS, except
      for the system Swift libraries provided by Xcode.
      
      See:
      https://developer.apple.com/library/content/technotes/tn2435/_index.html#//apple_ref/doc/uid/DTS40017543-CH1-TROUBLESHOOTING_BUNDLE_ERRORS-EMBEDDED__DYLIB_FILES
      
      * Migrates Xcode build from app.dylib to App.framework
      * Migrates flutter create template
      * Migrates example projects
      
      Migration steps for existing projects
      =====================================
      
      The following steps should be taken from the root of your Flutter
      project:
      
      1. Edit `ios/.gitignore`: add `/Flutter/App.framework` on a new line.
      2. In the Xcode project navigator, remove `app.dylib` from the Flutter
         folder. Delete this file from the `ios/Flutter` directory in your project.
      3. Run a build to generate `ios/Flutter/App.framework`. From the command
         line, run `flutter build ios`. If you have not configured app signing
         in Xcode, an alternative method is to open the simulator, then run
         `flutter run -d iP`.
      4. In the Xcode project navigator, select the `Runner` project. In the
         project settings that are displayed in the main view, ensure that the
         `Runner` target is selected. You can verify this by exposing the
         sidebar using the [| ] icon in the upper-left corner of the main
         view.
      5. Select the *General* tab in the project settings. Under the
         *Embedded Binaries* section, click '+' to add `App.framework`. In the
         sheet that drops down, click the *Add Other...* button. Navigate to
         the `ios/Flutter` directory and select `App.framework`. Click *Open*.
         In the sheet that drops down, select *Create folder references*, then
         click *Finish*.
      6. In the project settings, verify that `App.framework` has been added to the
         *Embedded Binaries* and *Linked Frameworks and Libraries* lists.
      7. In the Xcode project navigator, drag `App.framework` under the
         Flutter folder.
      8. In the Xcode project navigator, select `Flutter` then from the
         *File* menu, select *Add Files to "Runner"...*. Navigate to the
         `ios/Flutter` directory, select `AppFrameworkInfo.plist` and click
         the *Add* button.
      9. From the command line, in your project directory, run
         `flutter build clean`, then `flutter run`.
      
      At this point your project should be fully migrated.
      0ee3f57a
  12. 22 Mar, 2017 2 commits
  13. 21 Mar, 2017 1 commit
    • Michael Goderbauer's avatar
      Avoid downloading artifacts twice (#8872) · d35a9db6
      Michael Goderbauer authored
      * Avoid downloading artifacts twice
      
      * Don't update cache before `flutter upgrade` is executed (`flutter upgrade` might bump the engine version)
      * Don't update cache twice during `flutter precache`
      
      Fixes #8249.
      
      * add test
      d35a9db6
  14. 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
  15. 19 Mar, 2017 1 commit
  16. 17 Mar, 2017 1 commit
  17. 16 Mar, 2017 1 commit
  18. 15 Mar, 2017 4 commits
  19. 14 Mar, 2017 2 commits
    • Zachary Anderson's avatar
    • Jakob Andersen's avatar
      Use snapshot's .d file as source inputs in Gradle build. (#8756) · 9c6ffc82
      Jakob Andersen authored
      * Use snapshot's .d file as source inputs in Gradle build.
      
      If we don't yet have a .d file (first build), fall back to using the
      .dart files in the current directory. This enables us to detect changes
      in dependent source files (Flutter framework, packages outside the
      source directory, etc.), and re-generate the snapshots as needed.
      
      Unfortunately, Gradle requires knowing the source files before executing
      the task, and can't update them after building, so Gradle considers the
      second build to be out-of-date (because it has more input files than the
      first build). Sub-sequent builds have the correct dependency
      information, and will be skipped if the source files haven't changed.
      
      Also added a dependency on gen_snapshot. The snapshot ABI isn't stable,
      so we need to re-generate the snapshots when we roll the Dart SDK
      dependency.
      
      Fixes #8315
      Fixes #8687
      Fixes #8607
      9c6ffc82
  20. 13 Mar, 2017 3 commits
  21. 10 Mar, 2017 1 commit
  22. 09 Mar, 2017 1 commit
  23. 04 Mar, 2017 1 commit
  24. 03 Mar, 2017 1 commit
  25. 02 Mar, 2017 1 commit
  26. 28 Feb, 2017 1 commit
  27. 25 Feb, 2017 1 commit