Open t0in4 opened 8 months ago
Heya! Thanks for the report! I had some issues with the release process but this should be fixed soon 😅
I have the same problem.
This way fixed to me:
.render() --> .renderToBytes()
Heya, finally found out what was going wrong with the deployment. The 4.1.1 version should be up soon!
Sorry for the delay, I had COVID and wasn't feeling well at all x_x
Let me know if you can access the 4.1.1 version and if it solves the issues :)
Describe the bug A clear and concise description of what the bug is. From https://github.com/g0dkar/qrcode-kotlin In installation:
Repo qrcode-kotline:4.1.1 not found Execution failed for task ':compileKotlin'.
In usage:
val pngBytes = helloWorld.render() // return error None of the following functions can be called with the arguments supplied. write(ByteArray!) defined in java.io.FileOutputStream write(Int) defined in java.io.FileOutputStream
All issues was solved by changing : Todos os problemas foram resolvidos alterando
To
implementation("io.github.g0dkar:qrcode-kotlin:4.1.0")
// By default, QRCodes are rendered as PNGs. val pngBytes = helloWorld.render() FileOutputStream("hello-world.png").use { it.write(pngBytes) }
To
// By default, QRCodes are rendered as PNGs. val pngBytes = helloWorld.renderToBytes() FileOutputStream("hello-world.png").use { it.write(pngBytes) }