barcode_scan2
barcode_scan2 copied to clipboard
[Feature Request] Please release a version with a later version of kotlin
Is your feature request related to a problem? Please describe. For a flutter project with higher kotlin version, such as 1.7.21, and
- classpath 'com.android.tools.build:gradle:7.3.1'
- distributionUrl=https://services.gradle.org/distributions/gradle-7.5-all.zip
flutter build apk Building with sound null safety FAILURE: Build failed with an exception.
- What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':barcode_scan2' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61
Describe the solution you'd like If it's possible to get barcode_scan2 version with kotlin gradle > 1.5.20
Describe alternatives you've considered I don't want to degrade my project's kotlin, so I have to stay with a few compatibility warnings at this time without upgrading classpath and distributionUrl.
Additional context Thanks for the plugin!
Any work on this? @mono0926
@bismarabia
No, but I'm welcome the pull request 🐶
Any work on this? @mono0926
@HendrenTahsenKhalaf
No, but I'm welcome the pull request 🐶
@HendrenTahsenKhalaf | @mono0926 as a quick solution for this I downloaded the package on my local machine I included as an embeded library of my project I put it in a folder called .plugins in project root directory I changed version of kotlin plugin in build.gradle file I add this line to pubspec.yaml file to read the package from inside the project barcode_scan2: path: ./.plugins/barcode_scan2 it works fine for me, it is a light weight package so the project will not have much a bigger size
I'm happy to make the PR/change. Are there any specific tests or edge cases I need to worry about?
no, not as far as I know. you can merge it