1. 17 Dec, 2015 1 commit
  2. 29 Nov, 2015 1 commit
    • Adam Barth's avatar
      Clean up code organization in flutter_tools · 9662d49e
      Adam Barth authored
      1) Moved basic utility code into base/ directory to make it clear which code
         doesn't depend on Flutter-specific knowldge.
      2) Move the CommandRunner subclasses into a runner/ directory because these
         aren't commands themselves.
      9662d49e
  3. 25 Nov, 2015 1 commit
  4. 17 Nov, 2015 1 commit
  5. 12 Nov, 2015 2 commits
    • Hixie's avatar
      flutter analyze command · a0227cab
      Hixie authored
      Other changes in this patch:
      - Make the 'flutter' tool say "Updating flutter tool..." when it calls
        pub get, to avoid confusion about what the pub get output is about.
      - Make the bash flutter tool call pub get when the revision has
        changed. (This was already happening on Windows.)
      - Fix a raft of bugs found by the analyzer.
      - Fix some style nits in various bits of code that happened to be near
        things the analyzer noticed.
      - Remove the logic in "flutter test" that would run "pub get", since
        upon further reflexion it was determined it didn't work anyway.
        We'll probably have to add better diagnostics here and say to run the
        updater script.
      - Remove the native velocity tracker script, since it was testing code
        that has since been removed.
      
      Notes on ignored warnings:
      - We ignore warnings in any packages that are not in the Flutter repo or
        in the author's current directory.
      - We ignore various irrelevant Strong Mode warnings. We still enable
        strong mode because even though it's not really relevant to our needs,
        it does (more or less accidentally) catch a few things that are
        helpful to us.
      - We allow CONSTANTS_LIKE_THIS, since we get some of those from other
        platforms that we are copying for sanity and consistency.
      - We allow one-member abstract classes since we have a number of them
        where it's perfectly reasonable.
      - We unfortunately still ignore warnings in mojom.dart autogenerated
        files. We should really fix those but that's a separate patch.
      - We verify the actual source file when we see the 'Name non-constant
        identifiers using lowerCamelCase.' lint, to allow one-letter variables
        that use capital letters (e.g. for physics expressions) and to allow
        multiple-underscore variable names.
      - We ignore all errors on lines that contain the following magic
        incantation and a "#" character:
          // analyzer doesn't like constructor tear-offs
      - For all remaining errors, if the line contains a comment of the form
          // analyzer says "..."
        ...then we ignore any errors that have that "..." string in them.
      a0227cab
    • Adam Barth's avatar
      Add a `flutter upgrade` command · 90991854
      Adam Barth authored
      This command upgrades the version of flutter that you're using and runs
      `pub upgrade` to update the transitive dependencies.
      90991854
  6. 07 Nov, 2015 1 commit
  7. 05 Nov, 2015 1 commit
  8. 03 Nov, 2015 1 commit
  9. 02 Nov, 2015 1 commit
  10. 29 Oct, 2015 1 commit
  11. 17 Oct, 2015 1 commit
  12. 13 Oct, 2015 1 commit
  13. 12 Oct, 2015 1 commit
    • Adam Barth's avatar
      Teach sky_tools about prebuilt artifacts · bdd20661
      Adam Barth authored
      This patch makes `flutter start` work without a clone of the engine git
      repository. Making this work pulled a relatively large refactor of how the
      commands interact with application packages and devices. Now commands that want
      to interact with application packages or devices inherit from a common base
      class that holds stores of those objects as members.
      
      In production, the commands download and connect to devices based on the build
      configuration stored on the FlutterCommandRunner. In testing, these fields are
      used to mock out the real application package and devices.
      bdd20661
  14. 10 Oct, 2015 2 commits
  15. 01 Oct, 2015 1 commit
  16. 30 Sep, 2015 2 commits
  17. 29 Sep, 2015 2 commits
  18. 25 Sep, 2015 2 commits
  19. 24 Sep, 2015 1 commit
  20. 23 Sep, 2015 1 commit
    • James Robinson's avatar
      Add cache command to sky_tools with subcommands for populating/clearing · f735604a
      James Robinson authored
      This adds the following commands to sky_tools:
        sky_tools cache clear: Nukes all local artifacts in the cache
        sky_tools cache populate: Populates the cache with all known artifacts
      
      This is useful both to fix busted caches and to make sure that the cache is
      fully populated so that subsequent operations can proceed without needing
      network access.
      f735604a
  21. 22 Sep, 2015 2 commits
    • Ian Fischer's avatar
      Set up plumbing for getting relevant paths to the right places without too much global state. · 0cc758d2
      Ian Fischer authored
      `dart bin/sky_tools.dart --debug --sky-src-path=/path/to/sky/src/ install` now works.
      0cc758d2
    • James Robinson's avatar
      Adds a run_mojo command that downloads sky_viewer.mojo and runs an flx in it · 542da8cc
      James Robinson authored
      This initial version assumes the developer has mojo_shell and all other services
      sitting on disk somewhere and that they're on linux and only want to run on
      linux. This can be generalized down the line to support more use cases. This
      downloads the sky_viewer.mojo corresponding to the packages/sky_engine/REVISION
      in the developer's directory, so they can specify whatever revision they want.
      sky_tools run_mojo downloads sky_viewer.mojo into its cache directory if it is
      not present and constructs a command line to pass to mojo_shell that maps the
      shebang stamped into the flx to the downloaded sky_viewer.mojo.
      
      Since sky_viewer.mojo lives in the cloud and mojo_shell can load from the cloud
      this could also map to an https URL. This should likely be an option.
      542da8cc
  22. 17 Sep, 2015 1 commit
    • Adam Barth's avatar
      Add a build command to sky_tools · cf41a633
      Adam Barth authored
      This command will produce an flx package. Currently, this command doesn't work
      because we don't have the Flutter compiler downloaded from Google storage yet.
      A future patch will make that happen.
      cf41a633
  23. 16 Sep, 2015 2 commits
  24. 15 Sep, 2015 1 commit
  25. 11 Sep, 2015 1 commit
  26. 10 Aug, 2015 1 commit
  27. 07 Aug, 2015 1 commit