aifeii / qr_code_tools Goto Github PK
View Code? Open in Web Editor NEWThe Flutter plugin for iOS and Android to decoding QR codes.
License: MIT License
The Flutter plugin for iOS and Android to decoding QR codes.
License: MIT License
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift.
Supported values are: 4.0, 4.2, 5.0. This setting can be set in the build settings editor.
And I am getting this suggestions in Xcode
The target “qr_code_tools” contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets.
Use Xcode 10.1 to migrate the code to Swift 4.
Can you please migrate it to Swift 4
If this image is jpg type, and size is around 20MB, will crash in Android. There is no issue with a 25MB png file.
For iOS, like iPadOS 14.5, works well.
Env:
Plugin version: 0.0.7
Android: tablet, Android 9.0.
20MB JPG Image Sample
30MB JPG Image Sample
....
E/AndroidRuntime(15350): java.lang.OutOfMemoryError: Failed to allocate a 840500016 byte allocation with 12582912 free bytes and 190MB until OOM, max allowed footprint 14148688, growth limit 201326592
E/AndroidRuntime(15350): at com.aifeii.qrcode.tools.QrCodeToolsPlugin.onMethodCall(QrCodeToolsPlugin.kt:44)
E/AndroidRuntime(15350): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(15350): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/AndroidRuntime(15350): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
E/AndroidRuntime(15350): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(15350): at android.os.MessageQueue.next(MessageQueue.java:326)
E/AndroidRuntime(15350): at android.os.Looper.loop(Looper.java:160)
E/AndroidRuntime(15350): at android.app.ActivityThread.main(ActivityThread.java:6758)
E/AndroidRuntime(15350): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15350): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(15350): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I/Process (15350): Sending signal. PID: 15350 SIG: 9
Lost connection to device.
tried this:
no feedback from
scanQRDataByImage(String path, ImagePickerQRScanCallback callback) async{
print(path);
async QrCodeToolsPlugin.decodeFrom(path).then((data){
print("SCANNED DATA");
print(data);
});
}
assets Image or image gallery path does not work.
Please see this issue posted on stackoverflow:
https://stackoverflow.com/questions/56883471/how-can-i-read-a-qr-code-from-a-image-in-flutter-using-proper-package
Please share any suggestion.
hi there,
If i try to build on iOS, i get this:
qr_code_tools
does not specify a Swift version and none of the targets (Runner
) integrating it have the
SWIFT_VERSION
attribute set. Please contact the author or set theSWIFT_VERSION
attribute in at least one of
the targets that integrate this pod.
i'am using Flutter stable, v1.9.1+hotfix.6
on Mac OS X 10.13.6 / Xcode 10.1
do you have any idea have to make it work ?
any help appreciated :)
thanks,
matthias
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.