Skip to content

Commit 8e9c1ef

Browse files
authored
Allow Protobuf v5 dependency (#102)
1 parent 969c3c9 commit 8e9c1ef

3 files changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,35 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
sdk: [3.4, stable, beta] # note, not testing on 3.3 due to build_runner CI dependency problem.
13-
protobuf: ["3.1.0", "4.0.0"] # make sure works with both protobuf versions.
12+
# Test compatible SDK and protobuf version combinations
13+
# protobuf 3.1.0: SDK >= 2.19
14+
# protobuf 4.0.0: SDK >= 3.3
15+
# protobuf 4.1.0: SDK >= 3.6
16+
# protobuf 4.2.0+: SDK >= 3.7
17+
# protobuf 5.0.0+: SDK >= 3.7
18+
include:
19+
# Test older protobuf versions with SDK 3.4
20+
- sdk: "3.4"
21+
protobuf: "3.1.0"
22+
- sdk: "3.4"
23+
protobuf: "4.0.0"
24+
# Test latest protobuf versions with SDK 3.7+ (stable and beta)
25+
- sdk: stable
26+
protobuf: "3.1.0"
27+
- sdk: stable
28+
protobuf: "4.0.0"
29+
- sdk: stable
30+
protobuf: "4.2.0"
31+
- sdk: stable
32+
protobuf: "5.0.0"
33+
- sdk: beta
34+
protobuf: "3.1.0"
35+
- sdk: beta
36+
protobuf: "4.0.0"
37+
- sdk: beta
38+
protobuf: "4.2.0"
39+
- sdk: beta
40+
protobuf: "5.0.0"
1441
steps:
1542
- uses: actions/checkout@v4
1643

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.17.0]
2+
3+
* Allow usage of protobuf v5 as dependency
4+
15
## [0.16.0]
26

37
* Allow usage of protobuf v4 as dependency, drop protobuf v2

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: centrifuge
2-
version: 0.16.0
2+
version: 0.17.0
33

44
description: >
55
Dart client to communicate with Centrifuge and Centrifugo from Flutter and VM
@@ -13,7 +13,7 @@ environment:
1313
dependencies:
1414
fixnum: ^1.0.0
1515
meta: ^1.3.0
16-
protobuf: ">=3.0.0 <5.0.0"
16+
protobuf: ">=3.0.0 <6.0.0"
1717
web_socket_channel: ">=3.0.0 <4.0.0"
1818

1919
dev_dependencies:

0 commit comments

Comments
 (0)