Commit f83bd5a4 authored by Lukas Marik's avatar Lukas Marik

ios device info, edit ios client

parent e7420f39
Pipeline #59018 passed with stage
in 44 seconds
......@@ -48,7 +48,7 @@ extension Date {
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, RMBTConnectivityTrackerDelegate, FlutterStreamHandler, UNUserNotificationCenterDelegate, CLLocationManagerDelegate, ConnectivityWorkerDelegate, LoopDelegate {
@objc class AppDelegate: FlutterAppDelegate, RMBTConnectivityTrackerDelegate, FlutterStreamHandler, CLLocationManagerDelegate, ConnectivityWorkerDelegate, LoopDelegate {
func connectivity() -> RMBTConnectivity? {
return lastConnectivity
......@@ -178,7 +178,7 @@ extension Date {
/////////////////////// NETWORK LISTENER
private func initNetworkEventChannel(controller: FlutterViewController){
let networkChannel = FlutterEventChannel.init(name: "nic.cz.netmetrflutter/netStat", binaryMessenger: controller)
let networkChannel = FlutterEventChannel.init(name: "nic.cz.netmetrflutter/netStat", binaryMessenger: controller.binaryMessenger)
networkChannel.setStreamHandler(self)
}
......@@ -319,7 +319,7 @@ extension Date {
private func initServiceChannel(controller: FlutterViewController){
let serviceChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/serviceChannel", binaryMessenger: controller)
let serviceChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/serviceChannel", binaryMessenger: controller.binaryMessenger)
serviceChannel.setMethodCallHandler({(call: FlutterMethodCall, result: FlutterResult) -> Void in
......@@ -365,7 +365,7 @@ extension Date {
/////////////////////// LOOP
private func initLoopChannel(controller: FlutterViewController){
let loopChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/loopChannel", binaryMessenger: controller)
let loopChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/loopChannel", binaryMessenger: controller.binaryMessenger)
loopChannel.setMethodCallHandler({(call: FlutterMethodCall, result: FlutterResult) -> Void in
......@@ -415,7 +415,7 @@ extension Date {
/////////////////////// STAT
private func initStatChannel(controller: FlutterViewController){
let statChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/statChannel", binaryMessenger: controller)
let statChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/statChannel", binaryMessenger: controller.binaryMessenger)
statChannel.setMethodCallHandler({(call: FlutterMethodCall, result: FlutterResult) -> Void in
......@@ -574,7 +574,7 @@ extension Date {
/////////////////////// SETTINGS
private func initSettingsChannel(controller: FlutterViewController){
let settingsChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/settings", binaryMessenger: controller)
let settingsChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/settings", binaryMessenger: controller.binaryMessenger)
settingsChannel.setMethodCallHandler({(call: FlutterMethodCall, result: FlutterResult) -> Void in
if("showSettings" == call.method){
......@@ -593,7 +593,7 @@ extension Date {
private func initConfigChannel(controller: FlutterViewController){
let configChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/config", binaryMessenger: controller)
let configChannel = FlutterMethodChannel.init(name: "nic.cz.netmetrflutter/config", binaryMessenger: controller.binaryMessenger)
configChannel.setMethodCallHandler({(call: FlutterMethodCall, result: FlutterResult) -> Void in
if("getBuildConfig" == call.method){
......
......@@ -104,7 +104,7 @@ class Loop: NSObject, CLLocationManagerDelegate, FlutterStreamHandler, LoopTestD
onlySignal = parametrs.keys.contains("onlySignal") ? parametrs["onlySignal"] as! Bool : false
super.init()
let event = FlutterEventChannel.init(name: LOOP_EVENT_CHANNEL, binaryMessenger: controller)
let event = FlutterEventChannel.init(name: LOOP_EVENT_CHANNEL, binaryMessenger: controller.binaryMessenger)
event.setStreamHandler(self)
self.locationManager.delegate = self
......
......@@ -82,7 +82,7 @@ class RunTest : NSObject, RMBTTestRunnerDelegate, QualityOfServiceTestDelegate,
super.init()
let runEvent = FlutterEventChannel.init(name: loopMode ? RECEIVER_CHANNEL + String(index) : RECEIVER_CHANNEL, binaryMessenger: controller)
let runEvent = FlutterEventChannel.init(name: loopMode ? RECEIVER_CHANNEL + String(index) : RECEIVER_CHANNEL, binaryMessenger: controller.binaryMessenger)
runEvent.setStreamHandler(self)
self.runner = RMBTTestRunner.init(delegate: self, loopMode: self.loopMode, onlySignal: onlySignal, loopWorker: self.loopWorker, index: index)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment