Refactor BLE plugin structure and rename to 'ble' for consistency across platforms
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
/// macOS stub — BLE peripheral mode not yet implemented.
|
||||
public class BleRelayHostPlugin: NSObject, FlutterPlugin {
|
||||
/// macOS stub - BLE peripheral mode not yet implemented.
|
||||
public class BlePlugin: NSObject, FlutterPlugin {
|
||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let channel = FlutterMethodChannel(
|
||||
name: "com.dalimaster.ble_relay_host",
|
||||
name: "com.dalimaster.ble",
|
||||
binaryMessenger: registrar.messenger)
|
||||
let instance = BleRelayHostPlugin()
|
||||
let instance = BlePlugin()
|
||||
registrar.addMethodCallDelegate(instance, channel: channel)
|
||||
}
|
||||
|
||||
@@ -19,4 +19,4 @@ public class BleRelayHostPlugin: NSObject, FlutterPlugin {
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'ble_relay_host'
|
||||
s.name = 'ble'
|
||||
s.version = '0.1.0'
|
||||
s.summary = 'BLE GATT-server peripheral host for the DALI relay feature.'
|
||||
s.description = <<-DESC
|
||||
Reference in New Issue
Block a user