log handler base functionality
+ fix makefile ios-temp-prepare upgrading pub + remove tvOS from libcore local spm +
This commit is contained in:
@@ -19,6 +19,9 @@ public class LogsEventHandler: NSObject, FlutterPlugin, FlutterStreamHandler {
|
||||
}
|
||||
|
||||
public func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink) -> FlutterError? {
|
||||
if VPNManager.shared.logCallback {
|
||||
events(VPNManager.shared.logList)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user