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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
mv flowy_logger to flowy_infra package
appflowy2c4560bd2b8e
diff --git a/app_flowy/lib/home/presentation/home_screen.dart b/app_flowy/lib/home/presentation/home_screen.dartindex 3d56b540e3..315f7de875 100644--- a/app_flowy/lib/home/presentation/home_screen.dart+++ b/app_flowy/lib/home/presentation/home_screen.dart@@ -1,14 +1,10 @@import 'package:app_flowy/home/application/home_bloc.dart';import 'package:app_flowy/home/application/watcher/home_watcher_bloc.dart';import 'package:app_flowy/home/domain/page_context.dart';-import 'package:app_flowy/home/presentation/widgets/blank_page.dart';-import 'package:app_flowy/home/presentation/widgets/edit_pannel/edit_pannel.dart';-import 'package:app_flowy/home/presentation/widgets/edit_pannel/pannel_animation.dart';-import 'package:app_flowy/home/presentation/widgets/home_top_bar.dart';-import 'package:app_flowy/home/presentation/widgets/menu/home_menu.dart';+import 'package:app_flowy/home/presentation/widgets/prelude.dart';import 'package:app_flowy/startup/startup.dart';-import 'package:flowy_infra_ui/styles/styled_container.dart';-import 'package:flowy_logger/flowy_logger.dart';+import 'package:flowy_infra/flowy_logger.dart';+import 'package:flowy_infra_ui/style_widget/styled_container.dart';import 'package:flowy_sdk/protobuf/user_detail.pb.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';diff --git a/app_flowy/lib/home/presentation/widgets/edit_pannel/edit_pannel.dart b/app_flowy/lib/home/presentation/widgets/edit_pannel/edit_pannel.dartindex 80d23afec4..0d561151fc 100644--- a/app_flowy/lib/home/presentation/widgets/edit_pannel/edit_pannel.dart+++ b/app_flowy/lib/home/presentation/widgets/edit_pannel/edit_pannel.dart@@ -2,8 +2,8 @@ import 'package:app_flowy/home/application/edit_pannel/edit_pannel_bloc.dart';import 'package:app_flowy/home/domain/edit_context.dart';import 'package:app_flowy/startup/startup.dart';import 'package:dartz/dartz.dart';-import 'package:flowy_infra_ui/styles/styled_bar_title.dart';-import 'package:flowy_infra_ui/styles/styled_close_button.dart';+import 'package:flowy_infra_ui/style_widget/styled_bar_title.dart';+import 'package:flowy_infra_ui/style_widget/styled_close_button.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import '../../home_sizes.dart';diff --git a/app_flowy/lib/home/presentation/widgets/prelude.dart b/app_flowy/lib/home/presentation/widgets/prelude.dartnew file mode 100644index 0000000000..e2f412551a--- /dev/null+++ b/app_flowy/lib/home/presentation/widgets/prelude.dart@@ -0,0 +1,5 @@+export './blank_page.dart';+export './edit_pannel/edit_pannel.dart';+export './edit_pannel/pannel_animation.dart';+export './home_top_bar.dart';+export './menu/home_menu.dart';diff --git a/app_flowy/lib/startup/tasks/rust_sdk_init_task.dart b/app_flowy/lib/startup/tasks/rust_sdk_init_task.dartindex 3f262875fc..4f57190761 100644--- a/app_flowy/lib/startup/tasks/rust_sdk_init_task.dart+++ b/app_flowy/lib/startup/tasks/rust_sdk_init_task.dart@@ -5,7 +5,7 @@ import 'package:bloc/bloc.dart';import 'package:path_provider/path_provider.dart';import 'package:flowy_sdk/flowy_sdk.dart';import 'package:flutter/material.dart';-import 'package:flowy_logger/flowy_logger.dart';+import 'package:flowy_infra/flowy_logger.dart';class RustSDKInitTask extends LaunchTask {@overridediff --git a/app_flowy/lib/welcome/presentation/welcome_screen.dart b/app_flowy/lib/welcome/presentation/welcome_screen.dartindex 3755d44db8..b4ef56cf4d 100644--- a/app_flowy/lib/welcome/presentation/welcome_screen.dart+++ b/app_flowy/lib/welcome/presentation/welcome_screen.dart@@ -3,7 +3,7 @@ import 'package:app_flowy/welcome/domain/auth_state.dart';import 'package:app_flowy/startup/startup.dart';import 'package:app_flowy/welcome/application/welcome_bloc.dart';import 'package:flowy_infra_ui/widget/route/animation.dart';-import 'package:flowy_logger/flowy_logger.dart';+import 'package:flowy_infra/flowy_logger.dart';import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import 'package:flowy_infra/time/prelude.dart';diff --git a/app_flowy/packages/flowy_logger/lib/flowy_logger.dart b/app_flowy/packages/flowy_infra/lib/flowy_logger.dartsimilarity index 100%rename from app_flowy/packages/flowy_logger/lib/flowy_logger.dartrename to app_flowy/packages/flowy_infra/lib/flowy_logger.dartdiff --git a/app_flowy/packages/flowy_infra/pubspec.lock b/app_flowy/packages/flowy_infra/pubspec.lockindex 1378f082da..c043549f48 100644--- a/app_flowy/packages/flowy_infra/pubspec.lock+++ b/app_flowy/packages/flowy_infra/pubspec.lock@@ -81,6 +81,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "1.0.1"+ logger:+ dependency: "direct main"+ description:+ name: logger+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.0.0"matcher:dependency: transitivedescription:@@ -150,14 +157,14 @@ packages:source: hostedversion: "0.4.1"textstyle_extensions:- dependency: "direct dev"+ dependency: "direct main"description:name: textstyle_extensionsurl: "https://pub.dartlang.org"source: hostedversion: "2.0.0-nullsafety"time:- dependency: "direct dev"+ dependency: "direct main"description:name: timeurl: "https://pub.dartlang.org"@@ -171,7 +178,7 @@ packages:source: hostedversion: "1.3.0"uuid:- dependency: "direct dev"+ dependency: "direct main"description:name: uuidurl: "https://pub.dartlang.org"diff --git a/app_flowy/packages/flowy_infra/pubspec.yaml b/app_flowy/packages/flowy_infra/pubspec.yamlindex 94184e67c5..9504a481f7 100644--- a/app_flowy/packages/flowy_infra/pubspec.yaml+++ b/app_flowy/packages/flowy_infra/pubspec.yaml@@ -10,14 +10,15 @@ environment:dependencies:flutter:sdk: flutter+ time: '>=2.0.0'+ uuid: ">=2.2.2"+ textstyle_extensions: '2.0.0-nullsafety'+ logger: ^1.0.0dev_dependencies:flutter_test:sdk: flutterflutter_lints: ^1.0.0- time: '>=2.0.0'- uuid: ">=2.2.2"- textstyle_extensions: '2.0.0-nullsafety'# For information on the generic Dart part of this file, see the# following page: https://dart.dev/tools/pub/pubspecdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_list.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_list.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_list.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_list.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scroll_bar.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scroll_bar.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scroll_bar.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scroll_bar.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scrollview.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/scrolling/styled_scrollview.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/scrolling/styled_scrollview.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/styled_bar_title.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_bar_title.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/styled_bar_title.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_bar_title.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/styled_close_button.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_close_button.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/styled_close_button.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_close_button.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/styled_container.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_container.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/styled_container.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_container.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/styled_image_icon.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_image_icon.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/styled_image_icon.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_image_icon.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/styles/styled_text_input.dart b/app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_text_input.dartsimilarity index 100%rename from app_flowy/packages/flowy_infra_ui/lib/styles/styled_text_input.dartrename to app_flowy/packages/flowy_infra_ui/lib/style_widget/styled_text_input.dartdiff --git a/app_flowy/packages/flowy_infra_ui/lib/widget/buttons/secondary_button.dart b/app_flowy/packages/flowy_infra_ui/lib/widget/buttons/secondary_button.dartindex 1ff76d7aa1..157f612686 100644--- a/app_flowy/packages/flowy_infra_ui/lib/widget/buttons/secondary_button.dart+++ b/app_flowy/packages/flowy_infra_ui/lib/widget/buttons/secondary_button.dart@@ -1,4 +1,4 @@-import 'package:flowy_infra_ui/styles/styled_image_icon.dart';+import 'package:flowy_infra_ui/style_widget/styled_image_icon.dart';import 'package:flutter/material.dart';import 'package:provider/provider.dart';// ignore: import_of_legacy_library_into_null_safediff --git a/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart b/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dartindex 5a69f80b26..a5bdd5a43d 100644--- a/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart+++ b/app_flowy/packages/flowy_infra_ui/lib/widget/dialog/styled_dialogs.dart@@ -1,4 +1,4 @@-import 'package:flowy_infra_ui/styles/scrolling/styled_list.dart';+import 'package:flowy_infra_ui/style_widget/scrolling/styled_list.dart';import 'package:flowy_infra/size.dart';import 'package:flowy_infra/text_style.dart';import 'package:flowy_infra/theme.dart';diff --git a/app_flowy/packages/flowy_logger/.gitignore b/app_flowy/packages/flowy_logger/.gitignoredeleted file mode 100644index 1985397a2c..0000000000--- a/app_flowy/packages/flowy_logger/.gitignore+++ /dev/null@@ -1,74 +0,0 @@-# Miscellaneous-*.class-*.log-*.pyc-*.swp-.DS_Store-.atom/-.buildlog/-.history-.svn/--# IntelliJ related-*.iml-*.ipr-*.iws-.idea/--# The .vscode folder contains launch configuration and tasks you configure in-# VS Code which you may wish to be included in version control, so this line-# is commented out by default.-#.vscode/--# Flutter/Dart/Pub related-**/doc/api/-.dart_tool/-.flutter-plugins-.flutter-plugins-dependencies-.packages-.pub-cache/-.pub/-build/--# Android related-**/android/**/gradle-wrapper.jar-**/android/.gradle-**/android/captures/-**/android/gradlew-**/android/gradlew.bat-**/android/local.properties-**/android/**/GeneratedPluginRegistrant.java--# iOS/XCode related-**/ios/**/*.mode1v3-**/ios/**/*.mode2v3-**/ios/**/*.moved-aside-**/ios/**/*.pbxuser-**/ios/**/*.perspectivev3-**/ios/**/*sync/-**/ios/**/.sconsign.dblite-**/ios/**/.tags*-**/ios/**/.vagrant/-**/ios/**/DerivedData/-**/ios/**/Icon?-**/ios/**/Pods/-**/ios/**/.symlinks/-**/ios/**/profile-**/ios/**/xcuserdata-**/ios/.generated/-**/ios/Flutter/App.framework-**/ios/Flutter/Flutter.framework-**/ios/Flutter/Flutter.podspec-**/ios/Flutter/Generated.xcconfig-**/ios/Flutter/app.flx-**/ios/Flutter/app.zip-**/ios/Flutter/flutter_assets/-**/ios/Flutter/flutter_export_environment.sh-**/ios/ServiceDefinitions.json-**/ios/Runner/GeneratedPluginRegistrant.*--# Exceptions to above rules.-!**/ios/**/default.mode1v3-!**/ios/**/default.mode2v3-!**/ios/**/default.pbxuser-!**/ios/**/default.perspectivev3diff --git a/app_flowy/packages/flowy_logger/.metadata b/app_flowy/packages/flowy_logger/.metadatadeleted file mode 100644index 13a1909853..0000000000--- a/app_flowy/packages/flowy_logger/.metadata+++ /dev/null@@ -1,10 +0,0 @@-# This file tracks properties of this Flutter project.-# Used by Flutter tool to assess capabilities and perform upgrades etc.-#-# This file should be version controlled and should not be manually edited.--version:- revision: 63062a64432cce03315d6b5196fda7912866eb37- channel: dev--project_type: packagediff --git a/app_flowy/packages/flowy_logger/CHANGELOG.md b/app_flowy/packages/flowy_logger/CHANGELOG.mddeleted file mode 100644index ac071598e5..0000000000--- a/app_flowy/packages/flowy_logger/CHANGELOG.md+++ /dev/null@@ -1,3 +0,0 @@-## [0.0.1] - TODO: Add release date.--* TODO: Describe initial release.diff --git a/app_flowy/packages/flowy_logger/LICENSE b/app_flowy/packages/flowy_logger/LICENSEdeleted file mode 100644index ba75c69f7f..0000000000--- a/app_flowy/packages/flowy_logger/LICENSE+++ /dev/null@@ -1 +0,0 @@-TODO: Add your license here.diff --git a/app_flowy/packages/flowy_logger/README.md b/app_flowy/packages/flowy_logger/README.mddeleted file mode 100644index 6733aedc98..0000000000--- a/app_flowy/packages/flowy_logger/README.md+++ /dev/null@@ -1,14 +0,0 @@-# flowy_logger--A new Flutter package project.--## Getting Started--This project is a starting point for a Dart-[package](https://flutter.dev/developing-packages/),-a library module containing code that can be shared easily across-multiple Flutter or Dart projects.--For help getting started with Flutter, view our-[online documentation](https://flutter.dev/docs), which offers tutorials,-samples, guidance on mobile development, and a full API reference.diff --git a/app_flowy/packages/flowy_logger/pubspec.lock b/app_flowy/packages/flowy_logger/pubspec.lockdeleted file mode 100644index de8b5efbcd..0000000000--- a/app_flowy/packages/flowy_logger/pubspec.lock+++ /dev/null@@ -1,168 +0,0 @@-# Generated by pub-# See https://dart.dev/tools/pub/glossary#lockfile-packages:- async:- dependency: transitive- description:- name: async- url: "https://pub.dartlang.org"- source: hosted- version: "2.7.0"- boolean_selector:- dependency: transitive- description:- name: boolean_selector- url: "https://pub.dartlang.org"- source: hosted- version: "2.1.0"- characters:- dependency: transitive- description:- name: characters- url: "https://pub.dartlang.org"- source: hosted- version: "1.1.0"- charcode:- dependency: transitive- description:- name: charcode- url: "https://pub.dartlang.org"- source: hosted- version: "1.3.1"- clock:- dependency: transitive- description:- name: clock- url: "https://pub.dartlang.org"- source: hosted- version: "1.1.0"- collection:- dependency: transitive- description:- name: collection- url: "https://pub.dartlang.org"- source: hosted- version: "1.15.0"- fake_async:- dependency: transitive- description:- name: fake_async- url: "https://pub.dartlang.org"- source: hosted- version: "1.2.0"- flutter:- dependency: "direct main"- description: flutter- source: sdk- version: "0.0.0"- flutter_lints:- dependency: "direct dev"- description:- name: flutter_lints- url: "https://pub.dartlang.org"- source: hosted- version: "1.0.3"- flutter_test:- dependency: "direct dev"- description: flutter- source: sdk- version: "0.0.0"- lints:- dependency: transitive- description:- name: lints- url: "https://pub.dartlang.org"- source: hosted- version: "1.0.1"- logger:- dependency: "direct main"- description:- name: logger- url: "https://pub.dartlang.org"- source: hosted- version: "1.0.0"- matcher:- dependency: transitive- description:- name: matcher- url: "https://pub.dartlang.org"- source: hosted- version: "0.12.10"- meta:- dependency: transitive- description:- name: meta- url: "https://pub.dartlang.org"- source: hosted- version: "1.4.0"- path:- dependency: transitive- description:- name: path- url: "https://pub.dartlang.org"- source: hosted- version: "1.8.0"- sky_engine:- dependency: transitive- description: flutter- source: sdk- version: "0.0.99"- source_span:- dependency: transitive- description:- name: source_span- url: "https://pub.dartlang.org"- source: hosted- version: "1.8.1"- stack_trace:- dependency: transitive- description:- name: stack_trace- url: "https://pub.dartlang.org"- source: hosted- version: "1.10.0"- stream_channel:- dependency: transitive- description:- name: stream_channel- url: "https://pub.dartlang.org"- source: hosted- version: "2.1.0"- string_scanner:- dependency: transitive- description:- name: string_scanner- url: "https://pub.dartlang.org"- source: hosted- version: "1.1.0"- term_glyph:- dependency: transitive- description:- name: term_glyph- url: "https://pub.dartlang.org"- source: hosted- version: "1.2.0"- test_api:- dependency: transitive- description:- name: test_api- url: "https://pub.dartlang.org"- source: hosted- version: "0.4.1"- typed_data:- dependency: transitive- description:- name: typed_data- url: "https://pub.dartlang.org"- source: hosted- version: "1.3.0"- vector_math:- dependency: transitive- description:- name: vector_math- url: "https://pub.dartlang.org"- source: hosted- version: "2.1.0"-sdks:- dart: ">=2.12.0 <3.0.0"- flutter: ">=1.17.0"diff --git a/app_flowy/packages/flowy_logger/pubspec.yaml b/app_flowy/packages/flowy_logger/pubspec.yamldeleted file mode 100644index c0840e1b4a..0000000000--- a/app_flowy/packages/flowy_logger/pubspec.yaml+++ /dev/null@@ -1,55 +0,0 @@-name: flowy_logger-description: A new Flutter package project.-version: 0.0.1-homepage:--environment:- sdk: ">=2.12.0-0 <3.0.0"- flutter: ">=1.17.0"--dependencies:- flutter:- sdk: flutter- logger: ^1.0.0--dev_dependencies:- flutter_test:- sdk: flutter- flutter_lints: ^1.0.0--# For information on the generic Dart part of this file, see the-# following page: https://dart.dev/tools/pub/pubspec--# The following section is specific to Flutter.-flutter:-- # To add assets to your package, add an assets section, like this:- # assets:- # - images/a_dot_burr.jpeg- # - images/a_dot_ham.jpeg- #- # For details regarding assets in packages, see- # https://flutter.dev/assets-and-images/#from-packages- #- # An image asset can refer to one or more resolution-specific "variants", see- # https://flutter.dev/assets-and-images/#resolution-aware.-- # To add custom fonts to your package, add a fonts section here,- # in this "flutter" section. Each entry in this list should have a- # "family" key with the font family name, and a "fonts" key with a- # list giving the asset and other descriptors for the font. For- # example:- # fonts:- # - family: Schyler- # fonts:- # - asset: fonts/Schyler-Regular.ttf- # - asset: fonts/Schyler-Italic.ttf- # style: italic- # - family: Trajan Pro- # fonts:- # - asset: fonts/TrajanPro.ttf- # - asset: fonts/TrajanPro_Bold.ttf- # weight: 700- #- # For details regarding fonts in packages, see- # https://flutter.dev/custom-fonts/#from-packagesdiff --git a/app_flowy/packages/flowy_logger/test/flowy_logger_test.dart b/app_flowy/packages/flowy_logger/test/flowy_logger_test.dartdeleted file mode 100644index ab73b3a234..0000000000--- a/app_flowy/packages/flowy_logger/test/flowy_logger_test.dart+++ /dev/null@@ -1 +0,0 @@-void main() {}diff --git a/app_flowy/packages/flowy_sdk/example/pubspec.lock b/app_flowy/packages/flowy_sdk/example/pubspec.lockindex da5884ef8e..f4b55f1d50 100644--- a/app_flowy/packages/flowy_sdk/example/pubspec.lock+++ b/app_flowy/packages/flowy_sdk/example/pubspec.lock@@ -99,10 +99,10 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "1.0.0"- flowy_logger:+ flowy_infra:dependency: transitivedescription:- path: "../../flowy_logger"+ path: "../../flowy_infra"relative: truesource: pathversion: "0.0.1"@@ -276,6 +276,20 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "0.4.1"+ textstyle_extensions:+ dependency: transitive+ description:+ name: textstyle_extensions+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.0-nullsafety"+ time:+ dependency: transitive+ description:+ name: time+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.0"typed_data:dependency: transitivedescription:@@ -283,6 +297,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "1.3.0"+ uuid:+ dependency: transitive+ description:+ name: uuid+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.0.4"vector_math:dependency: transitivedescription:diff --git a/app_flowy/packages/flowy_sdk/lib/dispatch/dispatch.dart b/app_flowy/packages/flowy_sdk/lib/dispatch/dispatch.dartindex 0e59eeaa08..ac816efd5c 100644--- a/app_flowy/packages/flowy_sdk/lib/dispatch/dispatch.dart+++ b/app_flowy/packages/flowy_sdk/lib/dispatch/dispatch.dart@@ -1,6 +1,6 @@import 'dart:ffi';import 'package:dartz/dartz.dart';-import 'package:flowy_logger/flowy_logger.dart';+import 'package:flowy_infra/flowy_logger.dart';import 'package:flowy_sdk/protobuf/ffi_response.pb.dart';import 'package:isolates/isolates.dart';import 'package:isolates/ports.dart';@@ -9,7 +9,7 @@ import 'package:ffi/ffi.dart';import 'package:flutter/services.dart';import 'dart:async';import 'dart:typed_data';-import 'package:flowy_sdk/ffi/ffi.dart' as ffi;+import 'package:flowy_sdk/ffi.dart' as ffi;import 'package:flowy_sdk/protobuf.dart';import 'package:protobuf/protobuf.dart';diff --git a/app_flowy/packages/flowy_sdk/lib/ffi/ffi.dart b/app_flowy/packages/flowy_sdk/lib/ffi.dartsimilarity index 100%rename from app_flowy/packages/flowy_sdk/lib/ffi/ffi.dartrename to app_flowy/packages/flowy_sdk/lib/ffi.dartdiff --git a/app_flowy/packages/flowy_sdk/lib/flowy_sdk.dart b/app_flowy/packages/flowy_sdk/lib/flowy_sdk.dartindex 4cad680d57..5ea973daa9 100644--- a/app_flowy/packages/flowy_sdk/lib/flowy_sdk.dart+++ b/app_flowy/packages/flowy_sdk/lib/flowy_sdk.dart@@ -1,11 +1,9 @@export 'package:async/async.dart';-import 'dart:io';import 'dart:async';-// import 'package:dartz/dartz.dart';import 'package:flutter/services.dart';import 'dart:ffi';-import 'ffi/ffi.dart' as ffi;+import 'ffi.dart' as ffi;import 'package:ffi/ffi.dart';class FlowySDK {diff --git a/app_flowy/packages/flowy_sdk/pubspec.lock b/app_flowy/packages/flowy_sdk/pubspec.lockindex d4599cd5ba..0293ed6db5 100644--- a/app_flowy/packages/flowy_sdk/pubspec.lock+++ b/app_flowy/packages/flowy_sdk/pubspec.lock@@ -197,10 +197,10 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "1.0.0"- flowy_logger:+ flowy_infra:dependency: "direct main"description:- path: "../flowy_logger"+ path: "../flowy_infra"relative: truesource: pathversion: "0.0.1"@@ -443,6 +443,20 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "0.4.1"+ textstyle_extensions:+ dependency: transitive+ description:+ name: textstyle_extensions+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.0-nullsafety"+ time:+ dependency: transitive+ description:+ name: time+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.0"timing:dependency: transitivedescription:@@ -457,6 +471,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "1.3.0"+ uuid:+ dependency: transitive+ description:+ name: uuid+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.0.4"vector_math:dependency: transitivedescription:diff --git a/app_flowy/packages/flowy_sdk/pubspec.yaml b/app_flowy/packages/flowy_sdk/pubspec.yamlindex ef7bcbc6c7..262a7cc987 100644--- a/app_flowy/packages/flowy_sdk/pubspec.yaml+++ b/app_flowy/packages/flowy_sdk/pubspec.yaml@@ -14,10 +14,10 @@ dependencies:ffi: ^1.0.0isolates: ^3.0.3+8protobuf: "2.0.0"- flowy_logger:- path: ../flowy_loggerdartz: '0.10.0-nullsafety.2'freezed_annotation: ^0.14.1+ flowy_infra:+ path: ../flowy_infradev_dependencies:flutter_test:diff --git a/app_flowy/pubspec.lock b/app_flowy/pubspec.lockindex 71895ce829..f8627b337e 100644--- a/app_flowy/pubspec.lock+++ b/app_flowy/pubspec.lock@@ -253,13 +253,6 @@ packages:relative: truesource: pathversion: "0.0.1"- flowy_logger:- dependency: "direct main"- description:- path: "packages/flowy_logger"- relative: true- source: path- version: "0.0.1"flowy_sdk:dependency: "direct main"description:@@ -779,6 +772,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "2.0.0"+ uuid:+ dependency: transitive+ description:+ name: uuid+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.0.4"vector_math:dependency: transitivedescription:diff --git a/app_flowy/pubspec.yaml b/app_flowy/pubspec.yamlindex 34fceac4ae..1b89074a0a 100644--- a/app_flowy/pubspec.yaml+++ b/app_flowy/pubspec.yaml@@ -33,8 +33,6 @@ dependencies:path: packages/flowy_sdkflowy_editor:path: packages/flowy_editor- flowy_logger:- path: packages/flowy_loggerflowy_infra_ui:path: packages/flowy_infra_uiflowy_infra:diff --git a/scripts/flowy-tool/src/proto/proto_gen.rs b/scripts/flowy-tool/src/proto/proto_gen.rsindex 9b5b460e67..bb8a0f6c0b 100644--- a/scripts/flowy-tool/src/proto/proto_gen.rs+++ b/scripts/flowy-tool/src/proto/proto_gen.rs@@ -1,6 +1,7 @@use crate::proto::ast::*;use crate::proto::proto_info::*;use crate::{proto::template::*, util::*};+use std::path::Path;use std::{fs::OpenOptions, io::Write};pub struct ProtoGen {@@ -131,9 +132,6 @@ fn run_rust_protoc(crate_infos: &Vec<CrateProtoInfo>) {}}-use std::path::Path;-use std::process::Command;-fn run_flutter_protoc(crate_infos: &Vec<CrateProtoInfo>, package_info: &FlutterProtobufInfo) {let model_dir = package_info.model_dir();let removed_dir = format!("{}/", model_dir);