瀏覽代碼

[flutter]: switch to stable channel

appflowy 3 年之前
父節點
當前提交
d283d29202

+ 2 - 2
.github/workflows/ci.yaml

@@ -23,7 +23,7 @@ jobs:
         run: |
           echo "$(pwd)/bin" >> $GITHUB_PATH
           export PATH="$PATH:$(pwd)/bin"
-          flutter channel dev
+          flutter channel stable
           flutter config --enable-macos-desktop
           flutter doctor
       - name: Deps
@@ -63,7 +63,7 @@ jobs:
         run: |
           echo "$(pwd)/bin" >> $GITHUB_PATH
           export PATH="$PATH:$(pwd)/bin"
-          flutter channel dev
+          flutter channel stable
           flutter config --enable-linux-desktop
           flutter doctor
       - name: Deps

+ 2 - 2
README.md

@@ -86,10 +86,10 @@ cargo make install_targets
 
 **Step 3:**
 
-Follow the instructions [here](https://flutter.dev/docs/get-started/install) to install Flutter. As AppFlowy uses the `dev` channel, you need to switch the channel. Just type:
+Follow the instructions [here](https://flutter.dev/docs/get-started/install) to install Flutter. As AppFlowy uses the `stable` channel, you need to switch the channel. Just type:
 
 ```shell
-flutter channel dev
+flutter channel stable
 ```
 
 **Step 4:**

+ 1 - 1
doc/BUILD_ON_LINUX.md

@@ -48,7 +48,7 @@ git clone https://github.com/flutter/flutter.git
 cd flutter
 echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile
 export PATH="$PATH:`pwd`/bin"
-flutter channel dev
+flutter channel stable
 flutter config --enable-linux-desktop
 ```
 5. Fix problem reported by flutter doctor

+ 1 - 1
doc/BUILD_ON_WINDOWS.md

@@ -25,7 +25,7 @@ Note:
 2. Install vcpkg according to https://github.com/microsoft/vcpkg#quick-start-windows. Make sure to add vcpkg installation folder to PATH env var.
 3. Install flutter according to https://docs.flutter.dev/get-started/install/windows
 ```shell
-flutter channel dev
+flutter channel stable
 flutter doctor
 ```
 4. Install rust

+ 2 - 0
frontend/app_flowy/macos/Flutter/GeneratedPluginRegistrant.swift

@@ -10,6 +10,7 @@ import flowy_infra_ui
 import flowy_sdk
 import package_info_plus_macos
 import path_provider_macos
+import shared_preferences_macos
 import url_launcher_macos
 import window_size
 
@@ -19,6 +20,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
   FlowySdkPlugin.register(with: registry.registrar(forPlugin: "FlowySdkPlugin"))
   FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
   PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
+  SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
   UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
   WindowSizePlugin.register(with: registry.registrar(forPlugin: "WindowSizePlugin"))
 }

+ 1 - 1
frontend/app_flowy/pubspec.lock

@@ -1126,7 +1126,7 @@ packages:
       name: vector_math
       url: "https://pub.dartlang.org"
     source: hosted
-    version: "2.1.0"
+    version: "2.1.1"
   video_player:
     dependency: transitive
     description:

+ 1 - 1
frontend/scripts/makefile/env.toml

@@ -159,7 +159,7 @@ script = """
 ret = which flutter
 if is_empty ${ret}
     echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
-    echo "Switch to dev channel with command: flutter channel dev"
+    echo "Switch to dev channel with command: flutter channel stable"
     exit -1
 end
 """