refactor: generate dart pb files with feature flag: dart

This commit is contained in:
appflowy
2022-02-08 14:57:16 +08:00
parent 9135b92a39
commit d0b02cb4fd
42 changed files with 172 additions and 573 deletions

View File

@ -53,6 +53,7 @@ flowy-test = { path = "../flowy-test" }
default = []
http_server = []
flowy_unit_test = ["lib-ot/flowy_unit_test", "flowy-sync/flowy_unit_test"]
dart = ["lib-infra/dart", "flowy-folder/dart", "flowy-folder/dart",]
[build-dependencies]
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["gen_pb"] }
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }

View File

@ -1,5 +1,5 @@
use lib_infra::pb;
use lib_infra::pb_gen;
fn main() {
pb::gen("flowy-folder", "./src/protobuf/proto");
pb_gen::gen("flowy-folder", "./src/protobuf/proto");
}