Closed crapthings closed 5 years ago
first you have to install meteor
curl https://install.meteor.com/ | sh
then clone this repo
git clone https://github.com/crapthings/testscan
cd testscan
meteor npm i
plug ios-device or use simulator
meteor run ios-device
after this will open workspace automaticly
i will upload a video on youtube to specify the problem
the error seems differently on cordova without meteor
npm i -g cordova@8.1.2 add platform ios add plugin
Thank you for giving such a detailed explanation of your problem. It just makes it so easy. :)
So in the youtube video around 3:43 you get an error in the line
guard let data = UIImageJPEGRepresentation(image, 1) ?? UIImagePNGRepresentation(image) else {
replace it with
guard let data = image.jpegData(compressionQuality:1.0) ?? image.pngData() else {
you can change compression quality from 0.0 to 1.0 where 1.0 is the best quality / least compression and 0.0 is the most compression / least quality. The plugin was written in swift 4.0 (and hence this issue when you build with 4.2), but it would seem using swift 4.2 fixes almost all your issues. So let me know if this fix works out for you.
is this the latest wescan lib?
it works, but the original wescan integration doesnt need to convert code, weird
anyway it just works. im closing this issue.
i have to set version to 1.0.0 to make this plugin working.
platform :ios, '10.3'
use_frameworks!
target 'EasyScroll' do
pod 'WeScan', '= 1.0.0'
end
mojave 10.14.3 xcode 10.2 (10E125) pod 1.3.1
the framework that i use is meteor 1.8.0.2 which cordova version is 4.5.4
plugins list