AppDelegate has been migrated to .swift which means the README has to be updated:
Import has to be placed in project-Bridging-Header.h
Then in AppDelegate.swift we don't need to import RNNordicDfu and can just:
import CoreBluetooth
...
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
...
...
RNNordicDfu.setCentralManagerGetter {
return CBCentralManager(delegate: nil, queue: DispatchQueue.global(qos: .background))
}
// Reset manager delegate since the Nordic DFU lib "steals" control over it
RNNordicDfu.setOnDFUComplete {
NSLog("onDFUComplete")
}
RNNordicDfu.setOnDFUError {
NSLog("onDFUError")
}
AppDelegate has been migrated to .swift which means the README has to be updated:
Import has to be placed in
project-Bridging-Header.h#import "RNNordicDfu.h"Then in
AppDelegate.swiftwe don't need to import RNNordicDfu and can just: