Skip to content

Instantly share code, notes, and snippets.

@jeffersonsouza
Forked from ThePredators/readme-mde.md
Created March 25, 2021 14:03
Show Gist options
  • Save jeffersonsouza/8e8485ddf5ff1b91ba20b2b13aa0462f to your computer and use it in GitHub Desktop.
Save jeffersonsouza/8e8485ddf5ff1b91ba20b2b13aa0462f to your computer and use it in GitHub Desktop.
Mobile Env Setup

⭐ Setup Mobile Development Environment ⭐

Install HomeBrew

## Install xcode utils
xcode-select --install
## Install Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## Check that everything is Ok
brew doctor
## To update HomeBrew
brew update

Install ZSH

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Git

brew install git

Install Sublime Text

brew install --cask sublime-text

Configure Aliases in .zshrc

Check this sample of my .zshrc

  1. Run this :
open -a Sublime\ Text /Users/$(whoami)/.zshrc
  1. Add Git+Gitflow Aliases
  2. Add CocoaPods/Ruby/Fastlane Aliases
  3. Add Flutter Aliases

⚠️⚠️ Every Time you edit .zshrc you need to open a new Tab of Terminal/iTerm ⚠️⚠️

Install Fork

brew install --cask fork

Install iTerm

brew install --cask iterm2

Install PowerLvl Template + Zsh Plugins

## Install Power10k :
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
### change them in .zshrc  : ZSH_THEME="powerlevel10k/powerlevel10k"

## Install Auto-Suggestion :
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
### Edit .zshrc & add in plugins array : plugins=(zsh-autosuggestions)

## Install Syntaxe Hylight :
brew install zsh-syntax-highlighting
## Copy/Paste in .zshrc before rvm Config : source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh >> /Users/$(whoami)/.zshrc

## Install Completion : 
brew install zsh-completions
### Edit .zshrc & add in plugins : plugins=(zsh-autosuggestions)

Install Ruby

## Install rvm
curl -L https://get.rvm.io | bash -s stable
### Add this somewhere in .zshrc : source /Users/$(whoami)/.rvm/scripts/rvm

## Install Ruby
rvm install ruby-2.6.5

For More Detail check this

Install CocoaPods :

gemi cocoapods

Install XCode

To Open iOS Simulator run :

open -a Simulator

Install Android (Android Studio + SDK + Java)

brew tap adoptopenjdk/openjdk
brew install --cask adoptopenjdk8

echo $"\nexport JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/\n" >> /Users/$(whoami)/.zshrc

brew install --cask android-studio
brew install gradle
brew install android-sdk

export GRADLE_HOME=/usr/local/opt/gradle
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH=$GRADLE_HOME/bin:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/build-tools/19.1.0:$PATH

## Install Android SDK 29 + Build Tool 28.0.3
sdkmanager "platform-tools" "platforms;android-29" "build-tools;28.0.3"

Install Android Emulator GenyMotion Recomended

brew install --cask genymotion

Usefull ClI :

## Copy this to .zshrc
echo 'GMTOOL_PATH="/Applications/Genymotion.app/Contents/MacOS/"' >> /Users/$(whoami)/.zshrc
echo 'export PATH=$GMTOOL_PATH:$PATH' >> /Users/$(whoami)/.zshrc
## Display devices list
genyshell -c "devices list"

## To Create / run u need licence !
## Create a device
gmtool admin create "Google Pixel - 9.0 - API 28 - 1080x1920" GP_9
## Run a device
gmtool admin run GP_9

Install Flutter

## Install Flutter
brew install --cask flutter
# Instal dart
brew install dart
## Migrate to null safety (Only inside a project)
# dart migrate --apply-changes
## Check That everythong is OK
flutter doctor

Install VsCode

brew install --cask visual-studio-code

Your good to go !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment