Skip to content

Commit 17160a5

Browse files
committed
Update deps and example version
1 parent ef6b9e7 commit 17160a5

File tree

7 files changed

+139
-140
lines changed

7 files changed

+139
-140
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [5.0.2] - Oct 9, 2024
2+
* Fix permission conflict on android
3+
* Bump dependencies
4+
15
## [5.0.1] - Feb 14, 2024
26
* Fix null pointer exception on disconnect for android
37
* Fix deprecated Handler

README.md

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ output to show within the defined area.
1313

1414
## Android Models
1515

16-
With this new version of MLKit, there are two seperate models you can use to do the barcode scanning. Currently, this
16+
With this new version of MLKit, there are two separate models you can use to do the barcode scanning. Currently, this
1717
apk chooses to use the build-in model. This will increase your code size by ~2.2MB but will
18-
result in better scanning and won't require a seperate package to be downloaded in the background for barcode scanning
18+
result in better scanning and won't require a separate package to be downloaded in the background for barcode scanning
1919
to work properly.
2020

2121
You could also use the Google Play Services and tell your app to download it on install from the play store. See the
@@ -48,43 +48,18 @@ Note that if you do this, you should tell your app to automatically download the
4848

4949
If this doesn't work for you please open an issue.
5050

51-
## 64 Bit Only on iOS
51+
## iOS
5252

53-
Unfortunately, Google has only released MLKit as a 64 bit binary. That means that this plugin and therefore your app
54-
don't support building or running on 32 bit. There were two possible approaches to dealing with this, but only one
55-
made it so that most users will be able to use the plugin easily.app
53+
For recent versions of Google's Barcode Scanning library ('GoogleMLKit/BarcodeScanning'),
54+
an iOS version of 15.5+ is required.
5655

57-
When you upgrade, if you are targeting a version of iOS before 11, you'll see a warning during the `pod install`
58-
and your app probably won't build (at least for release). That's because it'll be trying to build the 32-bit version and
59-
won't find the required files.
56+
The podspec has not been updated to reflect this requirement as usage of older versions
57+
of the dependency library is still possible (and necessary if you use an older
58+
Firebase version). However, if you are having dependency errors when updating this plugin
59+
in conjunction with the Firebase libraries, ensuring that your project has a version of
60+
15.5+ might be required.
6061

61-
The easy way to solve this is by updating to build for iOS 11 and later. To do this:
62-
63-
1) Add this line to your Podfile:
64-
```
65-
platform :ios, '11.0'
66-
```
67-
68-
2) (optional) Make sure your podfile sets build versions to 11 - if you see this at the bottom of your podfile make sure
69-
the line setting the deployment target to 11 is in there.
70-
```
71-
post_install do |installer|
72-
installer.pods_project.targets.each do |target|
73-
target.build_configurations.each do |config|
74-
config.build_settings['ENABLE_BITCODE'] = 'NO'
75-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
76-
end
77-
end
78-
end
79-
```
80-
81-
3) Setting the `iOS Deployment Target` to 11 in XCode -> Runner -> Build Settings -> Deployment -> iOS Deployment Target.
82-
83-
## Building for 64-bit before 11.0.
84-
85-
If you absolutely need to build for devices before 11.0, you might need to use an old version of the library that supports
86-
32-bit. If you're willing to live without 32 bit but do need to target before 11.0, you can do that by ignoring the warning
87-
CocoaPods will give you, and setting XCode -> Runner -> Build Settings -> Architectures -> Architectures to `${ARCHS_STANDARD_64_BIT}`.
62+
The example project has been updated to reflect this.
8863

8964
## Usage
9065

@@ -217,4 +192,4 @@ This has been tested on:
217192
- iPhone 7
218193

219194

220-
[version_badge]: https://img.shields.io/pub/v/qr_mobile_vision.svg
195+
[version_badge]: https://img.shields.io/pub/v/qr_mobile_vision.svg

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>12.0</string>
24+
<string>15.5</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '12.0'
2+
platform :ios, '15.5'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Podfile.lock

