====== Setting Up Flutter Development Machine ====== ===== Setting up ===== First Set up the following tools * [[development:tools:flutter_development_machine:vscode_setup:|Visual Studio Code setup]] * Git * [[development:tools:flutter_development_machine:flutter:|Flutter]] * [[development:tools:flutter_development_machine:android_studio:|Android studio]] * [[development:tools:flutter_development_machine:xcode:|xCode]] ===== Building the app ===== * Get the correct branch from SmartGit (you may create a new branch from here) * Download the corresponding Google Play upload key from [[howto:flutter:build_app_for_ios_and_android:create_upload_key:start|Android App Keystore]] * Place the .jks in a folder such as '~/keystore/' * Create a file in ''project folder/android/'' called key.properties and write in the file storePassword= keyPassword= keyAlias=key storeFile= * In Visual Studio Code, choose the device you will run the code and start debugging by pressing ''Run > Start Debugging'' or pressing ''F5'' If you fail to build to ios try right clicking on the ''ios folder'' and choose ''Open in Xcode'' Make sure that the account is correct to sign the project, and the correct device is selected on the top to build the code. If you are using an Apple Silicon Macbook and face build errors with CocoaPods try installing ffi with sudo arch -x86_64 gem install ffi then re-install dependencies with sudo arch -x86_64 gem install ffi see [[https://stackoverflow.com/a/65334677|Running CocoaPods on Apple Silicon (M1) - stackoverflow]] ===== Possible Problems and Issues ===== Have a look at the articles for Flutter at our Staff Wiki [[staff:cheung ming:|Cheung, Ming]] [[staff:lee roy:|Lee, Roy]]