From f872c6c1f83f91627515614deec29e0b6b35be62 Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 9 Feb 2022 21:56:46 +0800 Subject: [PATCH] ci: fix flutter warnings --- .github/workflows/rust_lint.yml | 7 +------ .github/workflows/rust_test.yml | 4 +--- frontend/app_flowy/packages/flowy_infra/lib/theme.dart | 2 -- .../src/protobuf/proto/dart_notification.proto | 1 + .../flowy-folder/src/protobuf/proto/event_map.proto | 1 + 5 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml index 1cf3175c76..23a24d1c06 100644 --- a/.github/workflows/rust_lint.yml +++ b/.github/workflows/rust_lint.yml @@ -44,12 +44,7 @@ jobs: - name: Install cargo-make run: cargo install --force cargo-make working-directory: frontend - - name: Install protobuf tool - run: - cargo make flowy_dev - echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH - working-directory: frontend - run: rustup component add clippy working-directory: frontend/rust-lib - - run: cargo clippy + - run: cargo clippy --no-default-features working-directory: frontend/rust-lib \ No newline at end of file diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml index d4863c170b..a45f694196 100644 --- a/.github/workflows/rust_test.yml +++ b/.github/workflows/rust_test.yml @@ -32,9 +32,7 @@ jobs: run: cargo install --force cargo-make working-directory: frontend - name: Install protobuf tool - run: - cargo make flowy_dev - echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH + run: brew install protobuf working-directory: frontend - name: RustLib tests run: cargo test --no-default-features diff --git a/frontend/app_flowy/packages/flowy_infra/lib/theme.dart b/frontend/app_flowy/packages/flowy_infra/lib/theme.dart index c29cd644ed..04b4a19fdb 100644 --- a/frontend/app_flowy/packages/flowy_infra/lib/theme.dart +++ b/frontend/app_flowy/packages/flowy_infra/lib/theme.dart @@ -161,9 +161,7 @@ class AppTheme { colorScheme: ColorScheme( brightness: isDark ? Brightness.dark : Brightness.light, primary: main1, - primaryVariant: main2, secondary: main2, - secondaryVariant: main2, background: surface, surface: surface, onBackground: surface, diff --git a/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto b/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto index edb92f4ac4..7a87552f7d 100644 --- a/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto +++ b/frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + enum FolderNotification { Unknown = 0; UserCreateWorkspace = 10; diff --git a/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto b/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto index 032d6c4e05..56d4fecd2d 100644 --- a/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto +++ b/frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto @@ -1,4 +1,5 @@ syntax = "proto3"; + enum FolderEvent { CreateWorkspace = 0; ReadCurWorkspace = 1;