Lines changed: 56 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,60 @@ PODS:
22
- device_info_plus (0.0.1):
33
- Flutter
44
- Flutter (1.0.0)
5-
- GoogleDataTransport (9.3.0):
5+
- GoogleDataTransport (9.4.1):
66
- GoogleUtilities/Environment (~> 7.7)
7-
- nanopb (< 2.30910.0, >= 2.30908.0)
7+
- nanopb (< 2.30911.0, >= 2.30908.0)
88
- PromisesObjC (< 3.0, >= 1.2)
9-
- GoogleMLKit/BarcodeScanning (4.0.0):
9+
- GoogleMLKit/BarcodeScanning (6.0.0):
1010
- GoogleMLKit/MLKitCore
11-
- MLKitBarcodeScanning (~> 3.0.0)
12-
- GoogleMLKit/MLKitCore (4.0.0):
13-
- MLKitCommon (~> 9.0.0)
14-
- GoogleToolboxForMac/DebugUtils (2.3.2):
15-
- GoogleToolboxForMac/Defines (= 2.3.2)
16-
- GoogleToolboxForMac/Defines (2.3.2)
17-
- GoogleToolboxForMac/Logger (2.3.2):
18-
- GoogleToolboxForMac/Defines (= 2.3.2)
19-
- "GoogleToolboxForMac/NSData+zlib (2.3.2)":
20-
- GoogleToolboxForMac/Defines (= 2.3.2)
21-
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.3.2)":
22-
- GoogleToolboxForMac/DebugUtils (= 2.3.2)
23-
- GoogleToolboxForMac/Defines (= 2.3.2)
24-
- "GoogleToolboxForMac/NSString+URLArguments (= 2.3.2)"
25-
- "GoogleToolboxForMac/NSString+URLArguments (2.3.2)"
26-
- GoogleUtilities/Environment (7.12.0):
11+
- MLKitBarcodeScanning (~> 5.0.0)
12+
- GoogleMLKit/MLKitCore (6.0.0):
13+
- MLKitCommon (~> 11.0.0)
14+
- GoogleToolboxForMac/Defines (4.2.1)
15+
- GoogleToolboxForMac/Logger (4.2.1):
16+
- GoogleToolboxForMac/Defines (= 4.2.1)
17+
- "GoogleToolboxForMac/NSData+zlib (4.2.1)":
18+
- GoogleToolboxForMac/Defines (= 4.2.1)
19+
- GoogleUtilities/Environment (7.13.3):
20+
- GoogleUtilities/Privacy
2721
- PromisesObjC (< 3.0, >= 1.2)
28-
- GoogleUtilities/Logger (7.12.0):
22+
- GoogleUtilities/Logger (7.13.3):
2923
- GoogleUtilities/Environment
30-
- GoogleUtilities/UserDefaults (7.12.0):
24+
- GoogleUtilities/Privacy
25+
- GoogleUtilities/Privacy (7.13.3)
26+
- GoogleUtilities/UserDefaults (7.13.3):
3127
- GoogleUtilities/Logger
28+
- GoogleUtilities/Privacy
3229
- GoogleUtilitiesComponents (1.1.0):
3330
- GoogleUtilities/Logger
34-
- GTMSessionFetcher/Core (2.3.0)
31+
- GTMSessionFetcher/Core (3.5.0)
3532
- integration_test (0.0.1):
3633
- Flutter
37-
- MLImage (1.0.0-beta4)
38-
- MLKitBarcodeScanning (3.0.0):
39-
- MLKitCommon (~> 9.0)
40-
- MLKitVision (~> 5.0)
41-
- MLKitCommon (9.0.0):
42-
- GoogleDataTransport (~> 9.0)
43-
- GoogleToolboxForMac/Logger (~> 2.1)
44-
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
45-
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
46-
- GoogleUtilities/UserDefaults (~> 7.0)
34+
- MLImage (1.0.0-beta5)
35+
- MLKitBarcodeScanning (5.0.0):
36+
- MLKitCommon (~> 11.0)
37+
- MLKitVision (~> 7.0)
38+
- MLKitCommon (11.0.0):
39+
- GoogleDataTransport (< 10.0, >= 9.4.1)
40+
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
41+
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
42+
- GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0)
4743
- GoogleUtilitiesComponents (~> 1.0)
48-
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
49-
- MLKitVision (5.0.0):
50-
- GoogleToolboxForMac/Logger (~> 2.1)
51-
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
52-
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
53-
- MLImage (= 1.0.0-beta4)
54-
- MLKitCommon (~> 9.0)
55-
- nanopb (2.30909.1):
56-
- nanopb/decode (= 2.30909.1)
57-
- nanopb/encode (= 2.30909.1)
58-
- nanopb/decode (2.30909.1)
59-
- nanopb/encode (2.30909.1)
44+
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
45+
- MLKitVision (7.0.0):
46+
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
47+
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
48+
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
49+
- MLImage (= 1.0.0-beta5)
50+
- MLKitCommon (~> 11.0)
51+
- nanopb (2.30910.0):
52+
- nanopb/decode (= 2.30910.0)
53+
- nanopb/encode (= 2.30910.0)
54+
- nanopb/decode (2.30910.0)
55+
- nanopb/encode (2.30910.0)
6056
- native_device_orientation (0.0.1):
6157
- Flutter
62-
- PromisesObjC (2.3.1)
58+
- PromisesObjC (2.4.0)
6359
- qr_mobile_vision (0.0.1):
6460
- Flutter
6561
- GoogleMLKit/BarcodeScanning
@@ -99,24 +95,24 @@ EXTERNAL SOURCES:
9995
:path: ".symlinks/plugins/qr_mobile_vision/ios"
10096

