部署
- 更新包 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_core_dart
-
生成代码 protoc -I ../jmash-core-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../jmash-core-lib/src/main/proto/jmash/basic/*.proto
protoc -I ../jmash-core-lib/src/main/proto --proto_path=. --dart_out=grpc:./lib ../jmash-core-lib/src/main/proto/jmash/protobuf/*.proto
protoc -I ../../protoc/include --proto_path=. --dart_out=grpc:./lib ../../protoc/include/google/api/httpbody.proto
Libraries
- google/api/httpbody.pb
- google/api/httpbody.pbenum
- google/api/httpbody.pbjson
- jmash/basic/file_basic_rpc.pb
- jmash/basic/file_basic_rpc.pbenum
- jmash/basic/file_basic_rpc.pbgrpc
- jmash/basic/file_basic_rpc.pbjson
- jmash/protobuf/basic.pb
- jmash/protobuf/basic.pbenum
- jmash/protobuf/basic.pbjson
- jmash/protobuf/file_basic.pb
- jmash/protobuf/file_basic.pbenum
- jmash/protobuf/file_basic.pbjson
- jmash_core_dart