This commit is contained in:
FabianLars
2025-07-23 12:25:45 +02:00
parent 27ddcd0abe
commit a7af1a81b7
38 changed files with 10899 additions and 5 deletions
@@ -0,0 +1,24 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
import SwiftRs
import Tauri
import UIKit
import WebKit
class PingArgs: Decodable {
var value: String?
}
class ExamplePlugin: Plugin {
@objc public func ping(_ invoke: Invoke) throws {
let args = try invoke.parseArgs(PingArgs.self)
invoke.resolve(["value": args.value ?? ""])
}
}
@_cdecl("init_plugin_secure_storage")
func initPlugin() -> Plugin {
return ExamplePlugin()
}