lib.rs 392 B

123456789101112131415161718192021
  1. pub mod builder;
  2. mod helper;
  3. mod tester;
  4. use crate::helper::root_dir;
  5. use flowy_sdk::FlowySDK;
  6. use std::sync::Once;
  7. pub mod prelude {
  8. pub use crate::{builder::*, helper::*};
  9. pub use flowy_dispatch::prelude::*;
  10. }
  11. static INIT: Once = Once::new();
  12. pub fn init_test_sdk() {
  13. let root_dir = root_dir();
  14. INIT.call_once(|| {
  15. FlowySDK::construct_with(&root_dir);
  16. });
  17. }