部署
- 更新包 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 jmash_sms_dart
-
生成代码
export PATH="$PATH":"$HOME/.pub-cache/bin"
protoc -I ../jmash-sms-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../jmash-sms-lib/src/main/proto/jmash/sms/*.proto
protoc -I ../jmash-sms-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../jmash-sms-lib/src/main/proto/jmash/sms/protobuf/*.proto
Libraries
- jmash/sms/protobuf/sms_app_config_message.pb
- jmash/sms/protobuf/sms_app_config_message.pbenum
- jmash/sms/protobuf/sms_app_config_message.pbjson
- jmash/sms/protobuf/sms_message.pb
- jmash/sms/protobuf/sms_message.pbenum
- jmash/sms/protobuf/sms_message.pbjson
- jmash/sms/protobuf/sms_sign_message.pb
- jmash/sms/protobuf/sms_sign_message.pbenum
- jmash/sms/protobuf/sms_sign_message.pbjson
- jmash/sms/protobuf/sms_template_message.pb
- jmash/sms/protobuf/sms_template_message.pbenum
- jmash/sms/protobuf/sms_template_message.pbjson
- jmash/sms/sms_rpc.pb
- jmash/sms/sms_rpc.pbenum
- jmash/sms/sms_rpc.pbgrpc
- jmash/sms/sms_rpc.pbjson
- jmash_sms_dart