mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: generate dart pb files with feature flag: dart
This commit is contained in:
@ -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"] }
|
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user