g0dkar/qrcode-kotlin

QR codes not being generated properly for iOS

Closed this issue · 1 comments

Describe the bug
The method getBytes() from QRCodeGraphics is not giving the correct data to generate a QRCode.

To Reproduce

  1. Instantiate any type of QRCode and try to use getBytes() method.
  2. Try to use the ByteArray generated in an iOS app.

Expected behavior
Expected the QRCode to be shown correctly once I pass the ByteArray to NSData, and then from NSData to UIImage.

Additional context
I actually have a fix for this issue and I opened a PR for this. I have found another issue regarding the logos with a background color different than Colors.TRANSPARENT that only occurs in iOS. I don't know if this could be also a good place to talk about it.

Fixed and merged 😃