Skip to content
/ fdev Public

An easy way to setup your Flutter development environment on M1 macs (And also on other platforms). ;)

License

Notifications You must be signed in to change notification settings

allansrc/fdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fdev

Flutter development environment

easiest way to setup your machine to Flutter environment as simple as run a command

Now for Apple M1!

to an easy setup your M1 based mac really for Flutter development!

What does it do in my machine? (Apple Silicon)

  • install git / xcode command line tool
  • install flutter stable version
  • install rosetta
  • install home brew (recommended)
  • update git for lastest (Void flutter xcrun issue)
  • install cocoapods and M1 dependences
  • set flutter to PATH
  • install android studio
  • set xcode configs (if it's installed)
EXTRAS (Only for Apple Silicon)
Package Version Description Path
build-tools;28.0.3 28.0.3 Android SDK Build-Tools 28.0.3 build-tools/28.0.3
build-tools;29.0.2 29.0.2 Android SDK Build-Tools 29.0.2 build-tools/29.0.2
build-tools;30.0.3 30.0.3 Android SDK Build-Tools 30.0.3 build-tools/30.0.3
cmdline-tools;latest 5.0 Android SDK Command-line Tools (latest) cmdline-tools/latest
emulator 30.8.4 Android Emulator emulator
ndk;22.1.7171670 22.1.7171670 NDK (Side by side) 22.1.7171670 ndk/22.1.7171670
patcher;v4 1 SDK Patch Applier v4 patcher/v4
platform-tools 31.0.3 Android SDK Platform-Tools platform-tools
platforms;android-28 6 Android SDK Platform 28 platforms/android-28
platforms;android-30 3 Android SDK Platform 30 platforms/android-30

How to use it:

run this command on terminal: (Silicon only, for other platform see below)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/allansrc/fdev_silicon/master/platforms/macOS-silicon/flutter-dev-setup-silicon.sh)"

Known Issues:

For those are on macOS 12 (Monterey) Android Studio won't work good or just not work. I found a solution for that. Just add the studio.vmoptions file on /Users/<User Name>/Library/Application Support/Google/<Android Studio Version>/.

This file is avaliable on files_fixes folder here. For details about this file and others VM options and the issue see links bellow:

Stay tune ;) thx!

it also works on: Windows / macOS / Linux

For Windows: (Legacy - but works)

Usage: (without Android Studio)

  • run the fdev-win.bat file as Admin

Usage: (Android Studio included)

  • run the fdev-win-android-s.bat file as Adm

It'll install:

  • Install chocolatey
  • Install Git
  • Download Flutter SDK
  • add Flutter to ENV. PATH
  • Download Dart SDK
  • Android Studio

Python and shellscript option installer

Option 1: (Python script)

It'll install:

  • Flutter

  • Android Studio

  • Visual Studio Code

  • wget, git, tar

For Linux distros

  • run the proper installer for your distro. i.e:
python3 fdev-linux.py

For macOS

  • run the installer file. i.e:
python3 fdev-macos.py

Option 2: (ShellScript Installer)

macOS / Linux

run the proper ShellScript installer file for your OS, i.e:

  • make the fdev-linux.sh file runnable,
chmod -x fdev-linux.sh
  • then run the file .sh to installs
./fdev-linux.sh

LICENSE:

Thanks to: marcusedu

About

An easy way to setup your Flutter development environment on M1 macs (And also on other platforms). ;)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published