1. 09 Nov, 2023 1 commit
  2. 03 Nov, 2023 1 commit
  3. 02 Nov, 2023 2 commits
  4. 27 Oct, 2023 2 commits
    • auto-submit[bot]'s avatar
      Reverts "Ensure `flutter build apk --release` optimizes+shrinks platform code" (#137433) · 4cae1af4
      auto-submit[bot] authored
      Reverts flutter/flutter#136880
      Initiated by: camsim99
      This change reverts the following previous change:
      Original Description:
      Since the original PR that supposedly enabled proguard, it was using the android proguard rules that disable optimizations. See initial PR in [0]
      
      This PR changes the flutter gradle plugin to use the `proguard-android-optimize.txt` (instead of `proguard-android.txt`) which will enable optimizations/shrinking of platform code (i.e. java/kotlin).
      
      For a simple flutter hello world this results in a 25% reduction in the resulting DEX file (`classes.dex` of the APK).
      
      [0] f098de1f
      
      Fixes https://github.com/flutter/flutter/issues/136879
      4cae1af4
    • Martin Kustermann's avatar
      Ensure `flutter build apk --release` optimizes+shrinks platform code (#136880) · 1dd21f8d
      Martin Kustermann authored
      Since the original PR that supposedly enabled proguard, it was using the
      android proguard rules that disable optimizations. See initial PR in [0]
      
      This PR changes the flutter gradle plugin to use the
      `proguard-android-optimize.txt` (instead of `proguard-android.txt`)
      which will enable optimizations/shrinking of platform code (i.e.
      java/kotlin).
      
      For a simple flutter hello world this results in a 25% reduction in the
      resulting DEX file (`classes.dex` of the APK).
      
      Note for users:
      
      For some users this may result in issues because their java/kotlin code is
      now better optimized & tree shaken and thereby symbols may be no longer
      available or being obfuscated.
      
      To fix those issues it's best to craft precise proguard rules describing the
      extra symbols that are needed by the app (see [1]). But it's also possible to
      opt out entirely of optimizations by using the unoptimized proguard rules.
      
      To add custom proguard rules or use the unoptimized android rules, one can
      update `android/app/build.gradle`:
      ```
      android {
          ...
          buildTypes {
              release {
                  ...
      +            proguardFiles(
      +                // Not ideal: Disables optimizations by using unoptimized android rules.
      +                getDefaultProguardFile("proguard-android.txt"),
      +
      +                // Better: Have precise keep rules to only keep things that are needed.
      +                "custom-rules.pro",
      +            )
              }
          }
      }
      ```
      
      
      [0] f098de1f
      [1] https://developer.android.com/build/shrink-code
      
      Fixes https://github.com/flutter/flutter/issues/136879
      1dd21f8d
  5. 26 Oct, 2023 1 commit
  6. 22 Sep, 2023 1 commit
  7. 21 Sep, 2023 1 commit
  8. 18 Aug, 2023 1 commit
    • chunhtai's avatar
      Updates app link gradle tasks and remove vm services (#131805) · 61242fa1
      chunhtai authored
      1. Remove vm service registration
      2. combine print<variant>ApplicationId and print<variant>AppLinkDomain into one task dump<variant>AppLinkSettings, which dump all the data in a json file
      
      The deeplink validation tool will be a static app in devtool instead of regular app. A Static app doesn't require a running app; therefore, we can't call these API through vmservices. I decided to convert these API into flutter analyzer command, which will be done in a separate PR https://github.com/flutter/flutter/pull/131009.
      
      The reason these print tasks are converted into file dumps is to reduce the amount of data encoding and decoding. Instead of passing data through stdout, the devtool can read the files generated by gradle tasks instead.
      61242fa1
  9. 16 Aug, 2023 1 commit
  10. 15 Aug, 2023 1 commit
  11. 09 Aug, 2023 1 commit
    • Zachary Anderson's avatar
      Allows adding a storage 'realm' to the storage base URL (#131951) · 118c2df7
      Zachary Anderson authored
      Context: https://github.com/flutter/flutter/issues/131862
      
      This PR injects a "realm" component to the storage base URL when the contents of the file `bin/internal/engine.realm` is non-empty.
      
      As documented in the PR, when the realm is `flutter_archives_v2`, and `bin/internal/engine.version` contains the commit hash for a commit in a `flutter/engine` PR, then the artifacts pulled by the tool will be the artifacts built by the presubmit checks for the PR.
      
      This works for everything but the following two cases:
      1. Fuchsia artifacts are not uploaded to CIPD by the Fuchsia presubmit builds.
      2. Web artifacts are not uploaded to gstatic by the web engine presubmit builds.
      
      For (1), the flutter/flutter presubmit `fuchsia_precache` is driven by a shell script outside of the repo. It will fail when the `engine.version` and `engine.realm` don't point to a post-submit engine commit.
      
      For (2), the flutter/flutter web presubmit tests that refer to artifacts in gstatic hang when the artifacts aren't found, so this PR skips them.
      118c2df7
  12. 02 Aug, 2023 1 commit
  13. 07 Jun, 2023 1 commit
  14. 05 May, 2023 1 commit
  15. 27 Apr, 2023 1 commit
  16. 19 Apr, 2023 1 commit
  17. 18 Apr, 2023 1 commit
  18. 13 Apr, 2023 1 commit
  19. 10 Mar, 2023 1 commit
  20. 17 Feb, 2023 1 commit
  21. 04 Jan, 2023 1 commit
  22. 20 Dec, 2022 1 commit
  23. 01 Dec, 2022 1 commit
  24. 09 Nov, 2022 1 commit
  25. 27 Oct, 2022 1 commit
  26. 25 Oct, 2022 1 commit
  27. 21 Oct, 2022 1 commit
  28. 10 Oct, 2022 1 commit
  29. 08 Oct, 2022 1 commit
  30. 06 Oct, 2022 2 commits
  31. 04 Oct, 2022 1 commit
  32. 14 Sep, 2022 1 commit
  33. 02 Sep, 2022 2 commits
  34. 15 Aug, 2022 1 commit
  35. 07 Aug, 2022 1 commit
  36. 31 May, 2022 1 commit