mono0926 / barcode_scan2

[reborned barcode_scan] A flutter plugin for reading 2D barcodes and QR codes.

Home Page:https://pub.dev/packages/barcode_scan2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Please release a version with a later version of kotlin

xqiu opened this issue · comments

Is your feature request related to a problem? Please describe.
For a flutter project with higher kotlin version, such as 1.7.21, and

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