Mostrando entradas con la etiqueta compiler. Mostrar todas las entradas
Mostrando entradas con la etiqueta compiler. Mostrar todas las entradas

jueves, 27 de enero de 2022

Generate gRPC client for dart (flutter) with protoc-gen-dart on macOS

 First: install flutter

Second: install the protoc-gen-dart plugin

dart pub global activate protoc_plugin


Third: Add symlink to dart cache dir in bin

dart pub global activate protoc_plugin


The protoc-gen-dart must be in the following path:

$HOME/.pub-cache/bin/protoc-gen-dart

You need to add the compiler to path

export PATH="${PATH}:${HOME}/.pub-cache/bin"