Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 <code> storePassword=<password> keyPassword=<password> keyAlias=key storeFile=<file path to .jsk file> </code> * In Visual Studio Code, choose the device you will run the code and start debugging by pressing ''Run > Start Debugging'' or pressing ''F5'' <WRAP center round important 80%> 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. </WRAP> <WRAP center round important 80%> If you are using an Apple Silicon Macbook and face build errors with CocoaPods try installing ffi with <code> sudo arch -x86_64 gem install ffi </code> then re-install dependencies with <code> sudo arch -x86_64 gem install ffi </code> see [[https://stackoverflow.com/a/65334677|Running CocoaPods on Apple Silicon (M1) - stackoverflow]] </WRAP> ===== 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]] development/tools/flutter_development_machine/start.txt Last modified: 2023/12/17 14:57by don.lee