Skip to content

Commit 83a2061

Browse files
[firebase_ml_vision] Update firebase_ml_vision example app deployment target to 9.0 (#165)
1 parent 5c33e5a commit 83a2061

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

packages/firebase_ml_vision/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.2+2
2+
3+
* Update deployment target of iOS example app to 9.0.
4+
15
## 0.9.2+1
26

37
* Update documentation to reflect new repository location.

packages/firebase_ml_vision/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ Optional but recommended: If you use the on-device API, configure your app to au
5555
Versions `0.7.0+` use the latest ML Kit for Firebase version which requires a minimum deployment
5656
target of 9.0. You can add the line `platform :ios, '9.0'` in your iOS project `Podfile`.
5757

58+
You may also need to update your app's deployment target to 9.0 using Xcode. Otherwise, you may see
59+
compilation errors.
60+
5861
If you're using one of the on-device APIs, include the corresponding ML Kit library model in your
5962
`Podfile`. Then run `pod update` in a terminal within the same directory as your `Podfile`.
6063

@@ -78,8 +81,6 @@ final FirebaseVisionImage visionImage = FirebaseVisionImage.fromFile(imageFile);
7881

7982
### 2. Create an instance of a detector.
8083

81-
Get an instance of a `FirebaseVisionDetector`.
82-
8384
```dart
8485
final BarcodeDetector barcodeDetector = FirebaseVision.instance.barcodeDetector();
8586
final ImageLabeler cloudLabeler = FirebaseVision.instance.cloudImageLabeler();

packages/firebase_ml_vision/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@
4040
/* Begin PBXFileReference section */
4141
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
4242
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
43+
19E9A67D1290A40616BA613B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
4344
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4445
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
4546
47511359F254D1FA05DF3B06 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
47+
6B3934088A7364B25DFA6B41 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
4648
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
4749
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
4850
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -140,6 +142,8 @@
140142
FC90A70078657ED2825B5943 /* Pods */ = {
141143
isa = PBXGroup;
142144
children = (
145+
6B3934088A7364B25DFA6B41 /* Pods-Runner.debug.xcconfig */,
146+
19E9A67D1290A40616BA613B /* Pods-Runner.release.xcconfig */,
143147
);
144148
name = Pods;
145149
sourceTree = "<group>";
@@ -189,6 +193,7 @@
189193
developmentRegion = English;
190194
hasScannedForEncodings = 0;
191195
knownRegions = (
196+
English,
192197
en,
193198
Base,
194199
);
@@ -238,16 +243,13 @@
238243
files = (
239244
);
240245
inputPaths = (
241-
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
242-
"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
243246
);
244247
name = "[CP] Embed Pods Frameworks";
245248
outputPaths = (
246-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
247249
);
248250
runOnlyForDeploymentPostprocessing = 0;
249251
shellPath = /bin/sh;
250-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
252+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
251253
showEnvVarsInLog = 0;
252254
};
253255
96E46CF45834A6C37B9BB190 /* [CP] Check Pods Manifest.lock */ = {
@@ -288,18 +290,13 @@
288290
files = (
289291
);
290292
inputPaths = (
291-
"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
292-
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleMobileVision/GoogleMVFaceDetectorResources.bundle",
293-
"${PODS_CONFIGURATION_BUILD_DIR}/GoogleMobileVision/GoogleMVTextDetectorResources.bundle",
294293
);
295294
name = "[CP] Copy Pods Resources";
296295
outputPaths = (
297-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMVFaceDetectorResources.bundle",
298-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleMVTextDetectorResources.bundle",
299296
);
300297
runOnlyForDeploymentPostprocessing = 0;
301298
shellPath = /bin/sh;
302-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
299+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
303300
showEnvVarsInLog = 0;
304301
};
305302
/* End PBXShellScriptBuildPhase section */
@@ -455,7 +452,7 @@
455452
"$(PROJECT_DIR)/Flutter",
456453
);
457454
INFOPLIST_FILE = Runner/Info.plist;
458-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
455+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
459456
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
460457
LIBRARY_SEARCH_PATHS = (
461458
"$(inherited)",
@@ -479,7 +476,7 @@
479476
"$(PROJECT_DIR)/Flutter",
480477
);
481478
INFOPLIST_FILE = Runner/Info.plist;
482-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
479+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
483480
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
484481
LIBRARY_SEARCH_PATHS = (
485482
"$(inherited)",

packages/firebase_ml_vision/example/lib/material_barcode_scanner.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ class _MaterialBarcodeScannerState extends State<MaterialBarcodeScanner>
341341
Container(
342342
height: 56,
343343
alignment: Alignment.centerLeft,
344-
decoration: BoxDecoration(
345-
border: Border(bottom: const BorderSide(color: Colors.grey)),
344+
decoration: const BoxDecoration(
345+
border: Border(bottom: BorderSide(color: Colors.grey)),
346346
),
347347
child: Padding(
348348
padding: const EdgeInsets.all(16),

packages/firebase_ml_vision/example/test_driver/face_detector.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ part of 'firebase_ml_vision.dart';
77
void faceDetectorTests() {
88
group('$FaceDetector', () {
99
final FaceDetector detector = FirebaseVision.instance.faceDetector(
10-
FaceDetectorOptions(
10+
const FaceDetectorOptions(
1111
enableContours: true, mode: FaceDetectorMode.accurate),
1212
);
1313

packages/firebase_ml_vision/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: firebase_ml_vision
22
description: Flutter plugin for Firebase machine learning vision services.
33
author: Flutter Team <[email protected]>
44
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_ml_vision
5-
version: 0.9.2+1
5+
version: 0.9.2+2
66

77
dependencies:
88
flutter:

0 commit comments

Comments
 (0)