Skip to content

gradle update-Flutter 3.29.0#232

Open
Sameetdmr wants to merge 2 commits into
edufolly:masterfrom
Sameetdmr:master
Open

gradle update-Flutter 3.29.0#232
Sameetdmr wants to merge 2 commits into
edufolly:masterfrom
Sameetdmr:master

Conversation

@Sameetdmr
Copy link
Copy Markdown

No description provided.

SAMED.DEMIR and others added 2 commits March 4, 2025 10:28
@hayyaun
Copy link
Copy Markdown

hayyaun commented Mar 15, 2025

This pr just saved my entire day! Thanks 🙌

@VB10
Copy link
Copy Markdown

VB10 commented Apr 21, 2025

This pull request introduces significant updates to modernize the Android build system for the flutter_bluetooth_serial project and its example app. Key changes include migrating from Groovy-based Gradle files to Kotlin DSL, updating Gradle and Android Gradle Plugin versions, and aligning the project with current Android and Flutter best practices.

Migration to Kotlin DSL and Build System Updates:

  • Replaced android/build.gradle with android/build.gradle.kts, transitioning to Kotlin DSL and updating the compileSdk version to 34 and Java compatibility to version 11. [1] [2]
  • Updated example/android/build.gradle to example/android/build.gradle.kts, aligning with Kotlin DSL and introducing modern Gradle configurations. [1] [2]
  • Updated gradle-wrapper.properties to use Gradle 8.10.2, ensuring compatibility with the latest tools. [1] [2]

Flutter and Android Integration Improvements:

  • Introduced Flutter Gradle Plugin in example/android/app/build.gradle.kts and updated configurations to use Flutter-specific properties like flutter.compileSdkVersion and flutter.minSdkVersion. [1] [2]
  • Added a new MainActivity.kt file in the example app to use the Kotlin-based FlutterActivity.

Project Metadata and Linting:

  • Added example/analysis_options.yaml to configure Dart analyzer with Flutter-recommended lints for better code quality.
  • Updated .metadata to reflect migration to the stable Flutter channel and included migration tracking details.

Manifest and Resource Updates:

  • Updated AndroidManifest files for debug, main, and profile builds to align with modern Flutter embedding and include required permissions and metadata. [1] [2] [3]
  • Added new resource files for splash screen and theme customization in example/android/app/src/main/res. [1] [2] [3]

These changes collectively modernize the project, improve maintainability, and ensure compatibility with the latest Android and Flutter tooling.

@Sameetdmr you can use this explanation for this PR (generated by copilot). Thank you for your contribution!!

@LuvForAirplanes
Copy link
Copy Markdown

@edufolly what do we need to get this one merged?

@devstar1224
Copy link
Copy Markdown

devstar1224 commented Jul 18, 2025

applied a temporary fix to assign a namespace only to the package with the io.github.edufolly.flutterbluetoothserial group.
This workaround should be sufficient until the next update is released.

android/build.gradle

subprojects {
    afterEvaluate { project ->
        if (project.hasProperty('android') &&
                project.group == 'io.github.edufolly.flutterbluetoothserial') {

            project.android {
                if (namespace == null) {
                    namespace 'io.github.edufolly.flutterbluetoothserial'
                }
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants