From b2f3570bbf050e33f557830b9818d53f2a75aeca Mon Sep 17 00:00:00 2001 From: appflowy Date: Tue, 23 Nov 2021 15:30:08 +0800 Subject: [PATCH 01/14] print the flutter and rust env --- frontend/Makefile.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml index b7b73101c7..d6f293c27a 100644 --- a/frontend/Makefile.toml +++ b/frontend/Makefile.toml @@ -99,6 +99,7 @@ LINUX_ARCH = "arm64" [tasks.echo_env] script = [ ''' + echo "-------- Env Parameters --------" echo CRATE_TYPE: ${CRATE_TYPE} echo BUILD_FLAG: ${BUILD_FLAG} echo TARGET_OS: ${TARGET_OS} @@ -106,9 +107,15 @@ script = [ echo FEATURES: ${FEATURES} echo PRODUCT_EXT: ${PRODUCT_EXT} echo ${platforms} + + echo "-------- Flutter --------" + flutter doctor + + echo "-------- Rust --------" + rustup show ''' ] -script_runner = "@duckscript" +script_runner = "@shell" [env.production-ios] BUILD_FLAG = "release" From 1ee5a9402b22f686fbfdb950badbf0031f7cfb67 Mon Sep 17 00:00:00 2001 From: appflowy Date: Tue, 23 Nov 2021 16:41:05 +0800 Subject: [PATCH 02/14] remove install_protobuf task from the flowy_dev --- frontend/scripts/makefile/env.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/makefile/env.toml b/frontend/scripts/makefile/env.toml index 5d060231bc..c3ef9be841 100644 --- a/frontend/scripts/makefile/env.toml +++ b/frontend/scripts/makefile/env.toml @@ -1,5 +1,5 @@ [tasks.flowy_dev] -run_task = { name = ["install_prerequests","install_diesel", "install_protobuf"] } +run_task = { name = ["install_prerequests","install_diesel"] } [tasks.install_windows_deps.windows] dependencies=["check_duckscript_installation", "check_visual_studio_installation", "check_vcpkg", "install_vcpkg_sqlite", "install_rust_vcpkg_cli"] From 9790251aa2a9fc1e044021398c58592845a0a44c Mon Sep 17 00:00:00 2001 From: Pratik <68642400+pratikbalar@users.noreply.github.com> Date: Tue, 23 Nov 2021 14:22:42 +0530 Subject: [PATCH 03/14] ci: add depth 1 in flutter git clone --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9faf4070f7..8232919f9e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,7 +35,7 @@ jobs: rustup default nightly - name: Flutter run: | - git clone https://github.com/flutter/flutter.git + git clone --depth 1 https://github.com/flutter/flutter.git cd flutter echo `pwd`"/bin" >> $GITHUB_PATH export PATH="$PATH:`pwd`/bin" From 7288224c3e587207561ccb61b935658ea51ce955 Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 16:54:40 +0800 Subject: [PATCH 04/14] Update ci.yaml --- .github/workflows/ci.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9faf4070f7..8057669b1f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,7 @@ on: branches: [main] pull_request: branches: [main] -jobs: +jobs: build-macos: runs-on: macOS-latest steps: @@ -16,6 +16,15 @@ jobs: run: cd frontend/rust-lib && cargo test - name: Run shared-lib tests run: cd shared-lib && cargo test + - name: Deps + run: | + cd frontend + cargo install --force cargo-make + cargo install --force duckscript_cli + cargo make flowy_dev + - name: Build + run: | + cargo make --profile production-desktop-mac-x86 appflowy build-ubuntu: runs-on: ubuntu-latest steps: @@ -48,4 +57,6 @@ jobs: cargo install --force cargo-make cargo install --force duckscript_cli cargo make flowy_dev - cargo make -p development-linux-x86 appflowy-linux-dev + - name: Build + run: | + cargo make --profile production-desktop-linux-x86 appflowy From 8acdb82612e3ec38c90c7d2d0ffd9126d89939d5 Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:10:05 +0800 Subject: [PATCH 05/14] Update ci.yaml fix build issues --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93e5972ad6..65befe68e2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,7 @@ jobs: cargo make flowy_dev - name: Build run: | + cd frontend cargo make --profile production-desktop-mac-x86 appflowy build-ubuntu: runs-on: ubuntu-latest @@ -59,4 +60,5 @@ jobs: cargo make flowy_dev - name: Build run: | + cd frontend cargo make --profile production-desktop-linux-x86 appflowy From 76c8aa82ad9d411c3ed58818ad34579f763dd648 Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:17:16 +0800 Subject: [PATCH 06/14] Update ci.yaml git clone flutter from dev branch --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65befe68e2..b3debde0bb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,7 +45,7 @@ jobs: rustup default nightly - name: Flutter run: | - git clone --depth 1 https://github.com/flutter/flutter.git + git clone --depth 1 -b dev https://github.com/flutter/flutter.git cd flutter echo `pwd`"/bin" >> $GITHUB_PATH export PATH="$PATH:`pwd`/bin" From 0d28267386e3850f75bfed5573d4acd470ded851 Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:29:52 +0800 Subject: [PATCH 07/14] Update ci.yaml --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b3debde0bb..2cc9b1debf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,17 +11,17 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Env install - run: cd frontend && make install_rust && make install_cargo_make && cargo make install_targets - - name: Run frontend tests - run: cd frontend/rust-lib && cargo test - - name: Run shared-lib tests - run: cd shared-lib && cargo test + run: cd frontend && make install_rust - name: Deps run: | cd frontend cargo install --force cargo-make cargo install --force duckscript_cli cargo make flowy_dev + - name: Run frontend tests + run: cd frontend/rust-lib && cargo test + - name: Run shared-lib tests + run: cd shared-lib && cargo test - name: Build run: | cd frontend @@ -61,4 +61,4 @@ jobs: - name: Build run: | cd frontend - cargo make --profile production-desktop-linux-x86 appflowy + cargo make --profile production-linux-x86 appflowy From 7b47fb5c7f3330c2aa2f9c86a15948a3db5032b3 Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:53:08 +0800 Subject: [PATCH 08/14] Update ci.yaml --- .github/workflows/ci.yaml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2cc9b1debf..7425e81ea1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,18 @@ on: branches: [main] pull_request: branches: [main] -jobs: +jobs: + sdk-tests: + runs-on: macOS-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Env install + run: cd frontend && make install_rust + - name: Frontend tests + run: cd frontend/rust-lib && cargo test + - name: Shared-lib tests + run: cd shared-lib && cargo test build-macos: runs-on: macOS-latest steps: @@ -12,16 +23,21 @@ jobs: uses: actions/checkout@v2 - name: Env install run: cd frontend && make install_rust + - name: Flutter + run: | + git clone --depth 1 -b dev https://github.com/flutter/flutter.git + cd flutter + echo `pwd`"/bin" >> $GITHUB_PATH + export PATH="$PATH:`pwd`/bin" + flutter channel dev + flutter config --enable-macos-desktop + flutter doctor - name: Deps run: | cd frontend cargo install --force cargo-make cargo install --force duckscript_cli cargo make flowy_dev - - name: Run frontend tests - run: cd frontend/rust-lib && cargo test - - name: Run shared-lib tests - run: cd shared-lib && cargo test - name: Build run: | cd frontend From ce126fe08dec1af114b272b9c12b7addab809b80 Mon Sep 17 00:00:00 2001 From: appflowy Date: Tue, 23 Nov 2021 17:32:07 +0800 Subject: [PATCH 09/14] [rust]: fix some unuse warniings --- frontend/rust-lib/lib-dispatch/src/request/request.rs | 1 + frontend/rust-lib/lib-sqlite/src/pool.rs | 1 + shared-lib/flowy-document-infra/src/core/history.rs | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/frontend/rust-lib/lib-dispatch/src/request/request.rs b/frontend/rust-lib/lib-dispatch/src/request/request.rs index edcfc3fe36..182d3be205 100644 --- a/frontend/rust-lib/lib-dispatch/src/request/request.rs +++ b/frontend/rust-lib/lib-dispatch/src/request/request.rs @@ -17,6 +17,7 @@ use std::{ #[derive(Clone, Debug, Derivative)] pub struct EventRequest { + #[allow(dead_code)] pub(crate) id: String, pub(crate) event: Event, #[derivative(Debug = "ignore")] diff --git a/frontend/rust-lib/lib-sqlite/src/pool.rs b/frontend/rust-lib/lib-sqlite/src/pool.rs index 72b4f95fc6..b0244b58db 100644 --- a/frontend/rust-lib/lib-sqlite/src/pool.rs +++ b/frontend/rust-lib/lib-sqlite/src/pool.rs @@ -101,6 +101,7 @@ pub struct DatabaseCustomizerConfig { pub(crate) journal_mode: SQLiteJournalMode, pub(crate) synchronous: SQLiteSynchronous, pub(crate) busy_timeout: i32, + #[allow(dead_code)] pub(crate) secure_delete: bool, } diff --git a/shared-lib/flowy-document-infra/src/core/history.rs b/shared-lib/flowy-document-infra/src/core/history.rs index 472c574436..d03b8800f4 100644 --- a/shared-lib/flowy-document-infra/src/core/history.rs +++ b/shared-lib/flowy-document-infra/src/core/history.rs @@ -4,7 +4,10 @@ const MAX_UNDOS: usize = 20; #[derive(Debug, Clone)] pub struct UndoResult { + #[allow(dead_code)] success: bool, + + #[allow(dead_code)] len: usize, } @@ -16,6 +19,7 @@ impl UndoResult { #[derive(Debug, Clone)] pub struct History { + #[allow(dead_code)] cur_undo: usize, undos: Vec, redoes: Vec, From 054fa4c952404019b1b63109a02e729a726d7cec Mon Sep 17 00:00:00 2001 From: appflowy Date: Tue, 23 Nov 2021 17:45:18 +0800 Subject: [PATCH 10/14] rename some tasks' name --- .github/workflows/ci.yaml | 2 +- doc/BUILD_ON_WINDOWS.md | 8 ++++---- frontend/Makefile.toml | 8 ++++---- frontend/rust-lib/flowy-sdk/src/lib.rs | 1 + frontend/scripts/build_sdk.cmd | 2 +- frontend/scripts/makefile/desktop.toml | 2 +- frontend/scripts/makefile/env.toml | 2 ++ 7 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7425e81ea1..01ea4f9516 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,7 +41,7 @@ jobs: - name: Build run: | cd frontend - cargo make --profile production-desktop-mac-x86 appflowy + cargo make --profile production-mac-x86 appflowy build-ubuntu: runs-on: ubuntu-latest steps: diff --git a/doc/BUILD_ON_WINDOWS.md b/doc/BUILD_ON_WINDOWS.md index b10a25bdbc..dfe53b6251 100644 --- a/doc/BUILD_ON_WINDOWS.md +++ b/doc/BUILD_ON_WINDOWS.md @@ -52,16 +52,16 @@ cargo make -p development-windows pb 10. Build flowy-sdk (dart-ffi) ```shell # for development -cargo make --profile development-desktop-windows-x86 flowy-sdk-dev +cargo make --profile development-windows-x86 flowy-sdk-dev # for production -cargo make --profile production-desktop-windows-x86 flowy-sdk-release +cargo make --profile production-windows-x86 flowy-sdk-release ``` 11. Build app_flowy ```shell # for development -cargo make -p development-desktop-windows-x86 appflowy-windows-dev +cargo make -p development-windows-x86 appflowy-windows-dev # for production -cargo make -p production-desktop-windows-x86 appflowy-windows +cargo make -p production-windows-x86 appflowy-windows ``` ## Step 3: Build Server side application (optional if you don't need to host web service locally) diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml index d6f293c27a..181cb51f3e 100644 --- a/frontend/Makefile.toml +++ b/frontend/Makefile.toml @@ -27,14 +27,14 @@ BUILD_FLAG = "debug" FLUTTER_OUTPUT_DIR = "Debug" PRODUCT_EXT = "app" -[env.production-desktop-mac-aarch64] +[env.production-mac-aarch64] BUILD_FLAG = "release" TARGET_OS = "macos" RUST_COMPILE_TARGET = "aarch64-apple-darwin" FLUTTER_OUTPUT_DIR = "Release" PRODUCT_EXT = "app" -[env.production-desktop-mac-x86] +[env.production-mac-x86] BUILD_FLAG = "release" TARGET_OS = "macos" RUST_COMPILE_TARGET = "x86_64-apple-darwin" @@ -42,7 +42,7 @@ FLUTTER_OUTPUT_DIR = "Release" PRODUCT_EXT = "app" -[env.development-desktop-windows-x86] +[env.development-windows-x86] TARGET_OS = "windows" RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc" BUILD_FLAG = "debug" @@ -51,7 +51,7 @@ PRODUCT_EXT = "exe" CRATE_TYPE = "cdylib" SDK_EXT = "dll" -[env.production-desktop-windows-x86] +[env.production-windows-x86] BUILD_FLAG = "release" TARGET_OS = "windows" RUST_COMPILE_TARGET = "x86_64-pc-windows-msvc" diff --git a/frontend/rust-lib/flowy-sdk/src/lib.rs b/frontend/rust-lib/flowy-sdk/src/lib.rs index d736d37c54..6df2e4d793 100644 --- a/frontend/rust-lib/flowy-sdk/src/lib.rs +++ b/frontend/rust-lib/flowy-sdk/src/lib.rs @@ -59,6 +59,7 @@ fn crate_log_filter(level: Option) -> String { #[derive(Clone)] pub struct FlowySDK { + #[allow(dead_code)] config: FlowySDKConfig, pub user_session: Arc, pub flowy_document: Arc, diff --git a/frontend/scripts/build_sdk.cmd b/frontend/scripts/build_sdk.cmd index e27b4cd3e4..5ddcbd82ab 100644 --- a/frontend/scripts/build_sdk.cmd +++ b/frontend/scripts/build_sdk.cmd @@ -1,3 +1,3 @@ echo "Start building rust sdk" rustup show -cargo make --profile development-desktop-windows-x86 flowy-sdk-dev \ No newline at end of file +cargo make --profile development-windows-x86 flowy-sdk-dev \ No newline at end of file diff --git a/frontend/scripts/makefile/desktop.toml b/frontend/scripts/makefile/desktop.toml index 981e4a89ce..1f1c16079c 100644 --- a/frontend/scripts/makefile/desktop.toml +++ b/frontend/scripts/makefile/desktop.toml @@ -2,7 +2,7 @@ # Run the task with profile, e.g. # cargo make --profile development-mac flowy-sdk-dev -# cargo make --profile production-desktop-windows-x86 flowy-sdk-dev +# cargo make --profile production-windows-x86 flowy-sdk-dev [tasks.env_check] dependencies = ["echo_env"] diff --git a/frontend/scripts/makefile/env.toml b/frontend/scripts/makefile/env.toml index c3ef9be841..981a41909a 100644 --- a/frontend/scripts/makefile/env.toml +++ b/frontend/scripts/makefile/env.toml @@ -66,6 +66,8 @@ dependencies = ["check_vcpkg"] [tasks.install_targets] script = """ +# TODO: download the targets with corresponding platform. For example: +# It's not necessary to download aarch64-apple-ios when compiling the Flowy-SDK on windows. rustup target add x86_64-apple-ios rustup target add x86_64-apple-darwin rustup target add aarch64-apple-ios From ce077c059eb4edc6fdc4df7973148ec9f899edaf Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 19:05:37 +0800 Subject: [PATCH 11/14] Update ci.yaml --- .github/workflows/ci.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 01ea4f9516..80b6369cbd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,12 +6,16 @@ on: branches: [main] jobs: sdk-tests: - runs-on: macOS-latest + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - - name: Env install - run: cd frontend && make install_rust + - name: Install Rust + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source $HOME/.cargo/env + rustup toolchain install nightly + rustup default nightly - name: Frontend tests run: cd frontend/rust-lib && cargo test - name: Shared-lib tests From 93b7cf481bc63807f08ea6d94b0db724dbc9e82e Mon Sep 17 00:00:00 2001 From: Alex to Date: Tue, 23 Nov 2021 15:46:20 +0800 Subject: [PATCH 12/14] Untrack auto generated files under windows/flutter/. Add below files into .gitignore windows/flutter/generated_plugin_registrant.cc windows/flutter/generated_plugin_registrant.h windows/flutter/generated_plugins.cmake --- .gitignore | 2 +- frontend/app_flowy/.gitignore | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 123bb8854d..59e6eeada1 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ Cargo.lock **/*.db .idea/ /flowy-test/ -.ruby-version \ No newline at end of file +.ruby-version diff --git a/frontend/app_flowy/.gitignore b/frontend/app_flowy/.gitignore index 3b89cfb188..1fe9a5cc3f 100644 --- a/frontend/app_flowy/.gitignore +++ b/frontend/app_flowy/.gitignore @@ -55,4 +55,7 @@ windows/flutter/dart_ffi/ **/**/*.a **/**/*.lib **/**/*.dll -**/**/*.so \ No newline at end of file +**/**/*.so +flutter/generated_plugin_registrant.cc +flutter/generated_plugin_registrant.h +flutter/generated_plugins.cmake \ No newline at end of file From f45608163c18d160eedc1e32a8fdf01a15d39cb6 Mon Sep 17 00:00:00 2001 From: appflowy Date: Tue, 23 Nov 2021 20:04:57 +0800 Subject: [PATCH 13/14] update native protobuf tool version --- frontend/scripts/makefile/env.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/makefile/env.toml b/frontend/scripts/makefile/env.toml index 981a41909a..7766130fe6 100644 --- a/frontend/scripts/makefile/env.toml +++ b/frontend/scripts/makefile/env.toml @@ -92,7 +92,7 @@ script = """ #https://pub.dev/packages/protoc_plugin dart pub global activate protoc_plugin -cargo install --version 2.20.0 protobuf-codegen +cargo install --version 2.22.1 protobuf-codegen """ [tasks.install_protobuf.windows] From 870aa610805ec51efc3aa64562c161e28a139820 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Tue, 23 Nov 2021 19:50:36 +0800 Subject: [PATCH 14/14] fix path issue in .gitignore --- frontend/app_flowy/.gitignore | 5 +--- frontend/app_flowy/windows/.gitignore | 4 +++ .../flutter/generated_plugin_registrant.cc | 26 ------------------- .../flutter/generated_plugin_registrant.h | 15 ----------- .../windows/flutter/generated_plugins.cmake | 20 -------------- 5 files changed, 5 insertions(+), 65 deletions(-) delete mode 100644 frontend/app_flowy/windows/flutter/generated_plugin_registrant.cc delete mode 100644 frontend/app_flowy/windows/flutter/generated_plugin_registrant.h delete mode 100644 frontend/app_flowy/windows/flutter/generated_plugins.cmake diff --git a/frontend/app_flowy/.gitignore b/frontend/app_flowy/.gitignore index 1fe9a5cc3f..3b89cfb188 100644 --- a/frontend/app_flowy/.gitignore +++ b/frontend/app_flowy/.gitignore @@ -55,7 +55,4 @@ windows/flutter/dart_ffi/ **/**/*.a **/**/*.lib **/**/*.dll -**/**/*.so -flutter/generated_plugin_registrant.cc -flutter/generated_plugin_registrant.h -flutter/generated_plugins.cmake \ No newline at end of file +**/**/*.so \ No newline at end of file diff --git a/frontend/app_flowy/windows/.gitignore b/frontend/app_flowy/windows/.gitignore index d492d0d98c..4fe0b7f400 100644 --- a/frontend/app_flowy/windows/.gitignore +++ b/frontend/app_flowy/windows/.gitignore @@ -15,3 +15,7 @@ x86/ *.[Cc]ache # but keep track of directories ending in .cache !*.[Cc]ache/ + +flutter/generated_plugin_registrant.cc +flutter/generated_plugin_registrant.h +flutter/generated_plugins.cmake \ No newline at end of file diff --git a/frontend/app_flowy/windows/flutter/generated_plugin_registrant.cc b/frontend/app_flowy/windows/flutter/generated_plugin_registrant.cc deleted file mode 100644 index b11b2f204c..0000000000 --- a/frontend/app_flowy/windows/flutter/generated_plugin_registrant.cc +++ /dev/null @@ -1,26 +0,0 @@ -// -// Generated file. Do not edit. -// - -// clang-format off - -#include "generated_plugin_registrant.h" - -#include -#include -#include -#include -#include - -void RegisterPlugins(flutter::PluginRegistry* registry) { - FlowyEditorPluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("FlowyEditorPlugin")); - FlowyInfraUIPluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("FlowyInfraUIPlugin")); - FlowySdkPluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("FlowySdkPlugin")); - UrlLauncherWindowsRegisterWithRegistrar( - registry->GetRegistrarForPlugin("UrlLauncherWindows")); - WindowSizePluginRegisterWithRegistrar( - registry->GetRegistrarForPlugin("WindowSizePlugin")); -} diff --git a/frontend/app_flowy/windows/flutter/generated_plugin_registrant.h b/frontend/app_flowy/windows/flutter/generated_plugin_registrant.h deleted file mode 100644 index dc139d85a9..0000000000 --- a/frontend/app_flowy/windows/flutter/generated_plugin_registrant.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// Generated file. Do not edit. -// - -// clang-format off - -#ifndef GENERATED_PLUGIN_REGISTRANT_ -#define GENERATED_PLUGIN_REGISTRANT_ - -#include - -// Registers Flutter plugins. -void RegisterPlugins(flutter::PluginRegistry* registry); - -#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/frontend/app_flowy/windows/flutter/generated_plugins.cmake b/frontend/app_flowy/windows/flutter/generated_plugins.cmake deleted file mode 100644 index c8e6921da3..0000000000 --- a/frontend/app_flowy/windows/flutter/generated_plugins.cmake +++ /dev/null @@ -1,20 +0,0 @@ -# -# Generated file, do not edit. -# - -list(APPEND FLUTTER_PLUGIN_LIST - flowy_editor - flowy_infra_ui - flowy_sdk - url_launcher_windows - window_size -) - -set(PLUGIN_BUNDLED_LIBRARIES) - -foreach(plugin ${FLUTTER_PLUGIN_LIST}) - add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) - target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) - list(APPEND PLUGIN_BUNDLED_LIBRARIES $) - list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) -endforeach(plugin)