From e0e19141cf6940192c1cd7dd655d932871382644 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sun, 27 Oct 2024 09:02:15 +0100 Subject: [PATCH 1/4] fix: increase deployment target to `15.5` --- .changeset/little-brooms-explode.md | 9 +++++++++ packages/barcode-scanning/README.md | 14 +++++++++++++- .../ios/Plugin.xcodeproj/project.pbxproj | 8 ++++---- packages/barcode-scanning/ios/Podfile | 2 +- packages/face-detection/README.md | 12 ++++++++++++ .../ios/Plugin.xcodeproj/project.pbxproj | 8 ++++---- packages/face-detection/ios/Podfile | 2 +- packages/face-mesh-detection/README.md | 10 ++++++++++ .../ios/Plugin.xcodeproj/project.pbxproj | 8 ++++---- packages/face-mesh-detection/ios/Podfile | 2 +- packages/selfie-segmentation/README.md | 12 ++++++++++++ .../ios/Plugin.xcodeproj/project.pbxproj | 8 ++++---- packages/selfie-segmentation/ios/Podfile | 2 +- .../ios/Plugin.xcodeproj/project.pbxproj | 4 ++-- 14 files changed, 78 insertions(+), 23 deletions(-) create mode 100644 .changeset/little-brooms-explode.md diff --git a/.changeset/little-brooms-explode.md b/.changeset/little-brooms-explode.md new file mode 100644 index 0000000..193800d --- /dev/null +++ b/.changeset/little-brooms-explode.md @@ -0,0 +1,9 @@ +--- +'@capacitor-mlkit/barcode-scanning': major +'@capacitor-mlkit/face-detection': major +'@capacitor-mlkit/face-mesh-detection': major +'@capacitor-mlkit/selfie-segmentation': major +'@capacitor-mlkit/translation': major +--- + +fix(ios): increase deployment target to `15.5` diff --git a/packages/barcode-scanning/README.md b/packages/barcode-scanning/README.md index 665e450..53a54f2 100644 --- a/packages/barcode-scanning/README.md +++ b/packages/barcode-scanning/README.md @@ -71,6 +71,16 @@ android { } ``` +### iOS + +#### Minimum Deployment Target + +Make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + #### Variables This plugin will use the following project variables (defined in your app’s `variables.gradle` file): @@ -287,8 +297,10 @@ If you can't see the camera view, make sure all elements in the DOM are not visi - [Android](#android) - [Permissions](#permissions) - [Data Binding](#data-binding) - - [Variables](#variables) - [iOS](#ios) + - [Minimum Deployment Target](#minimum-deployment-target) + - [Variables](#variables) + - [iOS](#ios-1) - [Configuration](#configuration) - [Demo](#demo-1) - [Usage](#usage) diff --git a/packages/barcode-scanning/ios/Plugin.xcodeproj/project.pbxproj b/packages/barcode-scanning/ios/Plugin.xcodeproj/project.pbxproj index cbdd2a7..ad0abb0 100644 --- a/packages/barcode-scanning/ios/Plugin.xcodeproj/project.pbxproj +++ b/packages/barcode-scanning/ios/Plugin.xcodeproj/project.pbxproj @@ -462,7 +462,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -522,7 +522,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; @@ -545,7 +545,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; @@ -571,7 +571,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = NO; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; diff --git a/packages/barcode-scanning/ios/Podfile b/packages/barcode-scanning/ios/Podfile index 56afe90..36690b6 100644 --- a/packages/barcode-scanning/ios/Podfile +++ b/packages/barcode-scanning/ios/Podfile @@ -1,4 +1,4 @@ -platform :ios, '13.0' +platform :ios, '15.5' def capacitor_pods # Comment the next line if you're not using Swift and don't want to use dynamic frameworks diff --git a/packages/face-detection/README.md b/packages/face-detection/README.md index d74af38..9156756 100644 --- a/packages/face-detection/README.md +++ b/packages/face-detection/README.md @@ -13,6 +13,8 @@ npx cap sync ### Android +#### Dependencies + You need to add the following meta data **in** the `application` tag in your `AndroidManifest.xml`: ```xml @@ -27,6 +29,16 @@ This plugin will use the following project variables (defined in your app’s `v - `$mlkitFaceDetectionVersion` version of `com.google.mlkit:face-detection` (default: `16.1.5`) - `$playServicesMlkitFaceDetectionVersion` version of `com.google.android.gms:play-services-mlkit-face-detection` (default: `17.1.0`) +### iOS + +#### Minimum Deployment Target + +Make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Configuration No configuration required for this plugin. diff --git a/packages/face-detection/ios/Plugin.xcodeproj/project.pbxproj b/packages/face-detection/ios/Plugin.xcodeproj/project.pbxproj index 2ace11c..b0a4a12 100644 --- a/packages/face-detection/ios/Plugin.xcodeproj/project.pbxproj +++ b/packages/face-detection/ios/Plugin.xcodeproj/project.pbxproj @@ -452,7 +452,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -512,7 +512,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; @@ -535,7 +535,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; @@ -561,7 +561,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = NO; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; diff --git a/packages/face-detection/ios/Podfile b/packages/face-detection/ios/Podfile index 6f39a7e..9135e9d 100644 --- a/packages/face-detection/ios/Podfile +++ b/packages/face-detection/ios/Podfile @@ -1,4 +1,4 @@ -platform :ios, '13.0' +platform :ios, '15.5' def capacitor_pods # Comment the next line if you're not using Swift and don't want to use dynamic frameworks diff --git a/packages/face-mesh-detection/README.md b/packages/face-mesh-detection/README.md index a056259..3b7c4d7 100644 --- a/packages/face-mesh-detection/README.md +++ b/packages/face-mesh-detection/README.md @@ -19,6 +19,16 @@ This plugin will use the following project variables (defined in your app’s `v - `$mlkitFaceMeshDetectionVersion` version of `com.google.mlkit:face-mesh-detection` (default: `16.0.0-beta1`) +### iOS + +#### Minimum Deployment Target + +Make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Configuration No configuration required for this plugin. diff --git a/packages/face-mesh-detection/ios/Plugin.xcodeproj/project.pbxproj b/packages/face-mesh-detection/ios/Plugin.xcodeproj/project.pbxproj index 8ca3c5c..bc6e65f 100644 --- a/packages/face-mesh-detection/ios/Plugin.xcodeproj/project.pbxproj +++ b/packages/face-mesh-detection/ios/Plugin.xcodeproj/project.pbxproj @@ -386,7 +386,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -446,7 +446,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; @@ -469,7 +469,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; @@ -495,7 +495,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = NO; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; diff --git a/packages/face-mesh-detection/ios/Podfile b/packages/face-mesh-detection/ios/Podfile index 0298c0f..51829e3 100644 --- a/packages/face-mesh-detection/ios/Podfile +++ b/packages/face-mesh-detection/ios/Podfile @@ -1,4 +1,4 @@ -platform :ios, '13.0' +platform :ios, '15.5' def capacitor_pods # Comment the next line if you're not using Swift and don't want to use dynamic frameworks diff --git a/packages/selfie-segmentation/README.md b/packages/selfie-segmentation/README.md index 763fe84..6bdde4d 100644 --- a/packages/selfie-segmentation/README.md +++ b/packages/selfie-segmentation/README.md @@ -11,12 +11,24 @@ npx cap sync **Attention**: Please use the `next` tag to install the latest version of the plugin due to issue [#179](https://github.com/capawesome-team/capacitor-mlkit/pull/179). +### Android + #### Variables This plugin will use the following project variables (defined in your app’s `variables.gradle` file): - `$mlkitSelfieSegmentationVersion` version of `com.google.mlkit:segmentation-selfie` (default: `16.0.0-beta4`) +### iOS + +#### Minimum Deployment Target + +Make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Configuration No configuration required for this plugin. diff --git a/packages/selfie-segmentation/ios/Plugin.xcodeproj/project.pbxproj b/packages/selfie-segmentation/ios/Plugin.xcodeproj/project.pbxproj index 865a496..c853230 100644 --- a/packages/selfie-segmentation/ios/Plugin.xcodeproj/project.pbxproj +++ b/packages/selfie-segmentation/ios/Plugin.xcodeproj/project.pbxproj @@ -460,7 +460,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -520,7 +520,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; @@ -543,7 +543,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; @@ -569,7 +569,7 @@ DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = Plugin/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; ONLY_ACTIVE_ARCH = NO; PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; diff --git a/packages/selfie-segmentation/ios/Podfile b/packages/selfie-segmentation/ios/Podfile index 72e8578..026d6c7 100644 --- a/packages/selfie-segmentation/ios/Podfile +++ b/packages/selfie-segmentation/ios/Podfile @@ -1,4 +1,4 @@ -platform :ios, '13.0' +platform :ios, '15.5' def capacitor_pods # Comment the next line if you're not using Swift and don't want to use dynamic frameworks diff --git a/packages/translation/ios/Plugin.xcodeproj/project.pbxproj b/packages/translation/ios/Plugin.xcodeproj/project.pbxproj index 22f0dc7..36f6e67 100644 --- a/packages/translation/ios/Plugin.xcodeproj/project.pbxproj +++ b/packages/translation/ios/Plugin.xcodeproj/project.pbxproj @@ -438,7 +438,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -498,7 +498,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.5; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; From 7e925546ca307f8785cd8147bed3c221fe651cd9 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sun, 27 Oct 2024 10:25:12 +0100 Subject: [PATCH 2/4] docs --- packages/barcode-scanning/README.md | 101 ++++++++-------------------- 1 file changed, 27 insertions(+), 74 deletions(-) diff --git a/packages/barcode-scanning/README.md b/packages/barcode-scanning/README.md index 53a54f2..0ce0531 100644 --- a/packages/barcode-scanning/README.md +++ b/packages/barcode-scanning/README.md @@ -289,80 +289,33 @@ If you can't see the camera view, make sure all elements in the DOM are not visi -- [@capacitor-mlkit/barcode-scanning](#capacitor-mlkitbarcode-scanning) - - [Features](#features) - - [Demo](#demo) - - [Guides](#guides) - - [Installation](#installation) - - [Android](#android) - - [Permissions](#permissions) - - [Data Binding](#data-binding) - - [iOS](#ios) - - [Minimum Deployment Target](#minimum-deployment-target) - - [Variables](#variables) - - [iOS](#ios-1) - - [Configuration](#configuration) - - [Demo](#demo-1) - - [Usage](#usage) - - [API](#api) - - [startScan(...)](#startscan) - - [stopScan()](#stopscan) - - [readBarcodesFromImage(...)](#readbarcodesfromimage) - - [scan(...)](#scan) - - [isSupported()](#issupported) - - [enableTorch()](#enabletorch) - - [disableTorch()](#disabletorch) - - [toggleTorch()](#toggletorch) - - [isTorchEnabled()](#istorchenabled) - - [isTorchAvailable()](#istorchavailable) - - [setZoomRatio(...)](#setzoomratio) - - [getZoomRatio()](#getzoomratio) - - [getMinZoomRatio()](#getminzoomratio) - - [getMaxZoomRatio()](#getmaxzoomratio) - - [openSettings()](#opensettings) - - [isGoogleBarcodeScannerModuleAvailable()](#isgooglebarcodescannermoduleavailable) - - [installGoogleBarcodeScannerModule()](#installgooglebarcodescannermodule) - - [checkPermissions()](#checkpermissions) - - [requestPermissions()](#requestpermissions) - - [addListener('barcodeScanned', ...)](#addlistenerbarcodescanned-) - - [addListener('barcodesScanned', ...)](#addlistenerbarcodesscanned-) - - [addListener('scanError', ...)](#addlistenerscanerror-) - - [addListener('googleBarcodeScannerModuleInstallProgress', ...)](#addlistenergooglebarcodescannermoduleinstallprogress-) - - [removeAllListeners()](#removealllisteners) - - [Interfaces](#interfaces) - - [StartScanOptions](#startscanoptions) - - [ReadBarcodesFromImageResult](#readbarcodesfromimageresult) - - [Barcode](#barcode) - - [ReadBarcodesFromImageOptions](#readbarcodesfromimageoptions) - - [ScanResult](#scanresult) - - [ScanOptions](#scanoptions) - - [IsSupportedResult](#issupportedresult) - - [IsTorchEnabledResult](#istorchenabledresult) - - [IsTorchAvailableResult](#istorchavailableresult) - - [SetZoomRatioOptions](#setzoomratiooptions) - - [GetZoomRatioResult](#getzoomratioresult) - - [GetMinZoomRatioResult](#getminzoomratioresult) - - [GetMaxZoomRatioResult](#getmaxzoomratioresult) - - [IsGoogleBarcodeScannerModuleAvailableResult](#isgooglebarcodescannermoduleavailableresult) - - [PermissionStatus](#permissionstatus) - - [PluginListenerHandle](#pluginlistenerhandle) - - [BarcodeScannedEvent](#barcodescannedevent) - - [BarcodesScannedEvent](#barcodesscannedevent) - - [ScanErrorEvent](#scanerrorevent) - - [GoogleBarcodeScannerModuleInstallProgressEvent](#googlebarcodescannermoduleinstallprogressevent) - - [Type Aliases](#type-aliases) - - [CameraPermissionState](#camerapermissionstate) - - [PermissionState](#permissionstate) - - [Enums](#enums) - - [BarcodeFormat](#barcodeformat) - - [LensFacing](#lensfacing) - - [BarcodeValueType](#barcodevaluetype) - - [GoogleBarcodeScannerModuleInstallState](#googlebarcodescannermoduleinstallstate) - - [Common Issues](#common-issues) - - [`NullPointerException` during `startScan(...)`](#nullpointerexception-during-startscan) - - [Terms \& Privacy](#terms--privacy) - - [Changelog](#changelog) - - [License](#license) +* [`startScan(...)`](#startscan) +* [`stopScan()`](#stopscan) +* [`readBarcodesFromImage(...)`](#readbarcodesfromimage) +* [`scan(...)`](#scan) +* [`isSupported()`](#issupported) +* [`enableTorch()`](#enabletorch) +* [`disableTorch()`](#disabletorch) +* [`toggleTorch()`](#toggletorch) +* [`isTorchEnabled()`](#istorchenabled) +* [`isTorchAvailable()`](#istorchavailable) +* [`setZoomRatio(...)`](#setzoomratio) +* [`getZoomRatio()`](#getzoomratio) +* [`getMinZoomRatio()`](#getminzoomratio) +* [`getMaxZoomRatio()`](#getmaxzoomratio) +* [`openSettings()`](#opensettings) +* [`isGoogleBarcodeScannerModuleAvailable()`](#isgooglebarcodescannermoduleavailable) +* [`installGoogleBarcodeScannerModule()`](#installgooglebarcodescannermodule) +* [`checkPermissions()`](#checkpermissions) +* [`requestPermissions()`](#requestpermissions) +* [`addListener('barcodeScanned', ...)`](#addlistenerbarcodescanned) +* [`addListener('barcodesScanned', ...)`](#addlistenerbarcodesscanned) +* [`addListener('scanError', ...)`](#addlistenerscanerror) +* [`addListener('googleBarcodeScannerModuleInstallProgress', ...)`](#addlistenergooglebarcodescannermoduleinstallprogress) +* [`removeAllListeners()`](#removealllisteners) +* [Interfaces](#interfaces) +* [Type Aliases](#type-aliases) +* [Enums](#enums) From 301b39a6db3fd9c1ced9d1b1882b10332b601e22 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sun, 27 Oct 2024 10:35:00 +0100 Subject: [PATCH 3/4] fix(ios): update `GoogleMLKit` pods to version `7.0.0` --- .changeset/little-brooms-explode.md | 3 +-- packages/barcode-scanning/BREAKING.md | 11 +++++++++++ .../CapacitorMlkitBarcodeScanning.podspec | 2 +- packages/barcode-scanning/ios/Podfile | 2 +- packages/face-detection/BREAKING.md | 11 +++++++++++ .../CapacitorMlkitFaceDetection.podspec | 2 +- packages/face-detection/ios/Podfile | 2 +- packages/face-mesh-detection/README.md | 10 ---------- packages/selfie-segmentation/BREAKING.md | 11 +++++++++++ .../CapacitorMlkitSelfieSegmentation.podspec | 2 +- packages/selfie-segmentation/ios/Podfile | 2 +- packages/translation/BREAKING.md | 11 +++++++++++ .../translation/CapacitorMlkitTranslation.podspec | 2 +- packages/translation/ios/Podfile | 2 +- 14 files changed, 53 insertions(+), 20 deletions(-) diff --git a/.changeset/little-brooms-explode.md b/.changeset/little-brooms-explode.md index 193800d..c3dd7a5 100644 --- a/.changeset/little-brooms-explode.md +++ b/.changeset/little-brooms-explode.md @@ -1,9 +1,8 @@ --- '@capacitor-mlkit/barcode-scanning': major '@capacitor-mlkit/face-detection': major -'@capacitor-mlkit/face-mesh-detection': major '@capacitor-mlkit/selfie-segmentation': major '@capacitor-mlkit/translation': major --- -fix(ios): increase deployment target to `15.5` +fix(ios): update `GoogleMLKit` pods to version `7.0.0` diff --git a/packages/barcode-scanning/BREAKING.md b/packages/barcode-scanning/BREAKING.md index 4257ba7..1e67651 100644 --- a/packages/barcode-scanning/BREAKING.md +++ b/packages/barcode-scanning/BREAKING.md @@ -4,9 +4,20 @@ This is a comprehensive list of the breaking changes introduced in the major ver ## Versions +- [Version 7.x.x](#version-7xx) - [Version 6.x.x](#version-6xx) - [Version 5.x.x](#version-5xx) +## Version 7.x.x + +### Minimum Deployment Target + +On **iOS**, make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Version 6.x.x ### Variables diff --git a/packages/barcode-scanning/CapacitorMlkitBarcodeScanning.podspec b/packages/barcode-scanning/CapacitorMlkitBarcodeScanning.podspec index 32224f3..e89b4ba 100644 --- a/packages/barcode-scanning/CapacitorMlkitBarcodeScanning.podspec +++ b/packages/barcode-scanning/CapacitorMlkitBarcodeScanning.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '13.0' s.dependency 'Capacitor' - s.dependency 'GoogleMLKit/BarcodeScanning', '6.0.0' + s.dependency 'GoogleMLKit/BarcodeScanning', '7.0.0' s.swift_version = '5.1' s.static_framework = true end diff --git a/packages/barcode-scanning/ios/Podfile b/packages/barcode-scanning/ios/Podfile index 36690b6..361260b 100644 --- a/packages/barcode-scanning/ios/Podfile +++ b/packages/barcode-scanning/ios/Podfile @@ -9,7 +9,7 @@ end target 'Plugin' do capacitor_pods - pod 'GoogleMLKit/BarcodeScanning', '6.0.0' + pod 'GoogleMLKit/BarcodeScanning', '7.0.0' end target 'PluginTests' do diff --git a/packages/face-detection/BREAKING.md b/packages/face-detection/BREAKING.md index 513e75e..160cdd4 100644 --- a/packages/face-detection/BREAKING.md +++ b/packages/face-detection/BREAKING.md @@ -4,8 +4,19 @@ This is a comprehensive list of the breaking changes introduced in the major ver ## Versions +- [Version 7.x.x](#version-7xx) - [Version 6.x.x](#version-6xx) +## Version 7.x.x + +### Minimum Deployment Target + +On **iOS**, make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Version 6.x.x ### Variables diff --git a/packages/face-detection/CapacitorMlkitFaceDetection.podspec b/packages/face-detection/CapacitorMlkitFaceDetection.podspec index 342473f..ba44d0c 100644 --- a/packages/face-detection/CapacitorMlkitFaceDetection.podspec +++ b/packages/face-detection/CapacitorMlkitFaceDetection.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '13.0' s.dependency 'Capacitor' - s.dependency 'GoogleMLKit/FaceDetection', '6.0.0' + s.dependency 'GoogleMLKit/FaceDetection', '7.0.0' s.swift_version = '5.1' s.static_framework = true end diff --git a/packages/face-detection/ios/Podfile b/packages/face-detection/ios/Podfile index 9135e9d..1c7e786 100644 --- a/packages/face-detection/ios/Podfile +++ b/packages/face-detection/ios/Podfile @@ -9,7 +9,7 @@ end target 'Plugin' do capacitor_pods - pod 'GoogleMLKit/FaceDetection', '6.0.0' + pod 'GoogleMLKit/FaceDetection', '7.0.0' end target 'PluginTests' do diff --git a/packages/face-mesh-detection/README.md b/packages/face-mesh-detection/README.md index 3b7c4d7..a056259 100644 --- a/packages/face-mesh-detection/README.md +++ b/packages/face-mesh-detection/README.md @@ -19,16 +19,6 @@ This plugin will use the following project variables (defined in your app’s `v - `$mlkitFaceMeshDetectionVersion` version of `com.google.mlkit:face-mesh-detection` (default: `16.0.0-beta1`) -### iOS - -#### Minimum Deployment Target - -Make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: - -```ruby -platform :ios, '15.5' -``` - ## Configuration No configuration required for this plugin. diff --git a/packages/selfie-segmentation/BREAKING.md b/packages/selfie-segmentation/BREAKING.md index b8f9f6e..ff6d72b 100644 --- a/packages/selfie-segmentation/BREAKING.md +++ b/packages/selfie-segmentation/BREAKING.md @@ -4,8 +4,19 @@ This is a comprehensive list of the breaking changes introduced in the major ver ## Versions +- [Version 7.x.x](#version-7xx) - [Version 6.x.x](#version-6xx) +## Version 7.x.x + +### Minimum Deployment Target + +On **iOS**, make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Version 6.x.x ### Variables diff --git a/packages/selfie-segmentation/CapacitorMlkitSelfieSegmentation.podspec b/packages/selfie-segmentation/CapacitorMlkitSelfieSegmentation.podspec index 250b712..72a006e 100644 --- a/packages/selfie-segmentation/CapacitorMlkitSelfieSegmentation.podspec +++ b/packages/selfie-segmentation/CapacitorMlkitSelfieSegmentation.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '13.0' s.dependency 'Capacitor' - s.dependency 'GoogleMLKit/SegmentationSelfie', '6.0.0' + s.dependency 'GoogleMLKit/SegmentationSelfie', '7.0.0' s.swift_version = '5.1' s.static_framework = true end diff --git a/packages/selfie-segmentation/ios/Podfile b/packages/selfie-segmentation/ios/Podfile index 026d6c7..703c043 100644 --- a/packages/selfie-segmentation/ios/Podfile +++ b/packages/selfie-segmentation/ios/Podfile @@ -9,7 +9,7 @@ end target 'Plugin' do capacitor_pods - pod 'GoogleMLKit/SegmentationSelfie', '6.0.0' + pod 'GoogleMLKit/SegmentationSelfie', '7.0.0' end target 'PluginTests' do diff --git a/packages/translation/BREAKING.md b/packages/translation/BREAKING.md index 2e52061..d036f23 100644 --- a/packages/translation/BREAKING.md +++ b/packages/translation/BREAKING.md @@ -2,9 +2,20 @@ This is a comprehensive list of the breaking changes introduced in the major version releases of Capacitor ML Kit Translation plugin. +- [Version 7.x.x](#version-7xx) - [Version 6.x.x](#version-6xx) - [Version 5.x.x](#version-5xx) +## Version 7.x.x + +### Minimum Deployment Target + +On **iOS**, make sure to set the deployment target in your `ios/App/Podfile` to at least `15.5`: + +```ruby +platform :ios, '15.5' +``` + ## Version 6.x.x ### Variables diff --git a/packages/translation/CapacitorMlkitTranslation.podspec b/packages/translation/CapacitorMlkitTranslation.podspec index dfbf36e..5bbf018 100644 --- a/packages/translation/CapacitorMlkitTranslation.podspec +++ b/packages/translation/CapacitorMlkitTranslation.podspec @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' s.ios.deployment_target = '13.0' s.dependency 'Capacitor' - s.dependency 'GoogleMLKit/Translate', '6.0.0' + s.dependency 'GoogleMLKit/Translate', '7.0.0' s.swift_version = '5.1' s.static_framework = true end diff --git a/packages/translation/ios/Podfile b/packages/translation/ios/Podfile index ea0c8f0..dedeebd 100644 --- a/packages/translation/ios/Podfile +++ b/packages/translation/ios/Podfile @@ -9,7 +9,7 @@ end target 'Plugin' do capacitor_pods - pod 'GoogleMLKit/Translate', '6.0.0' + pod 'GoogleMLKit/Translate', '7.0.0' end target 'PluginTests' do From 2fe02b67eebc38a662b9c17ecf0f383c5c9b2c06 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sun, 27 Oct 2024 11:00:48 +0100 Subject: [PATCH 4/4] chore: update `package-lock.json` --- package-lock.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index adf2207..7583c3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7049,7 +7049,7 @@ }, "packages/barcode-scanning": { "name": "@capacitor-mlkit/barcode-scanning", - "version": "6.1.0", + "version": "7.0.0-next.0", "funding": [ { "type": "github", @@ -7095,7 +7095,7 @@ }, "packages/face-detection": { "name": "@capacitor-mlkit/face-detection", - "version": "6.1.0", + "version": "7.0.0-next.0", "funding": [ { "type": "github", @@ -7141,7 +7141,7 @@ }, "packages/face-mesh-detection": { "name": "@capacitor-mlkit/face-mesh-detection", - "version": "6.1.0", + "version": "7.0.0-next.0", "funding": [ { "type": "github", @@ -7187,7 +7187,7 @@ }, "packages/selfie-segmentation": { "name": "@capacitor-mlkit/selfie-segmentation", - "version": "6.1.0", + "version": "7.0.0-next.0", "funding": [ { "type": "github", @@ -7233,7 +7233,7 @@ }, "packages/translation": { "name": "@capacitor-mlkit/translation", - "version": "6.1.0", + "version": "7.0.0-next.0", "funding": [ { "type": "github",