Updating to Capacitor 7.0¶
Capacitor 7.0 is finally here and brings a lot of improvements! Make sure to check out the official announcement post from the Ionic team. In this article, you can find out what breaking changes have been made to the Capawesome plugins.
Plugins¶
The following plugin functionality has been modified or removed. Update your code accordingly.
More information can be found in the respective BREAKING.md
file of each plugin.
App Update¶
- The
country
property has been replaced by theappId
property in theOpenAppStoreOptions
interface.
Cloudinary¶
- On Android, the
cloudinaryAndroidVersion
variable has been updated to3.0.2
.
Firebase Analytics¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseAnalyticsVersion
variable has been updated to22.2.0
.
Firebase App¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseCommonVersion
variable has been updated to21.0.0
.
Firebase App Check¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseAppCheckPlayIntegrityVersion
variable has been updated to18.0.0
. - On Android, the
firebaseAppCheckDebugVersion
variable has been updated to18.0.0
.
Firebase Authentication¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
facebookLoginVersion
variable has been updated to18.0.0
. - On Android, the
firebaseAuthVersion
variable has been updated to23.1.0
. - On Android, the
playServicesAuthVersion
variable has been updated to20.7.0
. - On Android, the
accessToken
andserverAuthCode
are now only requested when thescopes
option is set. - Error codes are now prefixed with
auth/
to be consistent with the Firebase Web SDK.
Firebase Crashlytics¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseCrashlyticsVersion
variable has been updated to19.4.0
.
Firebase Firestore¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseFirestoreVersion
variable has been updated to25.1.1
. - Error codes are now prefixed with
firestore/
to be consistent with the Firebase Web SDK.
Firebase Functions¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseFunctionsVersion
variable has been updated to21.1.0
.
Firebase Messaging¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseMessagingVersion
variable has been updated to24.1.0
.
Firebase Performance¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebasePerfVersion
variable has been updated to21.0.4
. - The web implementation now throws an error when a
trace
is not found for a giventraceName
. This behavior was already in place on iOS and Android in earlier versions.
Firebase Remote Config¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseConfigVersion
variable has been updated to22.1.0
.
Firebase Storage¶
- The Firebase Javascript SDK has been updated to
11.2.0
. - On Android, the
firebaseStorageVersion
variable has been updated to21.0.1
.
Live Update¶
- The
getBundle()
method has been replaced by thegetCurrentBundle()
method. - The
setBundle()
method has been replaced by thesetNextBundle()
method. - The
checksum
property has been removed from theDownloadBundleOptions
interface. The server should now return aX-Checksum
header instead. - The
enabled
configuration option has been removed. The plugin is now always enabled. - The
location
configuration option has been replaced by theserverDomain
configuration option. - The default value of the
readyTimeout
configuration option has been changed from10000
to0
to disable the timeout by default. - The
resetOnUpdate
configuration option has been removed. Capacitor always resets the app to the default bundle during a native update.
ML Kit Barcode Scanning¶
- On Android, the
mlkitBarcodeScanningVersion
variable has been updated to17.3.0
. - on Android, the image resolution used for barcode scanning has been increased to
1280x720
to improve the barcode scanning performance and be consistent with the iOS implementation. Previously, the resolution was640x480
. - On iOS, make sure to set the deployment target in your
ios/App/Podfile
to at least15.5
. - All the methods related to the torch have been moved into a separate Torch plugin. If you want to use the torch, just install the
@capawesome/capacitor-torch
package. - The
barcodeScanned
event has been replaced by thebarcodesScanned
event. The event payload now contains an array ofBarcode
objects instead of a singleBarcode
object since multiple barcodes can be scanned at the same time.
ML Face Detection¶
- On Android, the
mlkitFaceDetectionVersion
variable has been updated to16.1.7
. - On iOS, make sure to set the deployment target in your
ios/App/Podfile
to at least15.5
.
ML Selfie Segmentation¶
- On Android, the
mlkitSelfieSegmentationVersion
variable has been updated to16.0.0-beta6
. - On iOS, make sure to set the deployment target in your
ios/App/Podfile
to at least15.5
.
ML Translation¶
- On Android, the
mlkitTranslateVersion
variable has been updated to17.0.3
. - On iOS, make sure to set the deployment target in your
ios/App/Podfile
to at least15.5
.
NFC¶
- On iOS, the
id
property of theNfcTag
interface was returned reversed for ISO 15693 tags. This issue has been fixed in this version. Theid
property is now returned correctly and behaves the same way as on Android. More information can be found in the discussion #200.
Posthog¶
- On Android, the
posthogVersion
variable has been updated to3.10.0
.