fix(core): Swift warning for null invoke.resolve() iOS plugin values (#10842)

`Any` does allow `nil`,  but must be explicitly set to avoid the Swift warning
This commit is contained in:
Lucas Fernandes Nogueira 2024-09-02 10:51:30 -03:00 committed by GitHub
parent c55474f21d
commit 6696e48800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch:bug
---
Fixes a warning when using a null value on the `invoke.resolve()` iOS plugin API.

View File

@ -4,7 +4,7 @@
import Foundation
public typealias JsonObject = [String: Any]
public typealias JsonObject = [String: Any?]
public enum JsonValue {
case dictionary(JsonObject)