Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xqiu opened this issue Jan 3, 2023 · 7 comments
Open

Comments

@xqiu
Copy link

xqiu commented Jan 3, 2023

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!

@bismarabia
Copy link

Any work on this? @mono0926

@mono0926
Copy link
Owner

@bismarabia

No, but I'm welcome the pull request 🐶

@HendrenTahsenKhalaf
Copy link

Any work on this? @mono0926

@mono0926
Copy link
Owner

@HendrenTahsenKhalaf

No, but I'm welcome the pull request 🐶

@mahmourad98
Copy link

mahmourad98 commented Mar 1, 2023

@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

@bradintheusa
Copy link

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

@mahmourad98
Copy link

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

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

No branches or pull requests

6 participants