Initialize
FlowySDK works as the AppFlowy application Backend. It will be initialized before the application launch. Check out the initialization sequence diagram shown below.
FlowyRunner will get called when the entry point, the
mainfunction, got called.FlowyRunner call
initializefunction on each task that registers as a LaunchTask one by one.InitRustSDKTaskcalls the init function and passes the working directory into FlowySDK.getIt<FlowySDK>().init(directory)The directory is different according to the
IntegrationMode, which means running AppFlowy on developing mode will not alter the data on release mode.IntegrationMode.release
Directory documentsDir = await getApplicationDocumentsDirectory(); final directory = Directory('${documentsDir.path}/flowy')IntegrationMode.develop
Directory documentsDir = await getApplicationDocumentsDirectory(); final directory = Directory('${documentsDir.path}/flowy_dev')IntegrationMode.test
final directory = Directory("${Directory.current.path}/.sandbox")InitAppWidgetTaskinitialize theApplicationWidgetand callrunAppfunction.InitPlatformServiceTaskstart theNetworkListener.
WIP
typing...💬️
Last updated
Was this helpful?

