// Copyright 2017, Paul DeMarco.\
// All rights reserved. Use of this source code is governed by a\
// BSD-style license that can be found in the LICENSE file.
Generate protobuf files in Dart
- If upgrading, delete all proto files from /home/.pub-cache/bin
- Clone the latest dart-protoc-plugin from https://github.com/dart-lang/protobuf
- Run
pub install
inside protobuf/protoc_plugin
- Run
pub global activate protoc_plugin
to get .dart files into /home/.pub-cache/bin/
- Get the latest linux protoc compiler from https://github.com/google/protobuf/releases/ (protoc-X.X.X-linux-x86_64.zip)
- Copy /bin/protoc into /home/.pub-cache/bin/
- Run the following commands from this project's protos folder
protoc --dart_out=../lib/gen ./flutterblue.proto
protoc --objc_out=../ios/gen ./flutterblue.proto