Git Product home page Git Product logo

Comments (10)

LossyDragon avatar LossyDragon commented on June 18, 2024 1

Chiming in here for my issue as well!

Looks to be working good using 4.0.5, even though I'm using the bare basics of this library. 😄

However, would it be possible to maybe hush up the logging from QRCodeGraphics.android.kt? The spam of that in the log cat pretty much fills up the buffer from AS.

from qrcode-kotlin.

g0dkar avatar g0dkar commented on June 18, 2024 1

Oof my bad hahahahahahaha, I'll remove the Logs asap

An old meme for your troubles:
maxresdefault-944889991

from qrcode-kotlin.

realh avatar realh commented on June 18, 2024 1

QRCodeProcessor works for me in 4.0.6. Sorry about the delay.

from qrcode-kotlin.

g0dkar avatar g0dkar commented on June 18, 2024

Sure thing! I just noticed this myself hahaha, I'll change it for v4.0.5 along fixes for the Jetpack Compose (issue #88)

Thanks for sharing <3

from qrcode-kotlin.

g0dkar avatar g0dkar commented on June 18, 2024

Heya @realh! Can you check v4.0.5 that was just released? I've reduced the minimum SDK back to 23 :)

from qrcode-kotlin.

realh avatar realh commented on June 18, 2024

4.0.5 isn't working for me. import io.github.g0dkar.qrcode.QRCode causes an 'Unresolved reference: QRCode' error. If I hover over the error/code for val qr = QRCode(data = payload) the IDE suggests I import qrcode.QRCode instead, and labels the suggestion with Gradle: io.github.g0dkar:qrcode-kotlin-android:4.0.5@aar (classes.jar). This seems to import a class that's not the same as the one I was using before. The encode and computeImageSize methods are missing and render has a different signature. It's now expecting

public final fun render(
    qrCodeGraphics: QRCodeGraphics,
    xOffset: Int,
    yOffset: Int
): QRCodeGraphics

instead of

public final fun render(
    cellSize: Int,
    margin: Int,
    rawData: Array<Array<QRCodeSquare?>>,
    qrCodeGraphics: QRCodeGraphics,
    brightColor: Int,
    darkColor: Int,
    marginColor: Int
): QRCodeGraphics

from qrcode-kotlin.

g0dkar avatar g0dkar commented on June 18, 2024

Heya! Unfortunately due to a bunch of optimizations, internal and external changes I had to change the API a bit.

The io.github.g0dkar.qrcode.QRCode from v3 is now qrcode.raw.QRCodeProcessor, the API should be largely unchanged :) - all that was changed was adding a pair of integers on the rendering callback on renderShaded()

Could you try this change and see if all works? If not, I'll try to come up with a less breaking change 😅

Edit: sorry for the inconvenience and headaches =/

from qrcode-kotlin.

g0dkar avatar g0dkar commented on June 18, 2024

No problem @realh! Thanks for the feedback! Let me know if there's anything else ^^

from qrcode-kotlin.

Doomsdayrs avatar Doomsdayrs commented on June 18, 2024

Can the minimum version be dropped even lower, to 22 instead?

from qrcode-kotlin.

g0dkar avatar g0dkar commented on June 18, 2024

Heya @Doomsdayrs! I think so, I'll give it a try :D

[Edit: afaik, all that is used from Android is the Bitmap class, which according to docs comes from way back on v1]

from qrcode-kotlin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.