mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: adding suffix for user data folder when current cloud type is appflowy cloud (#3918)
* fix: load database fail caused by spawning long run task * chore: yield long run task * chore: fmt * chore: update client api * feat: copy data between server * ci: fix af cloud test
This commit is contained in:
@ -27,15 +27,12 @@ class FlowySDK {
|
||||
|
||||
void dispose() {}
|
||||
|
||||
Future<void> init(Directory sdkDir) async {
|
||||
Future<void> init(Directory sdkDir, String env) async {
|
||||
final port = RustStreamReceiver.shared.port;
|
||||
ffi.set_stream_port(port);
|
||||
|
||||
ffi.store_dart_post_cobject(NativeApi.postCObject);
|
||||
ffi.set_env(env.toNativeUtf8());
|
||||
ffi.init_sdk(sdkDir.path.toNativeUtf8());
|
||||
}
|
||||
|
||||
void setEnv(String envStr) {
|
||||
ffi.set_env(envStr.toNativeUtf8());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user