protos_weebi
Dart package containing generated code from proto files.
Proto Source
Proto files are fetched from: https://github.com/weebi-com/protos
Generating Code
To regenerate Dart code from proto files:
cd packages/protos/protos_weebi
bash tool/generate_protos.sh
The script will:
- Clone or update the proto repository from GitHub
- Generate Dart code using
protoc - Output generated files to
lib/src/generated/
Dependencies
This package depends on:
protobuf: ^4.0.0grpc: ^4.0.1fixnum: ^1.1.1crypto: ^3.0.3
downloading/updating
in powershell
powershell .\packages\protos\protos_weebi\tool\generate_protos.ps1
in wsl
troubleshooting
To use a specific version: Tag the protos repo: git tag v1.0.0 && git push origin v1.0.0 Update both .protos-version files: PROTOS_VERSION=1.0.0 PROTOS_COMMIT=v1.0.0 Run the generation scripts — they'll check out that tag
.\scripts\check_protos_version.ps1 ./scripts/check_protos_version.sh