Skip to content

gradle update-Flutter 3.29.0 #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Sameetdmr
Copy link

No description provided.

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

hayyaun commented Mar 15, 2025

This pr just saved my entire day! Thanks 🙌

@VB10
Copy link

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!!

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.

3 participants