This project is a first draft for the cross-platform Poliferie Platform App. It is written in Dart using Flutter.
As for June 2021, this project has been discountined. Please write to andrea.merlo@poliferie.org for further information.
- Fork the repository and clone it to your local machine
- Follow the instructions here to install the Flutter SDK
- Setup Android Studio or Visual Studio Code.
Check out the CONTRIBUTING.md
file on what it has to be done.
Make sure you have Flutter installed on your local machine. For more instructions on how to install flutter, look here.
Clone this repository and move into the project folder.
git clone https://github.com/poliferie/Poliferie-Platform-Flutter
cd Poliferie-Platform-Flutter
Then, update and check the flutter installation.
flutter upgrade
flutter doctor
Start the Android emulator first via Android Studio. Check device id.
flutter devices
Then build and deploy the app into the target device.
flutter run -d emulator-5554
Dive into Developer options on your device, and be sure to have 'USB debugging' enabled. Then connect your device via a usb cable and launch the app via flutter.
flutter run
In case you encounter permission errors, kill the adb server, and respwan it with root privileges.
adb kill-server
sudo adb usb
Then run flutter again.
Build the appbundle with the following arguments.
flutter build appbundle --no-tree-shake-icons
Then generate the target *.apk
with bundletool.
Alternatively you could build the apks direclty via Flutter.
flutter build apk --split-per-abi --no-tree-shake-icons