-
- Xcode 9.4 or above
- Android Studio 3.0 or above (install
Flutter
andDart
plugins, click here to learn how to install plugins)
-
Follow this link (click here) to get flutter sdk and install it.
-
Add following lines to your
.bashrc
or.zshrc
:export ANDROID_SDK=$HOME/Library/Android/sdk export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
-
Run following commands in your terminal:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -license
-
Restart your terminal to get latest resources and paths.
You can run application to iOS and Android devices using Android Studio!
-
emulator -list-avds
List all possible Android emulators that you can call and its ID.
emulator -avd <EMULATOR_ID> &
Turn on specified Android emulator by
ID
. If you have encountered crashed problem on emulator, quit emulator and use this command again with-wipe-data
as parameter to get a clean emulator. -
open -a Simulator
Turn on iOS simulator.
-
./scripts/bump <VERSION_NAME>
Bump both iOS and Android to specific version name and code. If you want different version code, add
<VERSION_CODE>
at last of this command../scripts/build android
Build Android apk file. Add
config=development
to use development config. Default config isproduction
.
For help getting started with Flutter, view our online documentation.