1.21.0 -> 1.22.0

Breaking changes

  • BluetoothDeviceProvider class has one new parameter for TDWP feature (can be nil) and a modified parameter with wedgeRegex

Concrete Example

Required Parameter:

  • wedgeRegex: Regex object required with supported devices

Optional Parameter:

  • tdwdServerEnv: Server environment to choose from dev, uat and prod

// Initialize BluetoothDeviceProvider and configuration
let supportedDevicesPrefixes = [
    "IMS-"
]

let pattern = "^(" + supportedDevicesPrefixes.joined(separator: "|") + ")"
do {
    // Create a regex object
    bluetoothDeviceProvider = BluetoothDeviceProvider(wedgeRegex: try NSRegularExpression(pattern: pattern, options: []),
                                                      tdwdServerEnv: .dev)
} catch {
    fatalError("Failed to create regex: \(error)")
}

IMSDeviceManager.configure(providers: [bluetoothDeviceProvider])

Last updated