1. 26 Jul, 2019 1 commit
  2. 23 Jul, 2019 3 commits
    • Emmanuel Garcia's avatar
      Flutter build aar (#36732) · 242a4225
      Emmanuel Garcia authored
      `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
          }
      }
      242a4225
    • Emmanuel Garcia's avatar
      Revert "Add flutter build aar (#35217)" (#36731) · c9b466f9
      Emmanuel Garcia authored
      This reverts commit 11460b83.
      c9b466f9
    • Emmanuel Garcia's avatar
      Add flutter build aar (#35217) · 11460b83
      Emmanuel Garcia authored
      `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
          }
      }
      11460b83
  3. 27 Jun, 2019 1 commit
  4. 07 Jun, 2019 1 commit
  5. 19 Apr, 2019 2 commits
  6. 15 Apr, 2019 1 commit
    • liyuqian's avatar
      Fix the warning test by checking stderr (#30997) · b0937a1e
      liyuqian authored
      Previously, I used the Android emulator for testing and everything
      seemed to work fine with stdout (if I remember correctly). But our
      devicelab uses real Android devices and the warnings are routed to
      stderr. Hence change stdout to stderr in the test.
      b0937a1e
  7. 05 Nov, 2018 1 commit
  8. 04 Oct, 2018 1 commit
  9. 01 Oct, 2018 1 commit
  10. 12 Sep, 2018 1 commit
  11. 28 Aug, 2018 1 commit
  12. 21 Aug, 2018 1 commit
  13. 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
  14. 06 Aug, 2018 1 commit
  15. 02 Aug, 2018 3 commits
  16. 27 Jul, 2018 1 commit
  17. 23 Jul, 2018 1 commit
  18. 16 Jul, 2018 2 commits
  19. 12 Jul, 2018 3 commits
  20. 27 Jun, 2018 1 commit
  21. 26 Jun, 2018 1 commit
  22. 15 Jun, 2018 2 commits
  23. 14 Jun, 2018 1 commit
  24. 05 Jun, 2018 1 commit
  25. 04 Jun, 2018 2 commits
  26. 04 May, 2018 2 commits
  27. 12 Mar, 2018 1 commit
    • Alexander Aprelev's avatar
      Roll engine to b6df7a637498ca9beda1fa9cd7210e3202ea599f. (#15444) · 2f8474f9
      Alexander Aprelev authored
      * Roll engine to b6df7a637498ca9beda1fa9cd7210e3202ea599f.
      
      Changes since last roll:
      ```
      b6df7a637 Roll dart to 290c576264faa096a0b3206c71b2435309d9f904. (#4771)
      a6764dbd5 Add sources for Fuchsia target. (#4763)
      2d5900615 [fuchsia] Remove unused header file. (#4769)
      9717063b7 Revert "Roll dart to c080951d45e79cd25df98036c4be835b284a269c. (#4767)" (#4768)
      9a9814312 Roll dart to c080951d45e79cd25df98036c4be835b284a269c. (#4767)
      e74e8b35c [async] Update includes of async headers to new path (#4760)
      e2c4b2760 Use Dart 2 camel case constants in the engine Dart libraries (#4766)
      9c1e48434 Updates for Fuchsia roll. (#4765)
      14c940e27 Switch from fxl::Mutex to std::mutex (#4764)
      debf82c0b Roll Garnet (#4759)
      5bffdefbb Use weak pointers to the accesibility bridge from objects vended to the UIKit accessibility framework. (#4761)
      ```
      2f8474f9
  28. 05 Feb, 2018 1 commit
  29. 30 Nov, 2017 1 commit
    • Vyacheslav Egorov's avatar
      Change few devicelab tests to support testing against local engine (#13268) · 41a5e5d8
      Vyacheslav Egorov authored
      * Change some of the dev/devicelab tests to support testing against local engine.
      
      We can already configure flutter tools to use local engine by setting
      FLUTTER_ENGINE environment variable. However when this variable is set
      this also requires setting --local-engine to specify which flavor of
      engine to use.
      
      This change changes tests in dev/devicelab to pass a sensible default for
      --local-engine, e.g. when testing hot reload on Android we pass android_debug
      and when testing release AOT build for IOS we pass ios_release.
      
      * Fix analysis issues
      
      * Update utils.dart
      41a5e5d8