Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: bump protobuf version (#4123)

Richard Shiueeff06a1f742c
diff --git a/frontend/appflowy_flutter/packages/appflowy_backend/pubspec.yaml b/frontend/appflowy_flutter/packages/appflowy_backend/pubspec.yaml
index a2946ad335..6762a3f2db 100644
--- a/frontend/appflowy_flutter/packages/appflowy_backend/pubspec.yaml
+++ b/frontend/appflowy_flutter/packages/appflowy_backend/pubspec.yaml
@@ -13,7 +13,7 @@ dependencies:
sdk: flutter
ffi: ^2.0.2
isolates: ^3.0.3+8
- protobuf: ^2.0.0
+ protobuf: ^3.1.0
dartz: ^0.10.1
freezed_annotation:
logger: ^1.0.0
diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock
index 0335f2f77e..8253eb3bfb 100644
--- a/frontend/appflowy_flutter/pubspec.lock
+++ b/frontend/appflowy_flutter/pubspec.lock
@@ -1318,10 +1318,10 @@ packages:
dependency: "direct main"
description:
name: protobuf
- sha256: "01dd9bd0fa02548bf2ceee13545d4a0ec6046459d847b6b061d8a27237108a08"
+ sha256: "68645b24e0716782e58948f8467fd42a880f255096a821f9e7d0ec625b00c84d"
url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "3.1.0"
provider:
dependency: "direct main"
description:
diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml
index f5b1e51529..4e5a8192b9 100644
--- a/frontend/appflowy_flutter/pubspec.yaml
+++ b/frontend/appflowy_flutter/pubspec.yaml
@@ -83,7 +83,7 @@ dependencies:
hotkey_manager: ^0.1.7
fixnum: ^1.1.0
flutter_svg: ^2.0.7
- protobuf: ^2.1.0
+ protobuf: ^3.1.0
charcode: ^1.3.1
collection: ^1.17.1
bloc: ^8.1.2
diff --git a/frontend/scripts/docker-buildfiles/Dockerfile b/frontend/scripts/docker-buildfiles/Dockerfile
index 204caf7ab7..dfd5caf638 100644
--- a/frontend/scripts/docker-buildfiles/Dockerfile
+++ b/frontend/scripts/docker-buildfiles/Dockerfile
@@ -44,7 +44,7 @@ RUN curl -sSfL \
rm flutter.tar.xz
RUN flutter config --enable-linux-desktop
RUN flutter doctor
-RUN dart pub global activate protoc_plugin 20.0.1
+RUN dart pub global activate protoc_plugin 21.1.2
# Install build dependencies for AppFlowy
RUN yay -S --noconfirm jemalloc4 cargo-make cargo-binstall
diff --git a/frontend/scripts/makefile/protobuf.toml b/frontend/scripts/makefile/protobuf.toml
index c4be312d32..326b9119cf 100644
--- a/frontend/scripts/makefile/protobuf.toml
+++ b/frontend/scripts/makefile/protobuf.toml
@@ -23,8 +23,7 @@ windows_alias = "install-protobuf-windows"
linux_alias = "install-protobuf"
[tasks.install-protobuf]
-condition_script = [
- """
+condition_script = ["""
if ! command -v protoc-gen-dart
then
exit 0
@@ -32,8 +31,7 @@ condition_script = [
# installed
exit 1
- """,
-]
+ """]
run_task = { name = ["install_flutter_protobuf_compiler"] }
[tasks.install-protobuf-windows]
@@ -45,7 +43,7 @@ if is_empty ${ret}
end
ret = which protoc-gen-dart
if is_empty ${ret}
- exec cmd.exe /c dart pub global activate protoc_plugin 20.0.1
+ exec cmd.exe /c dart pub global activate protoc_plugin 21.1.2
end
ret = which protoc-gen-dart
if is_empty ${ret}
@@ -60,18 +58,13 @@ script_runner = "@duckscript"
[tasks.install_flutter_protobuf_compiler]
script = """
echo "Install protoc_plugin (Dart)"
-dart pub global activate protoc_plugin 20.0.1
+dart pub global activate protoc_plugin 21.1.2
"""
script_runner = "@shell"
[tasks.install_flutter_protobuf_compiler.linux]
script = """
echo "Install protoc_plugin (Dart)"
-dart pub global activate protoc_plugin 20.0.1
+dart pub global activate protoc_plugin 21.1.2
"""
script_runner = "@shell"
-
-
-
-
-