2021-07-16 15:18:12 +00:00
|
|
|
mod builder;
|
|
|
|
mod helper;
|
|
|
|
mod tester;
|
|
|
|
|
|
|
|
use crate::helper::root_dir;
|
|
|
|
use flowy_sdk::FlowySDK;
|
|
|
|
use std::{sync::Once, thread};
|
2021-07-06 06:14:47 +00:00
|
|
|
|
|
|
|
pub mod prelude {
|
2021-07-16 15:18:12 +00:00
|
|
|
pub use crate::{builder::TestBuilder, tester::Tester};
|
2021-07-08 13:23:44 +00:00
|
|
|
pub use flowy_dispatch::prelude::*;
|
2021-07-06 06:14:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static INIT: Once = Once::new();
|
|
|
|
pub fn init_sdk() {
|
|
|
|
let root_dir = root_dir();
|
|
|
|
|
|
|
|
INIT.call_once(|| {
|
2021-07-14 13:12:52 +00:00
|
|
|
FlowySDK::new(&root_dir).construct();
|
2021-07-06 06:14:47 +00:00
|
|
|
});
|
|
|
|
}
|