digitalfabrik / entitlementcard

App for 'Digitale Berechtigungskarten', generally benefit card for volunteers or socially vulnerable groups in Germany. App for Android & iOS + Backend + Administration Web Portal – 100% Open Source.
MIT License
36 stars 3 forks source link

Use protoc_builder instead of own implementation #1784

Closed michael-markl closed 4 days ago

michael-markl commented 4 days ago

Short description

Replace df_protobuf with protoc_builder to avoid compatability problems with global Dart version.

Proposed changes

protoc_builder downloads the specified protoc and protoc_plugin, compiles protoc_plugin for the Dart version specified/used by fvm.

Side effects

The frontend project no longer uses the globally installed protoc version, but instead downloads its own protoc version during the build_runner process.

One more dependency :/

Testing

Check if the build runner (& running the app) still works on your machine. You can deactivate the globally installed protoc_plugin:

dart pub global deactivate protoc_plugin

Resolved issues

Fixes: #1581