Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-11-22 14:50:04 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
006e2354df9a57e0623f2854c7fb997b8abdfa76
006e2354
1 parent
9835adec
fix conversion crash in iOS
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
CHANGELOG.md
ios/Classes/MobileScannerPlugin.swift
ios/mobile_scanner.podspec
macos/mobile_scanner.podspec
pubspec.yaml
CHANGELOG.md
View file @
006e235
## 3.5.
3
## 3.5.
4
Bugs fixed:
*
Fixed a bug with an implicit conversion to integer for the scan timeout for iOS. (thanks @EArminjon !)
...
...
ios/Classes/MobileScannerPlugin.swift
View file @
006e235
...
...
@@ -103,7 +103,7 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin {
let
returnImage
:
Bool
=
(
call
.
arguments
as!
Dictionary
<
String
,
Any
?
>
)[
"returnImage"
]
as?
Bool
??
false
let
speed
:
Int
=
(
call
.
arguments
as!
Dictionary
<
String
,
Any
?
>
)[
"speed"
]
as?
Int
??
0
let
timeoutMs
:
Int
=
(
call
.
arguments
as!
Dictionary
<
String
,
Any
?
>
)[
"timeout"
]
as?
Int
??
0
self
.
mobileScanner
.
timeoutSeconds
=
timeoutMs
/
Double
(
1000
)
self
.
mobileScanner
.
timeoutSeconds
=
Double
(
timeoutMs
)
/
Double
(
1000
)
let
formatList
=
formats
.
map
{
format
in
return
BarcodeFormat
(
rawValue
:
format
)}
var
barcodeOptions
:
BarcodeScannerOptions
?
=
nil
...
...
ios/mobile_scanner.podspec
View file @
006e235
...
...
@@ -4,7 +4,7 @@
#
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
'mobile_scanner'
s
.
version
=
'3.5.
3
'
s
.
version
=
'3.5.
4
'
s
.
summary
=
'An universal scanner for Flutter based on MLKit.'
s
.
description
=
<<-
DESC
An universal scanner for Flutter based on MLKit.
...
...
macos/mobile_scanner.podspec
View file @
006e235
...
...
@@ -4,7 +4,7 @@
#
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
'mobile_scanner'
s
.
version
=
'3.5.
3
'
s
.
version
=
'3.5.
4
'
s
.
summary
=
'An universal scanner for Flutter based on MLKit.'
s
.
description
=
<<-
DESC
An universal scanner for Flutter based on MLKit.
...
...
pubspec.yaml
View file @
006e235
name
:
mobile_scanner
description
:
A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
version
:
3.5.
3
version
:
3.5.
4
repository
:
https://github.com/juliansteenbakker/mobile_scanner
environment
:
...
...
Please
register
or
login
to post a comment