mirror of
https://github.com/EasyTier/EasyTier.git
synced 2024-11-16 19:58:27 +08:00
858ade2eee
1. Add vpnservice tauri plugin for android. 2. add workflow for android. 3. Easytier Core support android, allow set tun fd.
21 lines
387 B
Swift
21 lines
387 B
Swift
import SwiftRs
|
|
import Tauri
|
|
import UIKit
|
|
import WebKit
|
|
|
|
class PingArgs: Decodable {
|
|
let 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_vpnservice")
|
|
func initPlugin() -> Plugin {
|
|
return ExamplePlugin()
|
|
}
|