barcode_scan2 icon indicating copy to clipboard operation
barcode_scan2 copied to clipboard

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

Open xqiu opened this issue 2 years ago • 7 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

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

xqiu avatar Jan 03 '23 09:01 xqiu

Any work on this? @mono0926

bismarabia avatar Feb 09 '23 11:02 bismarabia

@bismarabia

No, but I'm welcome the pull request 🐶

mono0926 avatar Feb 10 '23 07:02 mono0926

Any work on this? @mono0926

HendrenTahsenKhalaf avatar Feb 26 '23 11:02 HendrenTahsenKhalaf

@HendrenTahsenKhalaf

No, but I'm welcome the pull request 🐶

mono0926 avatar Feb 27 '23 08:02 mono0926

@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

mahmourad98 avatar Mar 01 '23 09:03 mahmourad98

I'm happy to make the PR/change. Are there any specific tests or edge cases I need to worry about?

bradintheusa avatar Jul 25 '23 13:07 bradintheusa

no, not as far as I know. you can merge it

mahmourad98 avatar Jul 25 '23 16:07 mahmourad98