Semaphore is a cross-platform application designed to organize and filter business tasks, arranging them in a date and price relationship. Its user interface is modern, allowing a simplified view of a complex set of orders.
To distribute the application for the Android and iOS operating systems, install the latest version of Flutter on your computer and follow the step-by-step guide, with steps based on Unix system commands:
- Open your terminal in the app folder:
cd app
- Generate the necessary files with their respective dependencies:
flutter create --platforms android,ios .
- Store program translations using Dart language resources:
flutter gen-l10n
- Remove unnecessary files for the task:
rm -rf .idea .metadata .gitignore .flutter-plugins .flutter-plugins-dependencies test app.iml README.md
- Download the third-party font used in the interface:
curl "https://fonts.google.com/download?family=Archivo+Narrow" -o assets/fonts/ArchivoNarrow.zip
unzip assets/fonts/ArchivoNarrow.zip -d assets/fonts/ArchivoNarrow
rm -rf assets/fonts/ArchivoNarrow.zip
- Set the application name to Semaphore:
dart run rename setAppName --targets android,ios --value "Semaphore"
- Generate icons for both supported operating systems:
dart run flutter_launcher_icons
- Build the distributable package and display it in the mobile folder:
flutter build apk
cp build/app/outputs/flutter-apk/app-release.apk mobile/semaphore.apk
You can also generate a bundle for production using the following commands instead of the last step:
flutter build appbundle --release
cp build/app/outputs/bundle/release/app-release.aab mobile/semaphore.aab
If you want to reset this project to its original repository conditions, run this command in the app folder.
rm -rf .dart_tool .flutter-plugins .flutter-plugins-dependencies android ios build assets/fonts/ArchivoNarrow