部署
- 更新包 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_wallet_dart
-
生成代码
export PATH="$PATH":"$HOME/.pub-cache/bin"
protoc -I ../xyvcard-wallet-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../xyvcard-wallet-lib/src/main/proto/xyvcard/wallet/*.proto
protoc -I ../xyvcard-wallet-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../xyvcard-wallet-lib/src/main/proto/xyvcard/wallet/protobuf/*.proto
Libraries
- xyvcard/wallet/protobuf/wallet_balance_record_message.pb
- xyvcard/wallet/protobuf/wallet_balance_record_message.pbenum
- xyvcard/wallet/protobuf/wallet_balance_record_message.pbjson
- xyvcard/wallet/protobuf/wallet_freeze_detail_message.pb
- xyvcard/wallet/protobuf/wallet_freeze_detail_message.pbenum
- xyvcard/wallet/protobuf/wallet_freeze_detail_message.pbjson
- xyvcard/wallet/protobuf/wallet_recharge_order_message.pb
- xyvcard/wallet/protobuf/wallet_recharge_order_message.pbenum
- xyvcard/wallet/protobuf/wallet_recharge_order_message.pbjson
- xyvcard/wallet/protobuf/wallet_user_info_message.pb
- xyvcard/wallet/protobuf/wallet_user_info_message.pbenum
- xyvcard/wallet/protobuf/wallet_user_info_message.pbjson
- xyvcard/wallet/wallet_rpc.pb
- xyvcard/wallet/wallet_rpc.pbenum
- xyvcard/wallet/wallet_rpc.pbgrpc
- xyvcard/wallet/wallet_rpc.pbjson
- xyvcard_wallet_dart