Procházet zdrojové kódy

ci: fix flutter warnings

appflowy před 3 roky
rodič
revize
f872c6c1f8

+ 1 - 6
.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

+ 1 - 3
.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

+ 0 - 2
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,

+ 1 - 0
frontend/rust-lib/flowy-folder/src/protobuf/proto/dart_notification.proto

@@ -1,4 +1,5 @@
 syntax = "proto3";
+
 enum FolderNotification {
     Unknown = 0;
     UserCreateWorkspace = 10;

+ 1 - 0
frontend/rust-lib/flowy-folder/src/protobuf/proto/event_map.proto

@@ -1,4 +1,5 @@
 syntax = "proto3";
+
 enum FolderEvent {
     CreateWorkspace = 0;
     ReadCurWorkspace = 1;