Skip to content

Commit

Permalink
Add comment for usage of Breez Server proto command
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Jun 11, 2024
1 parent 56ed640 commit 4ab83de
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/services/breez_server/server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ import 'package:logging/logging.dart';

final _log = Logger("BreezServer");

//proto command:
//protoc --dart_out=grpc:lib/services/breez_server/generated/ -Ilib/services/breez_server/protobuf/ lib/services/breez_server/protobuf/breez.proto
//dart format -l 110 lib/services/breez_server/generated/
// This is the bridge to the breez server. Protobuf messages are used as the interface and to generate the classes use the command below:
// protoc --dart_out=grpc:lib/services/breez_server/generated/ -Ilib/services/breez_server/protobuf/ lib/services/breez_server/protobuf/breez.proto
// dart format -l 110 lib/services/breez_server/generated/
// You may need to activate protoc_plugin. See [here](https://pub.dev/packages/protoc_plugin#how-to-build).
//
// Due to Flutter SDK restrictions, we need to install a strict version of protoc_plugin
// as any version above 20.0.1 requires Flutter 3.10.
//
// dart pub global activate protoc_plugin 20.0.1
class BreezServer {
static final defaultCallOptions = CallOptions(
timeout: const Duration(seconds: 10),
Expand Down

0 comments on commit 4ab83de

Please sign in to comment.