From a2e9d63f63d0aebdb354a366983d16c01c7cfd74 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Thu, 4 May 2023 20:05:23 +0800 Subject: [PATCH] chore: bump version 0.1.4 (#2455) --- CHANGELOG.md | 16 + frontend/Makefile.toml | 2 +- .../macos/Runner.xcodeproj/project.pbxproj | 1 + frontend/appflowy_flutter/pubspec.lock | 4 +- frontend/appflowy_flutter/pubspec.yaml | 2 +- .../flowy-document/src/editor/READ_ME.json | 420 +----------------- .../flutter_release_build/build_flowy.dart | 9 +- .../scripts/flutter_release_build/tool.dart | 7 +- 8 files changed, 34 insertions(+), 427 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcacaed6c9..eb37c462e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Release Notes +## Version 0.1.4 - 04/05/2023 + +### New features +- Use AppFlowy’s calendar views to plan and manage tasks and deadlines. +- Writing can be improved with the help of OpenAI. + +## Version 0.1.3 - 24/04/2023 + +### New features +- Launch the official Dark Mode. +- Customize the font color and highlight color by setting a hex color value and an opacity level. + +### Bug Fixes +- Fix: the slash menu can be triggered by all other keyboards than English. +- Fix: convert the single asterisk to italic text and the double asterisks to bold text. + ## Version 0.1.2 - 03/28/2023 ### Bug Fixes diff --git a/frontend/Makefile.toml b/frontend/Makefile.toml index 729473bbba..bd1de09b06 100644 --- a/frontend/Makefile.toml +++ b/frontend/Makefile.toml @@ -23,7 +23,7 @@ CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true CARGO_MAKE_CRATE_FS_NAME = "dart_ffi" CARGO_MAKE_CRATE_NAME = "dart-ffi" LIB_NAME = "dart_ffi" -CURRENT_APP_VERSION = "0.1.3" +CURRENT_APP_VERSION = "0.1.4" FLUTTER_DESKTOP_FEATURES = "dart,rev-sqlite" PRODUCT_NAME = "AppFlowy" # CRATE_TYPE: https://doc.rust-lang.org/reference/linkage.html diff --git a/frontend/appflowy_flutter/macos/Runner.xcodeproj/project.pbxproj b/frontend/appflowy_flutter/macos/Runner.xcodeproj/project.pbxproj index 008928b9c9..1b2a5b2d16 100644 --- a/frontend/appflowy_flutter/macos/Runner.xcodeproj/project.pbxproj +++ b/frontend/appflowy_flutter/macos/Runner.xcodeproj/project.pbxproj @@ -588,6 +588,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.appflowy.macos; PRODUCT_NAME = AppFlowy; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lock index aa31fb15fe..2f16b24274 100644 --- a/frontend/appflowy_flutter/pubspec.lock +++ b/frontend/appflowy_flutter/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: "direct main" description: name: appflowy_editor - sha256: a1dbca3d7d33f4669f1d44bfa1e06b6646f46726c219921b8a59d9ee22bf252d + sha256: "5371e8aa78e6a5e5b5c958b1450958689755b5fd0e9862312ca423f7c0da9fcc" url: "https://pub.dev" source: hosted - version: "0.1.9" + version: "0.1.10" appflowy_popover: dependency: "direct main" description: diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yaml index f12622f15e..0c8ed5f8ee 100644 --- a/frontend/appflowy_flutter/pubspec.yaml +++ b/frontend/appflowy_flutter/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.1.2 +version: 0.1.4 environment: sdk: ">=2.19.0 <3.0.0" diff --git a/frontend/rust-lib/flowy-document/src/editor/READ_ME.json b/frontend/rust-lib/flowy-document/src/editor/READ_ME.json index ee118fd296..a33c4b4688 100644 --- a/frontend/rust-lib/flowy-document/src/editor/READ_ME.json +++ b/frontend/rust-lib/flowy-document/src/editor/READ_ME.json @@ -1,419 +1 @@ -{ - "document": { - "type": "editor", - "children": [ - { - "type": "text", - "attributes": { - "subtype": "heading", - "heading": "h1" - }, - "delta": [ - { - "insert": "🌟 Welcome to AppFlowy!" - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "heading", - "heading": "h2" - }, - "delta": [ - { - "insert": "Here are the basics" - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "checkbox", - "checkbox": null - }, - "delta": [ - { - "insert": "Click anywhere and just start typing." - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "checkbox", - "checkbox": null - }, - "delta": [ - { - "insert": "Highlight", - "attributes": { - "backgroundColor": "0x6000BCF0" - } - }, - { - "insert": " any text, and use the editing menu to " - }, - { - "insert": "style", - "attributes": { - "italic": true - } - }, - { - "insert": " " - }, - { - "insert": "your", - "attributes": { - "bold": true - } - }, - { - "insert": " " - }, - { - "insert": "writing", - "attributes": { - "underline": true - } - }, - { - "insert": " " - }, - { - "insert": "however", - "attributes": { - "code": true - } - }, - { - "insert": " you " - }, - { - "insert": "like.", - "attributes": { - "strikethrough": true - } - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "checkbox", - "checkbox": null - }, - "delta": [ - { - "insert": "As soon as you type " - }, - { - "insert": "/", - "attributes": { - "code": true - } - }, - { - "insert": " a menu will pop up. Select different types of content blocks you can add." - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "checkbox", - "checkbox": null - }, - "delta": [ - { - "insert": "Type " - }, - { - "insert": "/", - "attributes": { - "code": true - } - }, - { - "insert": " followed by " - }, - { - "insert": "/bullet", - "attributes": { - "code": true - } - }, - { - "insert": " or " - }, - { - "insert": "/c.", - "attributes": { - "code": true - } - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "checkbox", - "checkbox": true - }, - "delta": [ - { - "insert": "Click " - }, - { - "insert": "+ New Page ", - "attributes": { - "code": true - } - }, - { - "insert": "button at the bottom of your sidebar to add a new page." - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "checkbox", - "checkbox": null - }, - "delta": [ - { - "insert": "Click " - }, - { - "insert": "+", - "attributes": { - "code": true - } - }, - { - "insert": " next to any page title in the sidebar to quickly add a new subpage." - } - ] - }, - { - "type": "text", - "attributes": { - "checkbox": null - }, - "delta": [] - }, - { - "type": "text", - "attributes": { - "subtype": "heading", - "checkbox": null, - "heading": "h2" - }, - "delta": [ - { - "insert": "Markdown" - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "number-list", - "number": 1, - "heading": null - }, - "delta": [ - { - "insert": "Heading " - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "number-list", - "number": 2 - }, - "delta": [ - { - "insert": "bold text", - "attributes": { - "bold": true, - "defaultFormatting": true - } - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "number-list", - "number": 3 - }, - "delta": [ - { - "insert": "italicized text", - "attributes": { - "italic": true - } - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "number-list", - "number": 4, - "number-list": null - }, - "delta": [ - { - "insert": "Ordered List" - } - ] - }, - { - "type": "text", - "attributes": { - "number": 5, - "subtype": "number-list" - }, - "delta": [ - { - "insert": "code", - "attributes": { - "code": true - } - } - ] - }, - { - "type": "text", - "attributes": { - "number": 6, - "subtype": "number-list" - }, - "delta": [ - { - "insert": "Strikethrough", - "attributes": { - "strikethrough": true - } - }, - { - "retain": 1, - "attributes": { - "strikethrough": true - } - } - ] - }, - { - "type": "text", - "attributes": { - "checkbox": null - }, - "delta": [] - }, - { - "type": "text", - "attributes": { - "subtype": "heading", - "checkbox": null, - "heading": "h2" - }, - "delta": [ - { - "insert": "Have a question?" - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "quote" - }, - "delta": [ - { - "insert": "Click " - }, - { - "insert": "?", - "attributes": { - "code": true - } - }, - { - "insert": " at the bottom right for help and support." - } - ] - }, - { - "type": "text", - "delta": [] - }, - { - "type": "text", - "attributes": { - "subtype": "heading", - "heading": "h2" - }, - "delta": [ - { - "insert": "Like AppFlowy? Follow us:" - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "bulleted-list", - "quote": null - }, - "delta": [ - { - "insert": "GitHub", - "attributes": { - "href": "https://github.com/AppFlowy-IO/AppFlowy" - } - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "bulleted-list" - }, - "delta": [ - { - "insert": "Twitter: @appflowy" - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": "bulleted-list" - }, - "delta": [ - { - "insert": "Newsletter", - "attributes": { - "href": "https://blog-appflowy.ghost.io/" - } - } - ] - }, - { - "type": "text", - "attributes": { - "subtype": null, - "heading": null - }, - "delta": [] - } - ] - } -} +{"document":{"type":"editor","children":[{"type":"cover"},{"type":"text","attributes":{"subtype":"heading","heading":"h1"},"delta":[{"insert":"Welcome to AppFlowy!"}]},{"type":"text","attributes":{"subtype":"heading","heading":"h2"},"delta":[{"insert":"Here are the basics"}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"Click anywhere and just start typing."}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":false},"delta":[{"insert":"Highlight ","attributes":{"backgroundColor":"0x4dffeb3b"}},{"insert":"any text, and use the editing menu to "},{"insert":"style","attributes":{"italic":true}},{"insert":" "},{"insert":"your","attributes":{"bold":true}},{"insert":" "},{"insert":"writing","attributes":{"underline":true}},{"insert":" "},{"insert":"however","attributes":{"code":true}},{"insert":" you "},{"insert":"like.","attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"As soon as you type "},{"insert":"/","attributes":{"code":true,"color":"0xff00b5ff"}},{"insert":" a menu will pop up. Select "},{"insert":"different types","attributes":{"backgroundColor":"0x4d9c27b0"}},{"insert":" of content blocks you can add."}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"Type "},{"insert":"/","attributes":{"code":true}},{"insert":" followed by "},{"insert":"/bullet","attributes":{"code":true}},{"insert":" or "},{"insert":"/num","attributes":{"code":true}},{"insert":" to create a list.","attributes":{"code":false}}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":true},"delta":[{"insert":"Click "},{"insert":"+ New Page ","attributes":{"code":true}},{"insert":"button at the bottom of your sidebar to add a new page."}]},{"type":"text","attributes":{"subtype":"checkbox","checkbox":null},"delta":[{"insert":"Click "},{"insert":"+","attributes":{"code":true}},{"insert":" next to any page title in the sidebar to "},{"insert":"quickly","attributes":{"color":"0xff8427e0"}},{"insert":" add a new subpage, "},{"insert":"Document","attributes":{"code":true}},{"insert":", ","attributes":{"code":false}},{"insert":"Grid","attributes":{"code":true}},{"insert":", or ","attributes":{"code":false}},{"insert":"Kanban Board","attributes":{"code":true}},{"insert":".","attributes":{"code":false}}]},{"type":"text","delta":[]},{"type":"divider"},{"type":"text","attributes":{"checkbox":null},"delta":[]},{"type":"text","attributes":{"subtype":"heading","checkbox":null,"heading":"h2"},"delta":[{"insert":"Keyboard shortcuts, markdown, and code block"}]},{"type":"text","attributes":{"subtype":"number-list","number":1,"heading":null},"delta":[{"insert":"Keyboard shortcuts "},{"insert":"guide","attributes":{"href":"https://appflowy.gitbook.io/docs/essential-documentation/shortcuts"}},{"retain":1,"attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"subtype":"number-list","number":2,"heading":null},"delta":[{"insert":"Markdown "},{"insert":"reference","attributes":{"href":"https://appflowy.gitbook.io/docs/essential-documentation/markdown"}},{"retain":1,"attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"number":3,"subtype":"number-list"},"delta":[{"insert":"Type "},{"insert":"/code","attributes":{"code":true}},{"insert":" to insert a code block","attributes":{"code":false}}]},{"type":"text","attributes":{"subtype":"code_block","number":3,"heading":null,"number-list":null,"theme":"vs","language":"rust"},"delta":[{"insert":"// This is the main function.\nfn main() {\n // Print text to the console.\n println!(\"Hello World!\");\n}"},{"retain":1,"attributes":{"strikethrough":true}}]},{"type":"text","attributes":{"checkbox":null},"delta":[]},{"type":"text","attributes":{"subtype":"heading","checkbox":null,"heading":"h2"},"delta":[{"insert":"Have a question❓"}]},{"type":"text","attributes":{"subtype":"quote"},"delta":[{"insert":"Click "},{"insert":"?","attributes":{"code":true}},{"insert":" at the bottom right for help and support."}]},{"type":"text","delta":[]},{"type":"callout","children":[{"type":"text","delta":[]},{"type":"text","attributes":{"subtype":"heading","heading":"h2"},"delta":[{"insert":"Like AppFlowy? Follow us:"}]},{"type":"text","attributes":{"subtype":"bulleted-list"},"delta":[{"insert":"GitHub","attributes":{"href":"https://github.com/AppFlowy-IO/AppFlowy"}}]},{"type":"text","attributes":{"subtype":"bulleted-list"},"delta":[{"insert":"Twitter","attributes":{"href":"https://twitter.com/appflowy"}},{"insert":": @appflowy"}]},{"type":"text","attributes":{"subtype":"bulleted-list"},"delta":[{"insert":"Newsletter","attributes":{"href":"https://blog-appflowy.ghost.io/"}}]}],"attributes":{"emoji":"🥰"}},{"type":"text","delta":[]},{"type":"text","attributes":{"subtype":null,"heading":null},"delta":[]},{"type":"text","attributes":{"subtype":null,"heading":null},"delta":[]}]}} \ No newline at end of file diff --git a/frontend/scripts/flutter_release_build/build_flowy.dart b/frontend/scripts/flutter_release_build/build_flowy.dart index a7c2a9ada4..5094745e0b 100644 --- a/frontend/scripts/flutter_release_build/build_flowy.dart +++ b/frontend/scripts/flutter_release_build/build_flowy.dart @@ -23,6 +23,11 @@ args[1]: The appflowy version to be built (github ref_name). assert(await repositoryRoot.exists(), '$repositoryRoot is an invalid directory. Please try again with a valid directory.\n\n$help'); final appVersion = args[1]; - await _BuildTool(repositoryRoot: repositoryRoot.path, appVersion: appVersion) - .run(); + String? arch; + if (args.length > 2) arch = args[2]; + await _BuildTool( + repositoryRoot: repositoryRoot.path, + appVersion: appVersion, + arch: arch, + ).run(); } diff --git a/frontend/scripts/flutter_release_build/tool.dart b/frontend/scripts/flutter_release_build/tool.dart index 36a0a2f177..533850c77d 100644 --- a/frontend/scripts/flutter_release_build/tool.dart +++ b/frontend/scripts/flutter_release_build/tool.dart @@ -14,10 +14,12 @@ class _BuildTool { const _BuildTool({ required this.repositoryRoot, required this.appVersion, + this.arch, }); final String repositoryRoot; final String appVersion; + final String? arch; String get projectRoot => [repositoryRoot, 'appflowy_flutter'].join(Platform.pathSeparator); @@ -30,8 +32,9 @@ class _BuildTool { Future get _commandForOS async { // Check the operating system and CPU architecture - var os = Platform.operatingSystem; - var arch = Platform.isMacOS ? await _architecture : Platform.localHostname; + final os = Platform.operatingSystem; + final arch = this.arch ?? + (Platform.isMacOS ? await _architecture : Platform.localHostname); // Determine the appropriate command based on the OS and architecture if (os == 'windows') {