The purpose of this script is to automate the setup of the newest version of flutter and android sdk, and to save more hours of my life.
Ensure you have pip and python 3.7.4 installed.
$ git clone https://github.com/Dev-Dominic/FlutterLinuxSetup.git
$ pip install pipenv
$ pipenv shell
$ pipenv install
$ ./flutterSetup.py <path of installation>
Installation is made from the Pipfile.lock
- Downloads the flutter android sdk archive files
- Extracts the archive files into the SDK folder in the Documents
- Appends path of the flutter and android sdk into .bashrc in home user folder
- Creates ANDROID_HOME path
- Makes all the functions in the ..androidSDK/tools/bin executable
- Downloading files from the android and flutter website doesn't take the most up-to-date packages.
- The packages to required for android studio have to be installed manually after initial setup. (Need to find a way to reload .bashrc file)
- Use of os functions along with subprocess funciton. (Need to refactor code to use only subprocess)
- Need to make changes to make more readable code.