local sync poc

This commit is contained in:
mertalev
2025-11-21 00:50:24 -05:00
parent c70146c4a8
commit 8fe932d891
7 changed files with 626 additions and 898 deletions
-5
View File
@@ -54,7 +54,6 @@ import shared_preferences_foundation
}
public static func registerPlugins(with engine: FlutterEngine) {
NativeSyncApiImpl.register(with: engine.registrar(forPlugin: NativeSyncApiImpl.name)!)
ThumbnailApiSetup.setUp(binaryMessenger: engine.binaryMessenger, api: ThumbnailApiImpl())
BackgroundWorkerFgHostApiSetup.setUp(binaryMessenger: engine.binaryMessenger, api: BackgroundWorkerApiImpl())
@@ -67,8 +66,4 @@ import shared_preferences_foundation
api: UploadApiImpl(statusListener: statusListener, progressListener: progressListener)
)
}
public static func cancelPlugins(with engine: FlutterEngine) {
(engine.valuePublished(byPlugin: NativeSyncApiImpl.name) as? NativeSyncApiImpl)?.detachFromEngine()
}
}