Skip to content

Commit

Permalink
2022/2023 Release 1 (#575)
Browse files Browse the repository at this point in the history
* Switch to authorization header token access

* Comment broken schedule test

* Fix linter issues

* Increment pubspec version

* Removed lifecycle event handler

* adding color tagging feature in exams page

* new bool method isHighlighted applied on exam_card and exams_page_view

* correct bool function details

* created file exam.dart in controller

* update pubspec version

* change pubspec version to 1.1.0+1

* Add ios specific files

* Make login page checkbox clickable

* Make exam filter checkboxes clickable

* Fix exam filter test

* Make bus stops checkboxes clickable

* Log changes

* Add T&C dialog logic whenever there's a change to T&C

* Move dialog to splash screen

* Popping dialog before entering new page

* Refactor with dialog styling

* Add acceptance flag to storage

* Styling changes

* Update function name. Fix conditions acceptance state management

* Fix accepting T&C on login. Refactor routing logic out of terms and condition dialog

* Fix semver, set target android sdk, fix main.dart filepath in README.md

* Fix flutter cache manager exporting File API

* Encapsulate toast messages

* Simplify color schema; make colors private

* Add elevatedButtonData theme property

* Switch reversed theme properties

* Fix exam confirm test

* Fix profile page colors

* Fix emam page settings icon background

* ix login page style

* Make raw text black

* Fix lecture constructor

* Update changelog and pubspec

* Refactor lecture constructors

* Added Hardcoded exams and lectures function

* Revert "Added Hardcoded exams and lectures function"

This reverts commit 4556941.

* Update target SDK version to 30

* Remove duplicated exams from parser

* Fix new header for github issues

* docs: 📝 document some files

Co-Authored-By: André Lima <[email protected]>

* Changed the default checkbox color to dark red

* beautify: removed some accidental newlines.

* Corrected the elevated button border radius

* Changed 'Paragens' to 'Autocarros'

* Fix tests for the different schedule fetchers

* Fetch cantine and feup restaurants from sigarra

Stored locally using action creator in 'restaurants'

* Update pubspec.yaml

* Fix Lint warnings

* Fix Lint warnings

* Refactor feature fetch-cantine-menus

* Make Restaurant and Meal Immutable

* Used constant in navigator call, put entry in changelog and updated version

* Get CSRF token for bus stops departures

* Wrap app launcher with Sentry

* Add email form at bug report page

* Report bugs to sentry instead of GH; disable error reporting

* Send gh issue linking to Sentry issue

* Send token through authorization header

* Remove unused imports

* Extract bug report methods

* Fix button style

* Check if widget is mounted before setting new state

* Update pubspec

* Refactor code

* Lint fix

* Delete deadcode, await in delete

* Remove empty space and change changelog.md

* Update pubspec.yaml

* Created dropdown widget to choose faculty in the login page (#412)

* Created dropdown widget to choose faculty in the login page

* Code clean up and added list of faculties to constants.dart

* Incremented version and added entry in changelog

* Add exams details to calendar (#419)

* Added button to add exam to calendar

* Changed the position of the button

* Pinned the add to calendar button to the top and centered the information on the card

* deleted unused import

* Updated changelog and pubspec

* feat: add drag icon (#438)

* feat: add drag icon

* fix: accept suggestions

* feat: center icon

Co-Authored-By: thePeras <[email protected]>

* fix: align all the icons vertically

* chore: changes pubspec and changelog

Co-authored-by: thePeras <[email protected]>

* Feature/faculty table (#443)

* First changes

* Correction made, stable

* Redux store with faculties

* Either shared_preferences or slider

* no errors, complete

* Corrections made

* Removed model

* Update app_feup/lib/controller/local_storage/app_shared_preferences.dart to use a one liner

Co-authored-by: André Rocha <[email protected]>

* Changed changelog and pubspec files

* Solved merge issues and issue #447

Co-authored-by: André Rocha <[email protected]>

* Feature/cantine page (#413)

* Added cantine page view file

* Created a cantine card class

* Cantine rows and a first card example

* Card null behaviour on click

* Deleted the cantine page file

* Specify which meal is displayed

* Refactored cantine card

* Added icons and diet meal to cantine card

* Centering Text, renaming Classes and Changing Border size

* removing mocked data

* Added cantine page view file

* Created a cantine card class

* Cantine rows and a first card example

* Card null behaviour on click

* Deleted the cantine page file

* Specify which meal is displayed

* Refactored cantine card

* Added icons and diet meal to cantine card

* Centering Text, renaming Classes and Changing Border size

* removing mocked data

* Removing canteen from Favorite Widgets

* Refactoring code

* Renaming files

* Changelog and incremented version

* Icons updated

* Updated the changelog and pubspec.yaml

Co-authored-by: José Luís Cunha Rodrigues <[email protected]>
Co-authored-by: José Luís Rodrigues <[email protected]>
Co-authored-by: André Rocha <[email protected]>

* Modify main workflow to deploy to play store (#345)

* Modify main workflow to deploy to play store

* Fix workflow indentation

* Split in two workflows

* Keep keystore private

* Ignore keyfiles

* Upgrade gradle build version

* Remove redundant bundle caching

* Fix workflow indentation

* Keep keystore private

* Ignore keyfiles

* Upgrade gradle build version

* Remove redundant bundle caching

* Upload to Play Store

* Change certificate filename

* Setup production environment for the bot to function

* Explictly set app status to completed

* Remove debug branch trigger

* Remove unnecessary caching; fix PR template

* Use same java version when building as when deploying

* Update pubspec

Co-authored-by: Bruno Mendes <[email protected]>
Co-authored-by: Bruno Mendes <[email protected]>

* Upgrade kotlin version to 1.6.0 (#465)

Co-authored-by: Bruno Mendes <[email protected]>

* Fetch Terms and Conditions (#381)

* Added T&C request

* Added safeguard when updating T&C

* Added connectivity check and T&C change verification

* Updated fetch link

* Fixed T&C fallback

* Added logging and updated T&C URL

* new URL

* Added entry to changelog and pubspec version incremented

* Update pubspec.yaml

Co-authored-by: Rica320 <[email protected]>
Co-authored-by: Ricardo Matos <[email protected]>

* Add dependabot (#466)

* Change Exam Constructor (#451)

* Changed exam table from database. Modified constructors according to changes

* Took out the migration

* Fixed some errors. Replaced 'begin' and 'end' for two new DateTime variables

* Corrected '_createScript' variable name

* Changed variable name to splittedDate

* Fixed unformatted dateTyped and deleted unsused include

* Made sode changes recommended by Lint and some more fixes to the code

* Feature/useful contacts card (#446)

* Added useful_contacts_card_page_view, useful_contacts_card, academic_services_card, info_desk_card; added 'Useful Contacts' to the navigation drawer

* S.A.  added to Useful-contacts page

* Completed Useful Contacts Page View - still lacks visual improvement. Completed the InfoDesk Card.

* Changed the style of the text in the right column

* Added all the information pretended, with centered text

* just changed text align to left

* Modified table visuals for Info Desk Cards

* Corrected Mistaken Text

* Corrected Mistaken Text

* changed the order of cards and fixed an email adress

* only removed : from an email label

* Removed unused package from academic services card

* Changed A.S. card's structure

* Changed infodesk card's structure

* Removed context from childrenList's arguments

Co-authored-by: Isabel Amaral <[email protected]>

* changed the structure of infodesk card's code

Co-authored-by: Isabel Amaral <[email protected]>

* Completed the new structure of infodek card's code

* Changed the place of 'Contactos Úteis' in the navigation drawer

* Completed the new structure of academic services card's code

* Removed .idea files

* deleted unuseful comments and changed the title of infodesk card

* Removed S.A. card from the page, updated Infodesk information and added D. Bia card

* Created functions to simplify the code inside the Widgets

* Changed some details suggested by the ide

* Changed the title of D. Bia's card and updates infodesk contacts

* Added functions in order to format text correctly and make it clickable; added copy center card and multimedia centar card

* Removed clickable links

* Removed usused package

* Deleted Academic Services file

* Deleted a function related to the editability of the cards

* Changed text-formatting functions from infodesk file to the page file

* Added childrenList function to the Class

Co-authored-by: Isabel Amaral <[email protected]>

* Updated changelog and pubspec

* updated pubspec

Co-authored-by: goncalo2k <[email protected]>
Co-authored-by: Francisco da Ana <[email protected]>
Co-authored-by: Gonçalo Miranda <[email protected]>
Co-authored-by: Isabel Amaral <[email protected]>

* Feature/improve ux on editing mode (#457)

* feat: improves ux while editing

* updated changelog and pubspec

* Feature/dark theme (#370)

* Add placeholder dark themes

* Default to adaptative theme

* Add theme state methods

* Null check preference

* Wrap app with Adaptive Theme

* Use Provider to notify widget change

* Add theme toggle

* Fix namespace issue

* Fix login page on dark theme

* Feature/refactor theme properties (#440)

* Wrap app with Adaptive Theme

* Remove most hardcoded colors

* Work on light theme

* Fix white theme colors and sizes

* Remove dead code

* Make dark theme compliant with refactor

* Fix login page checkbox; inject dark theme properties

* Lighten up grey for better dark theme contrast

Co-authored-by: Bruno Mendes <[email protected]>

* Fix schedule card font

* Improve theme provider implementation

* Fix bug report checkbox color

* Fix login page dropdown color

Co-authored-by: Bruno Mendes <[email protected]>

* Feature/clickable contacts (#484)

* emails and phone numbers are now clickable

* Updated pubsec, changelog

Co-authored-by: Francisco Ana <[email protected]>

* Feature/bump pubspec version automatically (#491)

* Omit build number and bump minor version

* Bump flutter version automatically on deploy

* Bump flutter version automatically on deploy

* Remove pubspec entry from pr template checklist

* Bring back app version to prepare for merge

* Bump version on push

* Save version in file

* Check file diff against current branch

* Test manual version change

* Remove debug tests

* Log failure due to manual app version file change to the console

Co-authored-by: bdmendes <[email protected]>

* Bump app version [no ci]

* Bump app build number to pacify both app stores (#498)

* Bump app build number to pacify both app stores

* Check for app version integrity on pull request

* Bump app version [no ci]

* Fix/version code deploy (#499)

* Bump app build number to pacify both app stores

* Check for app version integrity on pull request

* Release only to beta track on develop

* Bump app version [no ci]

* Feature/multiple faculties (#473)

* Change session model to accomodate multiple faculties

* Change base url functions

* Get schedule from multiple faculties

* Do not hardcode feup

* Create fetchers directory

* Move fetchers out of network router

* Move fees and print fetcher out of actions

* Fix session-related tests

* Add session dependent fetcher interface

* Implement session dependant fetchers

* Gather courses from all faculties

* Fix bus stop state

* Health check login before attempting relogin on 403 error

Co-authored-by: Bruno Mendes <[email protected]>

* Bump app version [no ci]

* fix ui (#492)

* Bump app version [no ci]

* Open uc page in the browser (#362)

* New button

* parser

* lecture class

* Changed button icon to grey color, centered right and smaller

* [ADD] new draft on getting occurrID from api on lectures

* [NEW] make button available

* [UPDATE] removed print function and [FIX] made button available on schedule page

* [FIX] change tests to pass github actions.

* [FIX] continue last commit.

* [FIX] Update icon size so the box has similar size as before.

Co-authored-by: Bruno Mendes <[email protected]>

* Bump app version [no ci]

* Feature/useful links card (#453)

* Useful Links Page created and added to drawer

* mock page created using code from useful contacts

* Other links card added and Links updated

* Other links card added and Links updated

* cleaned ui , removed links

* Underline added to Text

* removed unecessary imports and keywords

* Update app_feup/lib/view/Pages/useful_links_card_page_view.dart

Co-authored-by: André Rocha <[email protected]>

* Small Improvements , coding format

* New Custom Widget added

* added parameters to widget

* widget implemented in sigarra links card and other link cards

* removed unused packages

* printer link updated

* removed unused import

* fixed link view

* fixed duplicated keys in map literal

Co-authored-by: Gonçalo Miranda <[email protected]>
Co-authored-by: André Rocha <[email protected]>

* Bump app version [no ci]

* Feature/faculties multiselect (#469)

* First draft of the faculties multiselect in login page

* Added dropdown icon and some styling to the button

* Improved alert dialog design

* Changed checkboxes' styling

* Refactored and fixed problem with checkbox selection

* Removed unuseful function

* Created and styled the buttons for the alert dialog actions

* Added callback to change selected faculties

* Corrected selected faculties updating logics

* Changed FacultiesMultiselect button to a StatelessWidget

* Refactor: added helper methods and minor adjustments

* Fixed theme colors usage

* Variable naming improvements

* Fixed color usage to be light/dark mode dependent

* Used theme brightness property instead of the provider

Co-authored-by: Bruno Mendes <[email protected]>

* Bump app version [no ci]

* fixing text size (#505)

* Bump app version [no ci]

* Add print money (#479)

* generate MB reference function

* print MB reference dialog

* dialog

* moving function to fecther | stlying dialog

* button color

* removing IVA

* changelog.md

* Bump app version [no ci]

* Fix/cards titles (#508)

* Fixed cards titles

* Merged develop into this branch

* Mention card width title fix in the changelog

Co-authored-by: Bruno Mendes <[email protected]>

* Bump app version [no ci]

* Created a card for Academic Services and put it on the page (#510)

* Bump app version [no ci]

* Limit to the teachers acronym and department name erased (#474)

* Limit to the teachers acronym and department name erased

* restricting size with media query and text overflow

Co-authored-by: João Pereira <[email protected]>
Co-authored-by: André Rocha <[email protected]>

* Bump app version [no ci]

* Migrate app to Flutter 3 (#504)

* Add first compilable Flutter 3 version

* Update actions

* Fix late initialization error issues; point out theme and db errors

* Upgrade deprecated connectivity page; use sqflite adapter for support on Linux and Windows

* Bring back uni app icons for Android and iOS

* Convert non-Mockito tests to null safety; opt out in Mockito files

* Code cleanup

* Refactor theme; cleanup code; force light theme on login page

* Refactor page view abstracts to generics; code cleanup

* Use regular sqflite for now

* Null check redux store values

* Fix toast message not using current context

* fixing canLaunchUrl funcion (#520)

* Fix text theme colors

* Add linter rule to enforce absolute package imports

Co-authored-by: João Pereira <[email protected]>

* Bump app version [no ci]

* Remove remaining app_feup references (#521)

* Bump app version [no ci]

* Bump build number to previous last deployed version to allow auto cd (#522)

* Bump app version [no ci]

* Exam rooms display (#514)

* exam rooms new display

* rooms wrap

* returning null when there are no rooms

* deleting a mistake

* deleting a mistake

* new method for rooms list

* Bump app version [no ci]

* Feature/locations (#442)

* Basic location page with nothing

* With some mock data

* Added floorless popup

* Updated location classes

* Locations with action creator

* Location position fix

* Added more locations

* Removed font awesome, Added wc, and allow location icon to be a .svg asset

* Added new icons to locations and status

Added new icons to locations, implemented the location status, changed locations .txt file to assets/text/locations and fixed lint errors

* Add Feup text at Locations

* Fix compile error in load_info

* Create locationIcons font, and use batches in database instead of transaction

Batches were used for better performance

* Change icons, and add batches

* Add location constructor when retrieving from database

* Change font asset

* Refractor fonts  name pubspec

* Update locations

* Add locations and move locationIcons to a seperate folder

* Remove locations database

* Linter check and add generic map

* Fix layout problem when floor has 2 digits, and some minor tweaks

* Reformat files

* Remove locations database

* LocationIcons moved to assets

* Adjust location's popup padding

* Linter check

* Reformat files

* Remove dead code and change pubspec comments

Co-authored-by: Bruno Mendes <[email protected]>
Co-authored-by: Bruno Mendes <[email protected]>

* Bump app version [no ci]

* Feature/course units page (#529)

* Add course unit card and page

* Fetch current course units from the redux store

* Fix loading profile picture; scrape all courses from Sigarra

* Select curricular year and semester on dropdown

* Filter by school year instead of curricular year

* Fetch old courses and act as fallback for the api

* Add course unit detail page skeleton

* Remove courses states map build step; get state on profile build

* Add faculty reference to course info card

* Flag no exams on exams page

* Delete courses states totally; save course units in database

* Fix print balance not loading on first app load

* Display course average and finished ects on course info card

* Choose default semester based on time of the year

* Add 1S+2S dropdown menu option

* Tweak code styling based on suggestions

* Add util to parse url query parameters

* Add linter rule to force final locals

* Fix wrong course abbreviation

* Scrap faculty from url in cleaner way

* Rewrite saveImage function

* Extract title method; change dropdown style to make it more compact

* Bump app version [no ci]

* Expandable Cards (#516)

* first extendable cards available on useful contacts page

* changed some details

* expandable cards on useful links page

* colors are ready for dark mode

* deleted unnecessary lines of code

* deleted unnecessary lines of code

* deleted unnecessary lines of code

* expanded color ready for both themes

* corrected the color of infoTexts for dark mode

* removed the property for the color of the cards

* corrected the color of the icon

* change vertical space between cards

Co-authored-by: Bruno Mendes <[email protected]>

* Changed some details in the icon's animation

Co-authored-by: João Pereira <[email protected]>

Co-authored-by: Bruno Mendes <[email protected]>
Co-authored-by: João Pereira <[email protected]>

* Bump app version [no ci]

* Add await to restaurant insert (#476)

* Bump app version [no ci]

* Feature/fetch calendar (#488)

* Fetch the school year calendar from sigarra

* Fixed calendar parser

* Fixed database dates

* Removed date parsing

* Made calendar url faculty dependant

* Added an action to fetch calendar from local storage

* Fixed lint warnings

* Added calendar status reducer

Co-authored-by: Bruno Mendes <[email protected]>

* Bump app version [no ci]

* Fix/nonregular course units (#548)

* Fix non regular course units parse

* Fix year parse

* Change selected semester logic

* Discard course units from api with no id

* Bump app version [no ci]

* Refer whatsnew dir for beta deploys (#536)

* Refer whatsnew dir for beta deploys

* Improve pr template

* Bump app version [no ci]

* Fixing ios splash screen (#550)

* fixing ios splash screen

* disabling landscape mode at launch screen

* Bump app version [no ci]

* Bump flutter_map from 0.13.1 to 1.1.1 in /uni (#540)

* Bump flutter_map from 0.13.1 to 1.1.1 in /uni

Bumps [flutter_map](https://github.com/fleaflet/flutter_map) from 0.13.1 to 1.1.1.
- [Release notes](https://github.com/fleaflet/flutter_map/releases)
- [Changelog](https://github.com/fleaflet/flutter_map/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fleaflet/flutter_map/commits/v1.1.1)

---
updated-dependencies:
- dependency-name: flutter_map
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Change onTap to 2 arguments

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Gomes <[email protected]>

* Bump app version [no ci]

* Fix parser status; ditch invalid course units (#553)

* Bump app version [no ci]

* Fix system theme bug on locations (#560)

* Bump app version [no ci]

* Decouple last update timestamp periodic action from Redux Store (#561)

Co-authored-by: João Pereira <[email protected]>

* Bump app version [no ci]

* information paragraph (#565)

* Bump app version [no ci]

* alpha channel (#564)

* Bump app version [no ci]

* Fix/profile pic first load (#557)

* Get cached image when available

* Remove cache dependency; implement validity by hand

* Fix wrong connectivity checks

* Improve logic on caching

* Change storage module to a more generic file name

* Force profile image retrieval on app load

* Force retrieval on app refresh

* Do not get decoration image on refresh

* Bump app version [no ci]

* Feature/faculty selection name preview (#554)

* Show preview text of selected faculties

* Prevent selection of zero faculties

* Default keep signed in to true

* Remove faculty label from the preview

* Bump app version [no ci]

* fixing alertDialog buttons text color, bodyTexts and schedule title (#567)

* Bump app version [no ci]

* added the email adress of copy center (#569)

* Bump app version [no ci]

* Bump flutter_map_marker_popup from 2.2.1 to 3.2.0 in /uni (#556)

Bumps [flutter_map_marker_popup](https://github.com/rorystephenson/flutter_map_marker_popup) from 2.2.1 to 3.2.0.
- [Release notes](https://github.com/rorystephenson/flutter_map_marker_popup/releases)
- [Changelog](https://github.com/rorystephenson/flutter_map_marker_popup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rorystephenson/flutter_map_marker_popup/commits)

---
updated-dependencies:
- dependency-name: flutter_map_marker_popup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump app version [no ci]

* Refactor/pages folder (#518)

* Add first compilable Flutter 3 version

* Update actions

* Fix late initialization error issues; point out theme and db errors

* Upgrade deprecated connectivity page; use sqflite adapter for support on Linux and Windows

* Bring back uni app icons for Android and iOS

* Convert non-Mockito tests to null safety; opt out in Mockito files

* Code cleanup

* Refactor theme; cleanup code; force light theme on login page

* Refactor page view abstracts to generics; code cleanup

* Use regular sqflite for now

* Null check redux store values

* Fix toast message not using current context

* widgets inside pages folder

* imports and widgets

* abouts

* abouts

* fixing canLaunchUrl funcion (#520)

* Fix text theme colors

* Add linter rule to enforce absolute package imports

* deleting files

* Login components, deleting some models, changing secondary page, moving pages outside the Pages/ folder

* const

* Common documentation

* snake_case

* snake_case 2

* snake_case 3 🐍

* snake_case 4 🐍

* widgets file names gets shorted

* fixing new pages extends

* Incorrets schedule names

* linter test

* fixing test

* fixing test 2

* Merged Useful Contacts and Useful Links together (#555)

* Merged Useful Contacts and Useful Links together

* Added a title to the page.

* Changed the page's title, fixed minor details.

Co-authored-by: bdmendes <[email protected]>
Co-authored-by: Gonçalo Miranda <[email protected]>
Co-authored-by: Bruno Mendes <[email protected]>

* Fixing EE exams (#568)

* fixing EE exams

* fixing EE exams

* Bump app version [no ci]

* untracking files (#573)

* updating with flutter official .gitignore and adding a new env file

* delete files

* Fix cd bug report token (#574)

* Bump app version [no ci]

* Update changelog for the release

* Bump app version [no ci]

* Bump app version [no ci]

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Bruno Mendes <[email protected]>
Co-authored-by: Henrique Lima <[email protected]>
Co-authored-by: marianalt <[email protected]>
Co-authored-by: Beatriz Aguiar <[email protected]>
Co-authored-by: Andre Rocha <[email protected]>
Co-authored-by: tiago-falves <[email protected]>
Co-authored-by: Andre Rocha <[email protected]>
Co-authored-by: André Lima <[email protected]>
Co-authored-by: Teresa Ferreira <[email protected]>
Co-authored-by: Guilherme Almeida <[email protected]>
Co-authored-by: srissirs <[email protected]>
Co-authored-by: BrunoGomes <[email protected]>
Co-authored-by: Sara Reis <[email protected]>
Co-authored-by: Bruno Gomes <[email protected]>
Co-authored-by: Isabel Amaral <[email protected]>
Co-authored-by: Teresa Ferreira <[email protected]>
Co-authored-by: Mariana Lobão <[email protected]>
Co-authored-by: thePeras <[email protected]>
Co-authored-by: Marcelo Couto <[email protected]>
Co-authored-by: Rica320 <[email protected]>
Co-authored-by: José Luís Cunha Rodrigues <[email protected]>
Co-authored-by: José Luís Rodrigues <[email protected]>
Co-authored-by: Lucas Calvet Santos <[email protected]>
Co-authored-by: Ricardo Matos <[email protected]>
Co-authored-by: Francisco da Ana <[email protected]>
Co-authored-by: goncalo2k <[email protected]>
Co-authored-by: Francisco da Ana <[email protected]>
Co-authored-by: Gonçalo Miranda <[email protected]>
Co-authored-by: Francisco Ana <[email protected]>
Co-authored-by: bdmendes <[email protected]>
Co-authored-by: andrefmrocha <[email protected]>
Co-authored-by: João Pereira <[email protected]>
Co-authored-by: Mariana Teixeira <[email protected]>
Co-authored-by: Diogo Silva <[email protected]>
Co-authored-by: marianalt <[email protected]>
Co-authored-by: srissirs <[email protected]>
Co-authored-by: franciscopana <[email protected]>
Co-authored-by: thePeras <[email protected]>
Co-authored-by: brunogomes30 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4aa6640 commit 3717b3f
Show file tree
Hide file tree
Showing 438 changed files with 13,397 additions and 6,276 deletions.
12 changes: 6 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app_feup/.packages
app_feup/.flutter-plugins
app_feup/.metadata
app_feup/*.log
app_feup/.vscode
app_feup/.idea
uni/.packages
uni/.flutter-plugins
uni/.metadata
uni/*.log
uni/.vscode
uni/.idea
8 changes: 8 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2

enable-beta-ecosystems: true
updates:
- package-ecosystem: "pub"
directory: "/uni"
schedule:
interval: "weekly"
14 changes: 7 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Closes #[issue number]
[Description of the changes proposed in the pull request. Include steps to replicate the behavior and screenshots if UI is updated]

# Review checklist
- [ ] Terms and conditions reflect the current change
- [ ] Contains enough appropriate tests
- [ ] Increments version in `pubspec.yaml` (changes `1.0.0+1` to `1.0.0+2` for example)
- [ ] Properly adds entry in `changelog.md` with the change
- [ ] If PR includes UI updates/additions, its description has screenshots
- [ ] Behavior is as expected
- [ ] Clean, well structured code
- [ ] Terms and conditions reflect the current change
- [ ] Contains enough appropriate tests
- [ ] If aimed at production, writes new summary in `whatsnew/whatsnew-pt-PT`
- [ ] Properly adds entry in `changelog.md` with the change
- [ ] If PR includes UI updates/additions, its description has screenshots
- [ ] Behavior is as expected
- [ ] Clean, well structured code
18 changes: 18 additions & 0 deletions .github/workflows/app_version_integrity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: pull_request

jobs:
app_version_integrity:
name: "Check for app version change"
runs-on: ubuntu-latest
env:
APP_VERSION_PATH: "uni/app_version.txt"
steps:
- uses: actions/checkout@v2

- name: Fetch origin target branch
run: |
git fetch origin ${{ github.base_ref }}
- name: Ensure app_version was not changed manually or was created just now
run: |
(! git cat-file -e FETCH_HEAD:${{ env.APP_VERSION_PATH }} && git cat-file -e HEAD:${{env.APP_VERSION_PATH}}) || git diff --quiet FETCH_HEAD:${{ env.APP_VERSION_PATH }} HEAD:${{ env.APP_VERSION_PATH }} || (echo "App version file was modified manually. Skipping deploy" && exit 1)
115 changes: 115 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
on:
push:
branches:
- master
- develop

jobs:
bump_version:
name: "Bump pubspec version"
runs-on: ubuntu-latest
env:
APP_VERSION_PATH: "uni/app_version.txt"
PUBSPEC_PATH: "uni/pubspec.yaml"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.NIAEFEUPBOT_PAT }}

- name: Bump flutter patch version
if: github.ref == 'refs/heads/develop'
run: perl -i -pe 's/^(\d+\.\d+\.)(\d+)(\+)(\d+)$/$1.($2+1).($3).($4+1)/e' ${{ env.APP_VERSION_PATH }}

- name: Bump flutter minor version
if: github.ref == 'refs/heads/master'
run: perl -i -pe 's/^(\d+)(\.)(\d+)(\.\d+)(\+)(\d+)$/$1.($2).($3+1).($4).($5).($6+1)/e' ${{ env.APP_VERSION_PATH }}

- name: Copy app version to pubspec
run: cat ${{ env.APP_VERSION_PATH }} | perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+\+\d+)$/$1.(<STDIN>)/e' ${{ env.PUBSPEC_PATH }}

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Bump app version [no ci]"

build:
name: "Build App Bundle"
runs-on: ubuntu-latest
needs: [bump_version]
env:
PROPERTIES_PATH: "android/key.properties"
JAVA_VERSION: "11.x"
FLUTTER_VERSION: "3.0.5"
defaults:
run:
working-directory: ./uni
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{env.JAVA_VERSION}}
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.FLUTTER_VERSION }}

- name: Setup production environment
run: |
mkdir -p assets/env
rm -f -- assets/env/env.json
echo "{\"gh_token\": \"${{ secrets.NIAEFEUPBOT_PAT }}\"}" >> assets/env/env.json
- name: Download Android keystore
run: echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 --decode > /tmp/key.jks

- name: Create key.properties
run: |
rm -f -- ${{env.PROPERTIES_PATH}}
touch ${{env.PROPERTIES_PATH}}
echo "storeFile=/tmp/key.jks" >> ${{env.PROPERTIES_PATH}}
echo "storePassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" >> ${{env.PROPERTIES_PATH}}
echo "keyPassword=${{ secrets.ANDROID_KEY_PASSWORD }}" >> ${{env.PROPERTIES_PATH}}
echo "keyAlias=${{ secrets.ANDROID_KEY_ALIAS }}" >> ${{env.PROPERTIES_PATH}}
- name: Build Android App Bundle
run: |
flutter pub get
flutter build appbundle
- name: Upload App Bundle
uses: actions/upload-artifact@v2
with:
name: appbundle
if-no-files-found: error
path: uni/build/app/outputs/bundle/release/app-release.aab

deploy_play_store:
name: "Deploy to Google Play Store"
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- name: Get App Bundle
uses: actions/download-artifact@v2
with:
name: appbundle

- name: Release app to beta track
if: github.ref == 'refs/heads/develop'
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
packageName: ${{ secrets.ANDROID_PACKAGE_NAME }}
releaseFiles: app-release.aab
whatsNewDirectory: whatsnew
track: beta
status: completed

- name: Release app to production track
if: github.ref == 'refs/heads/master'
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
packageName: ${{ secrets.ANDROID_PACKAGE_NAME }}
releaseFiles: app-release.aab
whatsNewDirectory: whatsnew
track: production
status: completed
38 changes: 0 additions & 38 deletions .github/workflows/main.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/test_lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on: pull_request

jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./uni
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.0.5'

- name: Cache pub dependencies
uses: actions/cache@v2
with:
path: ${{ env.FLUTTER_HOME }}/.pub-cache
key: ${{ runner.os }}-pub-${{ github.ref }}-${{ hashFiles('**/pubspec.lock') }}
restore-keys: ${{ runner.os }}-pub-${{ github.ref }}-

- run: flutter pub get
- run: flutter analyze --no-pub --preamble .

test:
name: 'Test'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./uni
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.0.5'

- run: flutter pub get
- run: flutter test --no-sound-null-safety
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
.pub/
build/
*.bin
uni/pubspec.lock
.flutter-plugins*

app_feup/pubspec.lock
# IDE files
.DS_Store
.atom/
.vscode/
.packages
.idea/
.gradle/

# Key properties
uni/android/key.properties
**.jks
45 changes: 45 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.

version:
revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- platform: android
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- platform: ios
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- platform: linux
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- platform: macos
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- platform: web
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
- platform: windows
create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268
base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
Loading

0 comments on commit 3717b3f

Please sign in to comment.