Skip to content

👷🏽‍♂️ chore: Update Android and Flutter dependencies for modern compatibility#382

Open
giovanninibarbosa wants to merge 5 commits intoAmolGangadhare:masterfrom
giovanninibarbosa:master
Open

👷🏽‍♂️ chore: Update Android and Flutter dependencies for modern compatibility#382
giovanninibarbosa wants to merge 5 commits intoAmolGangadhare:masterfrom
giovanninibarbosa:master

Conversation

@giovanninibarbosa
Copy link
Copy Markdown

Description

This PR updates various dependencies and configurations to ensure compatibility with modern Flutter and Android versions. These changes are necessary to support the latest Flutter SDK (3.29.3) and maintain compatibility with current Android development practices.

Changes

Android Updates

  • Updated Gradle to 8.7
  • Updated Android SDK to 34
  • Updated Java compatibility to version 17
  • Added namespace declaration
  • Updated various Android dependencies to their latest stable versions
  • Improved Android configuration for better performance and security

Flutter Updates

  • Updated SDK constraints to support Flutter 3.29.3
  • Updated minimum Flutter version to 3.19.0
  • Updated Flutter plugin dependencies to latest versions
  • Added repository and issue tracker URLs for better project maintenance

Version

  • Bumped version to 2.0.1

Testing

  • Tested on Android devices with different API levels
  • Verified compatibility with Flutter 3.29.3
  • Ensured all existing functionality works as expected

Breaking Changes

None. This is a maintenance update that improves compatibility without changing the plugin's API or behavior.

@mfurkanyuceal
Copy link
Copy Markdown

mfurkanyuceal commented Jun 23, 2025

I tried to get the debug build but I got the following error.
Flutter version: 3.29.3
Gradle version: 8.10.1

`
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_barcode_scanner:generateDebugRFile'.

Could not resolve all files for configuration ':flutter_barcode_scanner:debugCompileClasspath'.
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-3316dd8728419ad3534e3f6112aa6291f587078a.
Required by:
project :flutter_barcode_scanner
> Cannot find a version of 'io.flutter:flutter_embedding_debug' that satisfies the version constraints:
Dependency path 'com.amolg.flutterbarcodescanner:flutter_barcode_scanner:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-3316dd8728419ad3534e3f6112aa6291f587078a'
Dependency path 'com.amolg.flutterbarcodescanner:flutter_barcode_scanner:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:1.0.0-cf56914b326edb0ccb123ffdc60f00060bd513fa'
Constraint path 'com.amolg.flutterbarcodescanner:flutter_barcode_scanner:1.0-SNAPSHOT' --> 'io.flutter:flutter_embedding_debug:{strictly 1.0.0-cf56914b326edb0ccb123ffdc60f00060bd513fa}' because of the following reason: version resolved in configuration ':flutter_barcode_scanner:debugRuntimeClasspath' by consistent resolution
Dependency path 'com.amolg.flutterbarcodescanner:flutter_barcode_scanner:1.0-SNAPSHOT' --> 'io.flutter.plugins.flutter_plugin_android_lifecycle:flutter_plugin_android_lifecycle:1.0' (debugApiElements) --> 'io.flutter:flutter_embedding_debug:1.0.0-cf56914b326edb0ccb123ffdc60f00060bd513fa'

There are 2 more failures with identical causes.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 31s
Error: Gradle task assembleDebug failed with exit code 1
`

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.

2 participants