From 4a7a7a940693707dc13960891a1ca4ed9be5abdc Mon Sep 17 00:00:00 2001 From: Max Filsinger Date: Fri, 18 Sep 2026 13:24:51 +0200 Subject: [PATCH] fix(app): silence the String?-to-Any coercion warning in getAppLanguage on iOS Xcode 27 (Swift 6.3) warns "expression implicitly coerced from 'String?' to 'Any'" for the value handed to call.resolve. Making the coercion explicit with `as Any` keeps the exact same behaviour (a missing localization still resolves as null) and clears the warning. --- app/ios/Sources/AppPlugin/AppPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ios/Sources/AppPlugin/AppPlugin.swift b/app/ios/Sources/AppPlugin/AppPlugin.swift index c93b84a6d..5080d60dc 100644 --- a/app/ios/Sources/AppPlugin/AppPlugin.swift +++ b/app/ios/Sources/AppPlugin/AppPlugin.swift @@ -118,7 +118,7 @@ public class AppPlugin: CAPPlugin, CAPBridgedPlugin { @objc func getAppLanguage(_ call: CAPPluginCall) { call.resolve([ - "value": Bundle.main.preferredLocalizations.first + "value": Bundle.main.preferredLocalizations.first as Any ]) }