Skip to content

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.

[flutter]: add some scripts

anniec90cdb90d7db
diff --git a/.gitignore b/.gitignore
index 411e6555ef..123bb8854d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,4 +11,5 @@ Cargo.lock
**/target/
**/*.db
.idea/
-/flowy-test/
\ No newline at end of file
+/flowy-test/
+.ruby-version
\ No newline at end of file
diff --git a/app_flowy/macos/Podfile.lock b/app_flowy/macos/Podfile.lock
index ce4f1af669..40d1d38056 100644
--- a/app_flowy/macos/Podfile.lock
+++ b/app_flowy/macos/Podfile.lock
@@ -55,4 +55,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
-COCOAPODS: 1.10.1
+COCOAPODS: 1.11.2
diff --git a/rust-lib/dart-ffi/Cargo.toml b/rust-lib/dart-ffi/Cargo.toml
index 4f21cd6b56..323e66b82b 100644
--- a/rust-lib/dart-ffi/Cargo.toml
+++ b/rust-lib/dart-ffi/Cargo.toml
@@ -7,11 +7,11 @@ edition = "2018"
[lib]
name = "dart_ffi"
# this value will change depending on the target os
-# for iOS it would be `cdylib`
-# for Macos it would be `cdylib`
+# for iOS it would be `rlib`
+# for Macos it would be `rlib`
# for android it would be `c-dylib`
-# default cdylib
-crate-type = ["cdylib"]
+# default rlib
+crate-type = ["rlib"]
[dependencies]
diff --git a/scripts/makefile/env.toml b/scripts/makefile/env.toml
index 301ec809d2..fcda5ea4ef 100644
--- a/scripts/makefile/env.toml
+++ b/scripts/makefile/env.toml
@@ -39,6 +39,32 @@ cargo install cargo-cache
cargo install bunyan
"""
+[tasks.install_cocoapods]
+script = """
+# execute "xcode-select --install" before if "extconf.rb failed" error occurs
+sudo gem install cocoapods
+"""
+
+[tasks.install_rbenv]
+script = """
+brew install rbenv
+rbenv init
+rbenv install 2.7.1
+rbenv global 2.7.1
+
+# https://github.com/rbenv/rbenv
+curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
+"""
+
+[tasks.install_fish]
+script = """
+brew install fish
+
+# https://stackoverflow.com/questions/26208231/modifying-path-with-fish-shell
+# Export the PATH using the command:
+# set -Ua fish_user_paths the_path_you_want_to_export
+"""
+
[tasks.install_flutter]
script = """
echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."