g0dkar / qrcode-kotlin

QRCode Generator implemented in pure Kotlin
https://qrcodekotlin.com/
MIT License
160 stars 13 forks source link

Fixing QRCodeGraphics to generate a valid QRCode on iOS #93

Closed ruicanas closed 7 months ago

ruicanas commented 7 months ago

This PR is associated to #92.

Changes:

  1. Added 1 more available format on iOS
  2. In QRCodeGraphics, getBytes() is returning valid data instead of an empty ByteArray
  3. In QRCodeGraphics, thickness is now being used to give the proper thickness for rectangles (drawRect())
  4. I added a useful converter that transforms NSData into ByteArray
g0dkar commented 7 months ago

Just to keep you updated, I'll merge it with the minor suggestion I've made on monday :)