1. 24 May, 2017 1 commit
  2. 09 May, 2017 3 commits
  3. 08 May, 2017 2 commits
  4. 24 Apr, 2017 2 commits
  5. 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
  6. 05 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Update the examples/ README and associated fixes. (#9090) · a52c7b47
      Ian Hickson authored
      This yak shave went as follows:
      
      Fix https://github.com/flutter/flutter/issues/8795 by adding stocks to
      the examples README.
      
      Notice the layers entry in that README isn't quite right either.
      Update that.
      
      Check the layers/README file is worth pointing at.
      
      Update the layers/README.
      
      Let's run some of the layer tests to see if they still work.
      
      Oops, need to update them to gradle.
      
      Ok let's try running them again.
      
      Oops, sector is broken.
      
      Add a test for sector.
      
      Fix sector. Find you need to add an assert to a const constructor.
      
      Notice we need to turn const asserts on for the analyzer.
      
      Notice the analysis_options files are out of sync with each other and
      with the full list of lints.
      
      Turn on the lints that should be on.
      
      Fix the bugs that finds.
      a52c7b47
  7. 04 Apr, 2017 1 commit
    • Jakob Andersen's avatar
      Android: Set evaluationDependsOn for plugin subprojects. (#9179) · 5541d71b
      Jakob Andersen authored
      Gradle projects are evaluated in lexicographical order, and the plugin
      projects are at the same level as the :app project, so if a plugin has
      a name that comes before 'app' (like, for example, any name that starts
      with a capital letter), the plugin project will be evaluated before
      :app.
      
      Since :app applies the Flutter Gradle plugin, which tries to
      modify the dependencies of the plugin projects, we have a problem if the
      plugin projects have already been evaluated. Adding
      evaluationDependsOn(':app') to the plugin projects fixes this.
      
      Updated example projects to the latest (plugin-enabled) Gradle build
      files.
      
      Also removed two unused imports in `pluginClass.java.tmpl`.
      5541d71b
  8. 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
  9. 23 Mar, 2017 1 commit
    • Jakob Andersen's avatar
      Automatically wire dependencies for native plugins (#8891) · b61e1690
      Jakob Andersen authored
      Go through all packages brought in by pub, and write the name and path of every one that is a flutter plugin into .flutter-plugins.
      
      In android/settings.gradle and ios/Podfile, read in .flutter-plugins, if that file exists. The Android / iOS code from the plugins is automatically added as dependencies of the native code of the app.
      b61e1690
  10. 22 Mar, 2017 1 commit
  11. 21 Mar, 2017 1 commit
  12. 15 Mar, 2017 1 commit
    • Jakob Andersen's avatar
      Put Gradle output in build/ (#8759) · 1457f3db
      Jakob Andersen authored
      Changed the default build output directory in the new project template
      to build/, instead of android/build/ and android/app/build/.
      
      Updated tools to ask the Gradle scripts what the build directory is,
      since this is configurable in the build scripts, and we need to know
      where the build output actually is.
      
      Silenced output from 'flutter build aot' when invoked from Gradle, since
      the output was confusing in this case.
      
      Fixes #8723
      Fixes #8656
      Fixes #8138
      1457f3db
  13. 28 Feb, 2017 1 commit
  14. 10 Feb, 2017 1 commit
    • Jakob Andersen's avatar
      Make new project template gradle-based for Android. (#7902) · b246c5e7
      Jakob Andersen authored
      * Make new project template gradle-based for Android.
      
      With this change, the 'new project' template uses the same gradle-based build for Android as the hello_services example. This has some implications on build performance, since we're now building a complete Android app instead of just combining a pre-compiled .dex with the Flutter assets.
      
      The very first build is a little over 2x slower, since it needs to download gradle and build the build scripts before getting to the actual code. Subsequent builds with changes to the code are comparable to the old builds. Null builds are faster. Enabling the gradle daemon speeds up subsequent builds by around 5s.
      
      * Move Flutter Gradle plugin to Flutter root.
      b246c5e7