10197
SPEC CHECKSUMS:
102-
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
98+
device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
10399
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
104-
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
105-
GoogleMLKit: 2bd0dc6253c4d4f227aad460f69215a504b2980e
106-
GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34
107-
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
100+
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
101+
GoogleMLKit: 97ac7af399057e99182ee8edfa8249e3226a4065
102+
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
103+
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
108104
GoogleUtilitiesComponents: 679b2c881db3b615a2777504623df6122dd20afe
109-
GTMSessionFetcher: 3a63d75eecd6aa32c2fc79f578064e1214dfdec2
110-
integration_test: 13825b8a9334a850581300559b8839134b124670
111-
MLImage: 7bb7c4264164ade9bf64f679b40fb29c8f33ee9b
112-
MLKitBarcodeScanning: 04e264482c5f3810cb89ebc134ef6b61e67db505
113-
MLKitCommon: c1b791c3e667091918d91bda4bba69a91011e390
114-
MLKitVision: 8baa5f46ee3352614169b85250574fde38c36f49
115-
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
105+
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
106+
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
107+
MLImage: 1824212150da33ef225fbd3dc49f184cf611046c
108+
MLKitBarcodeScanning: 10ca0845a6d15f2f6e911f682a1998b68b973e8b
109+
MLKitCommon: afec63980417d29ffbb4790529a1b0a2291699e1
110+
MLKitVision: e858c5f125ecc288e4a31127928301eaba9ae0c1
111+
nanopb: 438bc412db1928dac798aa6fd75726007be04262
116112
native_device_orientation: 348b10c346a60ebbc62fb235a4fdb5d1b61a8f55
117-
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
113+
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
118114
qr_mobile_vision: de2dbc8122cf2e0d15af3d777f6969e2d65876f6
119115

120-
PODFILE CHECKSUM: 7be2f5f74864d463a8ad433546ed1de7e0f29aef
116+
PODFILE CHECKSUM: f2095d9946016fd9e5adc1075579dbb37c2bbacc
121117

122-
COCOAPODS: 1.14.3
118+
COCOAPODS: 1.15.2

0 commit comments

Comments
 (0)