1. 24 Jan, 2024 1 commit
  2. 23 Jan, 2024 1 commit
    • auto-submit[bot]'s avatar
      Reverts "hello_world app: migrate to Gradle Kotlin DSL" (#142018) · b258ca01
      auto-submit[bot] authored
      Reverts flutter/flutter#141541
      Initiated by: yusuf-goog
      This change reverts the following previous change:
      Original Description:
      This PR introduces the first app in this repo that fully uses Gradle Kotlin DSL.
      
      It also fixes a bug I found in the process – fields of `FlutterExtensions` must be `public`.
      b258ca01
  3. 22 Jan, 2024 1 commit
  4. 19 Jan, 2024 1 commit
  5. 12 Jan, 2024 3 commits
    • Christopher Fujino's avatar
      unpin web_socket_channel and roll pub packages (#141424) · 9e9af67b
      Christopher Fujino authored
      Fixes https://github.com/flutter/flutter/issues/141032
      
      We pinned to web_socket_channel v2.4.1 because v2.4.2 was retracted, however v2.4.3 is now available.
      9e9af67b
    • Bartek Pacia's avatar
      Expose versionCode and versionName from local.properties in FlutterExtension (#141417) · fd827e3a
      Bartek Pacia authored
      This PR has no issue. I got this cool idea and decided to quickly try it out, and it works.
      
      ### Summary
      
      This will allow Flutter Developers to have less code in their Android Gradle buildscripts.
      
      ```diff
       plugins {
           id "com.android.application"
           id "dev.flutter.flutter-gradle-plugin"
           id "kotlin-android"
       }
      
      -def localProperties = new Properties()
      -def localPropertiesFile = rootProject.file("local.properties")
      -if (localPropertiesFile.exists()) {
      -    localPropertiesFile.withReader("UTF-8") { reader ->
      -        localProperties.load(reader)
      -    }
      -}
      -
      -def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
      -if (flutterVersionCode == null) {
      -    flutterVersionCode = "1"
      -}
      -
      -def flutterVersionName = localProperties.getProperty("flutter.versionName")
      -if (flutterVersionName == null) {
      -    flutterVersionName = "1.0"
      -}
      -
      -def keystorePropertiesFile = rootProject.file("keystore.properties")
      -def keystoreProperties = new Properties()
      -
       keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
      
       android {
               applicationId "pl.baftek.discoverrudy"
               minSdk 21
               targetSdk 34
      -        versionCode flutterVersionCode.toInteger()
      -        versionName flutterVersionName
      +        versionCode flutter.versionCode()
      +        versionName flutter.versionName()
           }
      ```
      
      The boilerplate that loads 'local.properties' can live in Flutter Gradle Plugin.
      
      ### Concerns
      
      I was worried about lifecycle/ordering issues, so I tested it.
      
      To Flutter Gradle Plugin, I added:
      
      ```diff
       class FlutterPlugin implements Plugin<Project> {
           //...
      
           @Override
           void apply(Project project) {
      +        project.logger.quiet("Start applying FGP")
               // ...
           }
       }
      ```
      
      and to my `android/app/build.gradle` I added:
      
      ```diff
       android {
      +    logger.quiet("Start evaluating android block")
           namespace "pl.bartekpacia.awesomeapp"
           compileSdk 34
       
           defaultConfig {
               applicationId "pl.baftek.discoverrudy"
               minSdk 21
               targetSdk 34
               versionCode flutter.versionCode()
               versionName flutter.versionName()
           }
      ```
      
      Gradle first applies the plugins (which sets versionCode and versionName on FlutterExtension), and then it executes the `android {}` extension block:
      
      ```
      $ ./gradlew :app:assembleDebug
      
      > Configure project :app
      Start applying FGP
      Start evaluating android block
      
      BUILD SUCCESSFUL in 2s
      383 actionable tasks: 10 executed, 373 up-to-date
      ```
      
      So ordering is fine.
      fd827e3a
    • Bartek Pacia's avatar
      Add support for Gradle Kotlin DSL (#140744) · 0a1af8a1
      Bartek Pacia authored
      This PR resolves #140548. It's based on my work in #118067.
      0a1af8a1
  6. 09 Jan, 2024 1 commit
  7. 05 Jan, 2024 1 commit
  8. 04 Jan, 2024 1 commit
  9. 03 Jan, 2024 2 commits
  10. 02 Jan, 2024 3 commits
  11. 20 Dec, 2023 1 commit
  12. 19 Dec, 2023 1 commit
  13. 15 Dec, 2023 3 commits
  14. 06 Dec, 2023 1 commit
  15. 16 Nov, 2023 1 commit
  16. 15 Nov, 2023 1 commit
    • Srujan Gaddam's avatar
      Pin package:web 0.4.0 (#138428) · d8ffc739
      Srujan Gaddam authored
      This version is needed so that dart:js_interop can move to extension
      types. Also adds some code to handle some breaking changes:
      
      - Body -> Response. Body was an IDL interface mixin type we exposed in
      dart:html. Going forward, users should either use Request or Response.
      - Casts to JSAny. These are temporary until we move package:web types to
      extension types. Currently, package:web types can't implement JSObject
      as JSObject will move to be an extension type itself.
      Co-authored-by: 's avatarKevin Moore <kevmoo@users.noreply.github.com>
      d8ffc739
  17. 13 Nov, 2023 1 commit
  18. 09 Nov, 2023 1 commit
  19. 03 Nov, 2023 2 commits
  20. 02 Nov, 2023 2 commits
  21. 01 Nov, 2023 1 commit
  22. 31 Oct, 2023 1 commit
  23. 25 Oct, 2023 2 commits
  24. 24 Oct, 2023 1 commit
  25. 20 Oct, 2023 1 commit
  26. 19 Oct, 2023 1 commit
  27. 12 Oct, 2023 1 commit
  28. 11 Oct, 2023 1 commit
  29. 29 Sep, 2023 1 commit
  30. 22 Sep, 2023 1 commit