1. 09 May, 2018 1 commit
    • Chris Bracken's avatar
      Replace --prefer-shared-library with --build-shared-library (#17394) · 8b8d368d
      Chris Bracken authored
      This replaces the --prefer-shared-library flag, which falls back to
      regular (non-shared-lib) compile if the NDK is not found, with the
      --build-shared-library flag, which exits with an error message if the
      NDK is not found.
      
      This simplifies the set of allowed code paths through AOT compile,
      resulting in better testability and easier-to-follow logic. It also
      results in more predictable behaviour for continuous integration and
      other scenarios.
      8b8d368d
  2. 07 May, 2018 1 commit
    • Chris Bracken's avatar
      Support multi-arch iOS binaries (#17312) · 849676fc
      Chris Bracken authored
      This change adds support for armv7, arm64, and universal iOS apps.
      
      This change eliminates iOS target architecture hardcoding (previously
      arm64 only) and uses the target architecture(s) specified in Xcode's
      ARCHS setting ('Architectures' in Xcode Build Settings).
      
      For universal binaries, set ARCHS to its default value, $(ARCHS_STANDARD).
      
      Note that after changing the architecture in Xcode, developers should
      run 'pod install' from the ios subdirectory of their project. A separate
      change (that will land before this one) will add support for
      automatically detecting project file and Podfile changes and re-running
      pod install if necessary.
      
      This change also adds an --ios-arch option to flutter build aot. In iOS
      AOT builds (in profile and release mode), this dictates which
      architectures are built into App.framework. This flag should generally
      be unnecessary to set manually since flutter build aot is typically only
      invoked internally by flutter itself.
      849676fc
  3. 01 May, 2018 1 commit
  4. 29 Apr, 2018 1 commit
    • Chris Bracken's avatar
      Extract kernel compile from buildAotSnapshot (#17062) · cdbb2385
      Chris Bracken authored
      Moves the kernel compile step to the beginning of the AOT build in a
      separate method. This is pre-factoring for iOS universal builds where
      the kernel build happens once, but we then snapshot twice: once for
      armv7 and once for arm64.
      
      This also writes dependencies to build/kernel_compile.d rather than
      build/aot/snapshot.d, since that is immediately overwritten by
      gen_snapshot.
      cdbb2385
  5. 27 Apr, 2018 4 commits
  6. 26 Apr, 2018 8 commits
  7. 24 Apr, 2018 1 commit
    • Chris Bracken's avatar
      Extract KernelCompiler class (#16937) · 7ffcd3d2
      Chris Bracken authored
      Wraps the compile function in a class injected via the global context,
      which makes it easier to mock in unit tests -- specifically tests for
      AOT snapshotting, which already require pretty significant amounts of
      mock inputs.
      7ffcd3d2
  8. 23 Apr, 2018 1 commit
  9. 12 Apr, 2018 1 commit
  10. 10 Apr, 2018 2 commits
  11. 16 Mar, 2018 1 commit
  12. 09 Mar, 2018 1 commit
  13. 07 Mar, 2018 2 commits
  14. 06 Mar, 2018 1 commit
  15. 02 Mar, 2018 1 commit
  16. 23 Feb, 2018 1 commit
    • Vyacheslav Egorov's avatar
      Fix snapshot fingerprinting in --preview-dart-2 mode. (#14843) · 1f6b9471
      Vyacheslav Egorov authored
      * Fix snapshot fingerprinting in --preview-dart-2 mode.
      
      This is a follow up to PR #14775 - instead of treating dill file
      as an input treat as intermediate file and don't fingerprint it.
      
      Make sure to always use original main Dart file as an entry
      point for fingerprint calculation.
      
      This fixes an issue that AOT snapshot would not be recompiled in
      the preview-dart-2 mode if entry point changes, e.g.
      
      $ flutter build aot -t t/x.dart --preview-dart-2
      $ flutter build aot -t t/y.dart --preview-dart-2
      
      The second invocation would not build AOT snapshot.
      
      (This issue is visible on the microbencmarks bot)
      1f6b9471
  17. 20 Feb, 2018 1 commit
  18. 14 Feb, 2018 1 commit
  19. 12 Feb, 2018 1 commit
  20. 08 Feb, 2018 1 commit
  21. 02 Feb, 2018 1 commit
  22. 01 Feb, 2018 1 commit
  23. 16 Jan, 2018 1 commit
  24. 11 Jan, 2018 3 commits
  25. 04 Jan, 2018 1 commit
    • Siva's avatar
      support for --strong option (#13859) · 426d6b06
      Siva authored
      * Plumb a --strong option through to the front end server and the engine
      so that we can run flutter apps in preview-dart-2 and strong mode
      
      * - Address analyzer lint issues
      *- correctly set up strong mode option in the case of AOT builds
      426d6b06
  26. 05 Dec, 2017 1 commit