How can i remove Flutter function to create later swift Framework without import Flutter

i have a question how can i get rid of flutter function (shouldinvokemethod ) because i want to create Framework for our app functionality and reuse it in another app.
the manager.swift (see below)

extension Manager: EventDelegate {
    func backendFileChangedEvent(file: LeFile) {
        Logger.log("backendFileChangedEvent()")
        
        sdkManager.synchronizeWithBackend()
        DispatchQueue.main.async {
            self.delegate?.leManagerShouldInvokeMethod("backendFileChangedEvent", arguments: nil)
        }
    }
    
    func backendRequestAddFileDoneEvent(sdkStatus: LeMobileSdkStatus) {
        Logger.log("backendRequestAddFileDoneEvent")
        
        DispatchQueue.main.async {
            self.delegate?.leManagerShouldInvokeMethod("addFileEvent", arguments: nil)
        }
    }
1 Like
Terms of Service

Privacy Policy

Cookie Policy