Skip to content

Commit

Permalink
fix(ios): getConfigValue is deprecated (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored Oct 4, 2022
1 parent 29ac6cc commit 57ae209
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/tender-bulldogs-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@capacitor-firebase/authentication": patch
"@capacitor-firebase/messaging": patch
---

fix(ios): `getConfigValue` is deprecated
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,8 @@ public class FirebaseAuthenticationPlugin: CAPPlugin {
private func firebaseAuthenticationConfig() -> FirebaseAuthenticationConfig {
var config = FirebaseAuthenticationConfig()

if let skipNativeAuth = getConfigValue("skipNativeAuth") as? Bool {
config.skipNativeAuth = skipNativeAuth
}
if let providers = getConfigValue("providers") as? [String] {
config.skipNativeAuth = getConfig().getBoolean("skipNativeAuth", config.skipNativeAuth)
if let providers = getConfig().getArray("providers") as? [String] {
config.providers = providers
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public class FirebaseMessagingPlugin: CAPPlugin {
private func firebaseMessagingConfig() -> FirebaseMessagingConfig {
var config = FirebaseMessagingConfig()

if let presentationOptions = getConfigValue("presentationOptions") as? [String] {
if let presentationOptions = getConfig().getArray("presentationOptions") as? [String] {
config.presentationOptions = presentationOptions
}

Expand Down

0 comments on commit 57ae209

Please sign in to comment.