Comments (10)
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.
Oof my bad hahahahahahaha, I'll remove the Logs asap
An old meme for your troubles:
from qrcode-kotlin.
QRCodeProcessor works for me in 4.0.6. Sorry about the delay.
from qrcode-kotlin.
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.
Heya @realh! Can you check v4.0.5
that was just released? I've reduced the minimum SDK back to 23 :)
from qrcode-kotlin.
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.
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.
No problem @realh! Thanks for the feedback! Let me know if there's anything else ^^
from qrcode-kotlin.
Can the minimum version be dropped even lower, to 22 instead?
from qrcode-kotlin.
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)
- `BufferedImage` class not found HOT 1
- [iOS] Missing target for iOSX64 for 4.1.0 HOT 1
- Qrcode Version HOT 1
- some typos in installation and usage guide (alguns erros de Digitação nos guias de instalação e uso) HOT 3
- Make error correction configurable HOT 2
- Internet Required HOT 1
- RoundQRCode.kt Not working as expected HOT 1
- Tag releases
- Native target support for KMM project HOT 9
- Dependency Dashboard
- How To Decode QR HOT 1
- can't find the documentation HOT 2
- QRCode in fixed size? HOT 1
- Do you have a plan to support generating qr code with logo? HOT 2
- [v4.0.1] iOS and tvOS Feedback HOT 4
- Would it possible to support 1D barcode? HOT 1
- [Android] Blank QR code squares with compose HOT 12
- Issue when compiling for iosArm64 HOT 4
- QR codes not being generated properly for iOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrcode-kotlin.