部署
- 更新包 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_dict_dart
-
生成代码 protoc -I ../jmash-dict-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../jmash-dict-lib/src/main/proto/jmash/dict/*.proto
protoc -I ../jmash-dict-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../jmash-dict-lib/src/main/proto/jmash/dict/protobuf/*.proto
Libraries
- jmash/dict/dict_rpc.pb
- jmash/dict/dict_rpc.pbenum
- jmash/dict/dict_rpc.pbgrpc
- jmash/dict/dict_rpc.pbjson
- jmash/dict/protobuf/os_dict_entry_message.pb
- jmash/dict/protobuf/os_dict_entry_message.pbenum
- jmash/dict/protobuf/os_dict_entry_message.pbjson
- jmash/dict/protobuf/os_dict_lay_entry_message.pb
- jmash/dict/protobuf/os_dict_lay_entry_message.pbenum
- jmash/dict/protobuf/os_dict_lay_entry_message.pbjson
- jmash/dict/protobuf/os_dict_type_message.pb
- jmash/dict/protobuf/os_dict_type_message.pbenum
- jmash/dict/protobuf/os_dict_type_message.pbjson
- jmash_dict_dart