1. 02 Aug, 2019 1 commit
  2. 29 Jul, 2019 1 commit
  3. 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
  4. 16 Jul, 2019 1 commit
  5. 19 Jun, 2019 2 commits
  6. 18 Jun, 2019 2 commits
  7. 17 Jun, 2019 1 commit
  8. 11 Jun, 2019 1 commit
  9. 10 Jun, 2019 1 commit
  10. 09 Jun, 2019 2 commits
  11. 07 Jun, 2019 1 commit
  12. 03 Jun, 2019 1 commit
  13. 30 May, 2019 1 commit
  14. 13 May, 2019 1 commit
  15. 29 Apr, 2019 1 commit
  16. 22 Apr, 2019 1 commit
  17. 27 Mar, 2019 1 commit
  18. 20 Mar, 2019 1 commit
    • Alexandre Ardhuin's avatar
      some spaces formatting (#29452) · a6af4228
      Alexandre Ardhuin authored
      * some space formattings
      
      * always use blocks in if-else if a block is used
      
      * format spaces in for and while
      
      * allow multiline if conditions
      
      * fix missing space
      a6af4228
  19. 06 Mar, 2019 1 commit
  20. 01 Mar, 2019 1 commit
    • Alexandre Ardhuin's avatar
      Add missing trailing commas (#28673) · 387f8854
      Alexandre Ardhuin authored
      * add trailing commas on list/map/parameters
      
      * add trailing commas on Invocation with nb of arg>1
      
      * add commas for widget containing widgets
      
      * add trailing commas if instantiation contains trailing comma
      
      * revert bad change
      387f8854
  21. 23 Feb, 2019 2 commits
  22. 22 Feb, 2019 2 commits
  23. 21 Feb, 2019 2 commits
  24. 16 Feb, 2019 1 commit
  25. 13 Feb, 2019 1 commit
    • KyleWong's avatar
      Refactor build-number/build-name logic. (#27743) · 4b4a9400
      KyleWong authored
      This PR aims at several things:
      
      1. Use pub_semver to check a version in pubspec.yaml meets the requirements specified in https://semver.org/.
      2. Don't limit build-number/build-name as a fixed format. Instead, validate it according to the target(ios/android).
      3. Make sure that build-number/build-name are always validated no matter it's specified by the `flutter command` or version in pubspec.yaml.
      
      Fixes #27589
      4b4a9400
  26. 12 Feb, 2019 1 commit
  27. 09 Feb, 2019 1 commit
  28. 08 Feb, 2019 1 commit
    • Michael Klimushyn's avatar
      Warn when gradle builds fail because of AndroidX (#27566) · 4a9e5bc1
      Michael Klimushyn authored
      Try to detect Gradle error messages that hint at AndroidX problems, and
      warn in the logs about the potential problem and point to documentation
      on how to fix the issue.
      
      Unfortunately the Gradle errors based on this root issue are varied and
      project dependent. It's probably better to still leave the message
      intact in case the problem is unrelated.
      
      Also filters out the plugin warning message pending in
      flutter/plugins#1138. It's still valuable to add that for people on
      previous versions of Flutter, but this link should override that message
      for anyone on an up to date version of Flutter.
      
      #27106
      4a9e5bc1
  29. 05 Feb, 2019 1 commit
  30. 26 Jan, 2019 1 commit
  31. 23 Jan, 2019 1 commit
  32. 19 Jan, 2019 1 commit
    • Ian Hickson's avatar
      [O] Removing all timeouts (mark II) (#26736) · 31a9626c
      Ian Hickson authored
      These are essentially self-inflicted race conditions. Instead of timeouts we're going to try a more verbose logging mechanism that points out when things are taking a long time.
      31a9626c