Skip to content

build: ⬆️ upgrade plugin and example sdk and dependencies#85

Open
moazelsawaf wants to merge 1 commit intonateshmbhat:masterfrom
moazelsawaf:plugin-upgrade
Open

build: ⬆️ upgrade plugin and example sdk and dependencies#85
moazelsawaf wants to merge 1 commit intonateshmbhat:masterfrom
moazelsawaf:plugin-upgrade

Conversation

@moazelsawaf
Copy link

This pull request updates the build system, dependencies, and configuration for both the main card_scanner plugin and its example app, aligning them with the latest Android, Kotlin, and Flutter standards. It also introduces improvements to code style and project structure, ensuring better compatibility and maintainability.

Build System and Dependency Upgrades

  • Upgraded Kotlin to version 2.1.0 and Android Gradle Plugin to 8.9.1 in android/build.gradle, switched repository from jcenter() to mavenCentral(), increased compileSdkVersion to 36, set ndkVersion, and raised minSdkVersion to 24.
  • Updated Gradle wrapper to use gradle-8.13-all.zip in both plugin and example apps for consistency with latest Gradle features. [1] [2]
  • Increased JVM memory allocation and removed deprecated R8 settings in gradle.properties files. [1] [2]
  • Modernized example/android/app/build.gradle by using the plugins DSL, updating SDK versions, and removing legacy Flutter SDK checks. [1] [2] [3] [4]
  • Refactored settings.gradle in the example app for improved plugin management and repository configuration, using the latest plugin loader approach.

Flutter and Dart Environment Updates

  • Updated Dart SDK constraint to ^3.9.2 and Flutter SDK to >=3.3.0 in both pubspec.yaml files, and refreshed dependency versions (e.g., cupertino_icons, flutter_launcher_icons). [1] [2]
  • Cleaned up and modernized pubspec.yaml files by removing outdated comments and improving formatting. [1] [2]

Code and Manifest Improvements

  • Improved code style in CardHolderNameFilter.kt by switching from toLowerCase to the more idiomatic lowercase.
  • Updated AndroidManifest.xml to set android:exported="true" for the main activity, ensuring compliance with newer Android requirements.

iOS Debugging Enhancements

  • Added LLDB integration scripts for iOS debugging, providing better support for native debugging scenarios. [1] [2]

These changes collectively bring the project up to date with current best practices for Android, Kotlin, and Flutter development, improving compatibility, reliability, and maintainability.

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.

1 participant