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

some typos in installation and usage guide (alguns erros de Digitação nos guias de instalação e uso) #116

Open
t0in4 opened this issue Jan 13, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@t0in4
Copy link

t0in4 commented Jan 13, 2024

Describe the bug
A clear and concise description of what the bug is.
From https://github.com/g0dkar/qrcode-kotlin
In installation:
Screenshot from 2024-01-13 20-47-37

Repo qrcode-kotline:4.1.1 not found
Execution failed for task ':compileKotlin'.

Could not resolve all files for configuration ':compileClasspath'.
Could not find io.github.g0dkar:qrcode-kotlin:4.1.1.
Searched in the following locations:
https://repo.maven.apache.org/maven2/io/github/g0dkar/qrcode-kotlin/4.1.1/qrcode-kotlin-4.1.1.pom

In usage:
Screenshot from 2024-01-13 20-46-47

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

  1. // Use this for both Android and JVM
    implementation("io.github.g0dkar:qrcode-kotlin:4.1.1")

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) }

@t0in4 t0in4 added the bug Something isn't working label Jan 13, 2024
@g0dkar
Copy link
Owner

g0dkar commented Jan 13, 2024

Heya! Thanks for the report! I had some issues with the release process but this should be fixed soon 😅

@Gametz
Copy link

Gametz commented Jan 19, 2024

I have the same problem.

This way fixed to me:

.render() --> .renderToBytes()

@g0dkar
Copy link
Owner

g0dkar commented Jan 20, 2024

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants