poliferie / Poliferie-Platform-Flutter

Frontend for the Poliferie.io platform.
1 stars 0 forks source link
education flutter flutter-app italy university

Poliferie.io - Poliferie platform for Italian universities.

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.

Contributing

Check out the CONTRIBUTING.md file on what it has to be done.

Developing

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

Run on the Android emulator

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

Run on a usb connected device

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

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