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

@ -24,7 +24,7 @@ bytes = { version = "1.0" }
once_cell = "1"
lib-dispatch = {path = "../lib-dispatch" }
flowy-sdk = {path = "../flowy-sdk"}
flowy-sdk = {path = "../flowy-sdk", features = ["dart"]}
dart-notify = {path = "../dart-notify" }
flowy-derive = {path = "../../../shared-lib/flowy-derive" }
@ -35,4 +35,4 @@ http_server = ["flowy-sdk/http_server", "flowy-sdk/use_bunyan"]
#use_protobuf= ["protobuf"]
[build-dependencies]
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["gen_pb"] }
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen", "dart"] }

View File

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