2021-07-17 00:24:17 +00:00
|
|
|
pub mod builder;
|
2021-07-16 15:18:12 +00:00
|
|
|
mod helper;
|
|
|
|
mod tester;
|
|
|
|
|
|
|
|
use crate::helper::root_dir;
|
2021-08-20 06:38:03 +00:00
|
|
|
use flowy_sdk::FlowySDK;
|
2021-07-17 00:24:17 +00:00
|
|
|
use std::sync::Once;
|
2021-07-06 06:14:47 +00:00
|
|
|
|
|
|
|
pub mod prelude {
|
2021-09-03 08:43:03 +00:00
|
|
|
pub use crate::{builder::*, helper::*};
|
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();
|
2021-08-20 06:38:03 +00:00
|
|
|
pub fn init_test_sdk() {
|
2021-07-06 06:14:47 +00:00
|
|
|
let root_dir = root_dir();
|
|
|
|
|
|
|
|
INIT.call_once(|| {
|
2021-08-20 06:38:03 +00:00
|
|
|
FlowySDK::construct_with(&root_dir);
|
2021-07-06 06:14:47 +00:00
|
|
|
});
|
|
|
|
}
|