部署
- 更新包 flutter pub get
- 测试 flutter test
- 登录 dart pub login
- 发布 dart pub publish
- 代理
Windows 终端
set http_proxy=http://127.0.0.1:7890 set https_proxy=http://127.0.0.1:7890
Mac/Linux 终端
export http_proxy=http://127.0.0.1:7890 export https_proxy=http://127.0.0.1:7890
代码生成
-
安装flutter SDK
-
安装 Grpc protoc-gen-dart代码插件 flutter pub global activate protoc_plugin
-
创建项目 flutter create --template=package xyvcard_shop_dart
-
生成代码
export PATH="$PATH":"$HOME/.pub-cache/bin"
protoc -I ../xyvcard-shop-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../xyvcard-shop-lib/src/main/proto/xyvcard/shop/*.proto
protoc -I ../xyvcard-shop-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../xyvcard-shop-lib/src/main/proto/xyvcard/shop/protobuf/*.proto
Libraries
- xyvcard/shop/protobuf/shop_branch_message.pb
- xyvcard/shop/protobuf/shop_branch_message.pbenum
- xyvcard/shop/protobuf/shop_branch_message.pbjson
- xyvcard/shop/protobuf/shop_branch_users_account_message.pb
- xyvcard/shop/protobuf/shop_branch_users_account_message.pbenum
- xyvcard/shop/protobuf/shop_branch_users_account_message.pbjson
- xyvcard/shop/protobuf/shop_branchs_users_message.pb
- xyvcard/shop/protobuf/shop_branchs_users_message.pbenum
- xyvcard/shop/protobuf/shop_branchs_users_message.pbjson
- xyvcard/shop/protobuf/shop_info_message.pb
- xyvcard/shop/protobuf/shop_info_message.pbenum
- xyvcard/shop/protobuf/shop_info_message.pbjson
- xyvcard/shop/protobuf/shop_pay_info_message.pb
- xyvcard/shop/protobuf/shop_pay_info_message.pbenum
- xyvcard/shop/protobuf/shop_pay_info_message.pbjson
- xyvcard/shop/protobuf/shop_shops_users_message.pb
- xyvcard/shop/protobuf/shop_shops_users_message.pbenum
- xyvcard/shop/protobuf/shop_shops_users_message.pbjson
- xyvcard/shop/protobuf/shop_spec_info_message.pb
- xyvcard/shop/protobuf/shop_spec_info_message.pbenum
- xyvcard/shop/protobuf/shop_spec_info_message.pbjson
- xyvcard/shop/protobuf/shop_spec_value_message.pb
- xyvcard/shop/protobuf/shop_spec_value_message.pbenum
- xyvcard/shop/protobuf/shop_spec_value_message.pbjson
- xyvcard/shop/shop_rpc.pb
- xyvcard/shop/shop_rpc.pbenum
- xyvcard/shop/shop_rpc.pbgrpc
- xyvcard/shop/shop_rpc.pbjson
- xyvcard_shop_dart