1. 12 Sep, 2018 1 commit
  2. 17 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Clean up usage of temporary directories (#20682) · 3dec6a69
      Ian Hickson authored
      All temporary directory start with `flutter_` and have their random component separated from the name by a period, as in `flutter_test_bundle.YFYQMY`.
      
      I've tried to find some of the places where we didn't cleanly delete temporary directories, too. This greatly reduces, though it does not entirely eliminate, the directories we leave behind when running tests, especially `flutter_tools` tests.
      
      While I was at it I standardized on `tempDir` as the variable name for temporary directories, since it was the most common, removing occurrences of `temp` and `tmp`, among others.
      
      Also I factored out some common code that used to catch exceptions that happen on Windows, and made more places use that pattern.
      3dec6a69
  3. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  4. 21 Jun, 2018 1 commit
  5. 05 Jun, 2018 1 commit
  6. 04 Jun, 2018 1 commit
    • Ian Hickson's avatar
      Be less verbose in the logs. (#17401) · e3427550
      Ian Hickson authored
      Now that we have thousands of tests, it doesn't make sense to display a separate line for each test. The result is just megabytes of logs that you have to scrub through to find error messages.
      e3427550
  7. 14 May, 2018 1 commit
  8. 01 Mar, 2018 1 commit
  9. 28 Feb, 2018 1 commit
    • jcollins-g's avatar
      Android license detector in doctor, take two (#14783) · 614df694
      jcollins-g authored
      * Revert "Revert "Add android license verification to doctor and some refactoring" (#14727)"
      
      This reverts commit d2602947.
      
      * Add tests, fix sdkManagerEnv and use it consistently, and rearrange Status object model
      
      * AnsiSpinner needs to leave the cursor where it found it.
      
      * fix tests
      
      * Const constructor warning only shows up on windows...?
      
      * Avoid crash if we can't find the home directory
      
      * Make pathVarSeparator return a string in the mock
      
      * Implement review comments
      
      * Fix out-of-order problem on stop
      614df694
  10. 25 Jan, 2018 1 commit
    • Chris Bracken's avatar
      Extract MockAndroidSdk and static utility method (#14258) · 74478d18
      Chris Bracken authored
      AndroidSdk and AndroidStudio depends relatively heavily on filesystem
      access to locate installed tools. Testing code that relies on either of
      these classes benefits from a utility method to generate a
      legitimate-looking Android SDK directory layout for testing.
      74478d18
  11. 24 Jan, 2018 1 commit
    • Chris Bracken's avatar
      Add AndroidSdk.sdkManagerPath, sdkManagerVersion (#14247) · 9654659c
      Chris Bracken authored
      Convenience getters for the the path to the Android SDK manager and the
      currently installed version of the tool.
      
      Pre-factoring to support better checks around the --android-licenses
      command, which uses a feature of the SDK manager that is unsupported in
      older versions of the tool.
      9654659c
  12. 21 Nov, 2017 1 commit
    • Martin Kustermann's avatar
      Add support for NDK discovery and add --prefer-shared-library option (#12788) · 545ec9ef
      Martin Kustermann authored
      * Add support for NDK discovery and add --prefer-shared-library option
      
      We would like to be able to use native tools (e.g. simpleperf, gdb) with
      precompiled flutter apps.  The native tools work much better with *.so
      files instead of the custom formats the Dart VM uses by default.
      
      The reason for using blobs / instruction snapshots is that we do not
      want to force flutter users to install the Android NDK.
      
      This CL adds a `--prefer-shared-library` flag to e.g. `flutter build
      apk` which will use the NDK compiler (if available) to turn the
      precompiled app assembly file to an `*.so` file.  If the NDK compiler is
      not available it will default to the default behavior.
      
      * Rebase, add test for NDK detection, augment flutter.gradle with @Input for flag
      
      * Use InMemoryFileSystem for test
      
      * Remove unused import
      
      * Address some analyzer warnings
      545ec9ef
  13. 17 Nov, 2017 1 commit
    • Todd Volkert's avatar
      Extract Android SDK version from named platform dirs. (#13056) · f0e88198
      Todd Volkert authored
      Previously, we were mapping certain named platforms
      (e.g. `android-stable`) to their corresponding version.
      this had two problems:
      
      1. The version could become out of date. For instance, we had
         mapped `android-stable` to version 24, but the stable version
         is now 27.
      2. The list of possible named versions wasn't comprehensive.
         Some Android SDKs just list the platform as `stable`, or
         `experimental`, etc.
      
      This change updates the platform version detection to use
      the `build.prop` file that exists in the platform directory
      (only for cases where the version number is not encoded into
      the directory name).
      f0e88198
  14. 12 May, 2017 1 commit
  15. 07 Mar, 2017 1 commit
  16. 04 Mar, 2017 1 commit
  17. 14 Feb, 2017 1 commit
  18. 07 Jan, 2017 1 commit
    • Todd Volkert's avatar
      Update flutter_tools to use package:file throughout (#7385) · 8bb27034
      Todd Volkert authored
      This removes direct file access from within flutter_tools
      in favor of using `package:file` via a `FileSystem` that's
      accessed via the `ApplicationContext`.
      
      This lays the groundwork for us to be able to easily swap
      out the underlying file system when running Flutter tools,
      which will be used to provide a record/replay file system,
      analogous to what we have for process invocations.
      8bb27034
  19. 17 Mar, 2016 1 commit