Skip to content

Commit

Permalink
Release 0.3.0 to candidate (#1253)
Browse files Browse the repository at this point in the history
* snap: use flutter 3.7.0 (#942)

* Installed page - update icon/button styling (#946)

Fixes #913

* Release_0.2.8-alpha (#947)

* Show deb dependency sizes (#950)

* add PackageDependecy class

* show size of missing dependencies

* Translations update from Hosted Weblate (#932)

* Translated using Weblate (Spanish)

Currently translated at 98.7% (154 of 156 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (156 of 156 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Russian)

Currently translated at 99.3% (160 of 161 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Swedish)

Currently translated at 98.7% (159 of 161 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Swedish)

Currently translated at 98.7% (159 of 161 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (161 of 161 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

---------

Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: DefaultX-od <[email protected]>
Co-authored-by: Arve Eriksson <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>

* make search available from App downwards (#945)

Fixes #921

* PackageModel: make checkDependencies optional in init (#952)

* Don't use full width on Settings page (#949)

* Don't use full width on Settings page
Fixes #904

* Add fake titlebar to theme tile

* fix scroll behavior in dependency dialog (#955)

* Settings: move to trailing & open in dialog (#953)

* Settings: move to trailing & open in dialog

* Navigate to repo and about in navigator

* add padding

* Better layout

* background color

* Added gear icon (#957)

* SettingsPage: add license button and route, improve layout (#964)

* Changed font size for app_header (#963)

* Changed font size

* Only use theme

* Added text color (#967)

* SettingsModel: clean up (#968)

- make properties nullable
- make const private to not show up in code completion elsewhere

* LicensePage tweaks (#965)

* Licensepage tweaks

Small tweaks for license page:

- Removed duplicate back button
- Use full window height (removed SizedBox)

* Added const

* Wrapped in ClipRRect

* AppPage Gallery dialog should resize on window size change (#972)

Bonus: use YaruDialogTitlebar

Fixes #971

* AppPage Gallery Dialog: use appData.name as title (#973)

* SnapUpdates: refresh all should not ask for password before every update (#970)

* SnapUpdates: refresh all should not ask for password before every update
Fixes #969

* check if list is empty

* if (_snapsWithUpdates?.isEmpty ?? true) return;

* Merge updates and installed pages (#974)

* merge updates and installed
Fixes #960

* make appformat popup useable

* use context select and valuekeys

* Select snap list

* Add package updates

* Improve package updates design

* l10n, and add filter popup for packagekit

* HIde searchbar for deb updates

* specify when to hide searchbar

* Remove collection item

* remove import

* Move name filtering to model

* filter packages  by searchQuery

* fix NPE

* init the packagekit filter

* if (searchQuery?.isEmpty ?? true) :)

* Remove unused code

* Add remove button deb tiles, select packagekit first if available

* Translations update from Hosted Weblate (#961)

* Translated using Weblate (Spanish)

Currently translated at 100.0% (161 of 161 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Occitan)

Currently translated at 100.0% (161 of 161 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/oc/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (163 of 163 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

---------

Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: Quentin PAGÈS <[email protected]>

* Shortcuts (#956)

* Add shortcuts to sections in the sidebar

* Special case games page

* Fix package installer index

* AppImageBanner: add icon

* SectionBanner: switch between dark and light text

* set selection section on page change, adjust section banner height to avoid jumping

* change art and design gradient

* Collection: sort snaps by update and SnapSort (#975)

* Collection: sort snaps by update and SnapSort

* No need for maps

* Header: 20 pixels runspacing at line overflow

* PackageService: remove filter in isInstalled (#979)

uninstalled packages need to be included in the search to correctly
determine whether a package is installed

* PackageService: fix isInstalled (#981)

* Update list of installed packages upon installation/removal (#983)

* PackageService: update _installedPackages

* PackageService: emit signal after installing/removing

* update package service tests

* Collection: fix tile shape and divider (#985)

based on list length and index

* CollectionPage: re-add deb controls and improve layout (#989)

- re-add all debian package related controls (refresh, update all)
- adapt the deb updates section to snap updates
- adapt deb updates list to installed deb list
- move PackageUpdatesModel higher in the tree to a multiprovider around collectionpage
- do not always ask packageService for a fresh list of updates on page refresh, stream subs should update the page here
- do not show all debian packages but only     PackageKitFilter.installed,
    PackageKitFilter.gui,
    PackageKitFilter.newest,
    PackageKitFilter.application,
    PackageKitFilter.notSource,
    PackageKitFilter.notDevelopment,

* Hide disabled Open button for snaps (#990)

* Hide open disabled

- Hide open disabled
- Changed order so Remove is always right

* Hide Open for snaps when disabled

* Translations update from Hosted Weblate (#984)

* Translated using Weblate (Spanish)

Currently translated at 100.0% (165 of 165 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

---------

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

* make sure isInstalled doesn't get reset if another version is found (#992)

* fixing a mess (#995)

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

* UpdateBanner: rename to PackageUpdateBanner (#993)

* Packagekit progress indicator (#944)

* PackageControls: access PackageModel via Provider

* update packagekit

* add new localization strings

* add more PackageStates

* PackageModel: expose transaction progress

* PackageControls: show progress, remaining DL size

* update tests

* show transaction perentage in updateAll

* CollectionPage: remove PackageControls parameters

* CollectionPage: set isInstalled in model

* CollectionModel: make _installedSnaps null at start (#997)

* CollectionModel: make _installedSnaps null at start
Fixes #994

* bool get snapUpdatesAvailable => installedSnapsWithUpdates?.isNotEmpty ?? false;

* remove loadSnaps duplicate

* remove duplicate getter

* CollectionModel: remove unecessary list clearing (#999)

* rebuild package tiles when installed packages change (#1001)

* rebuild package tiles when installed packages change

* remove unused key

* PackageService: reduce signals in getInstalledPackages (#1002)

only send one packages changed signal after the transaction completes,
instead of sending one for each packagekit event

Co-authored-by: Frederik Feichtmeier <[email protected]>

* CollectionPage: improve performance (#1004)

* CollectionPage: improve performance

- service: use a second list of IDs only for checking the installedId vs updateId versions so the installed list does get overwritten when checking for updates
- collectionpage: replace columns with many elements with listview builders, this needs a second change with scroll controllers and lazy loading in the future

* physics: const NeverScrollableScrollPhysics(),

* add optional parameter to getInstalledPackages

* App: add more shortcut pageItems (#1000)

* App: add more shortcut pageItems

- iot
- server and cloud

* fix _commandLineListener

* Add productivty, remove server + iot

* helper method and paperplane icon

* `StartPage`: show appstream data as soon as possible (#1006)

* SnapService: pass section name in sectionsChanged

* ExploreModel: add unified startPageApps property

* CollectionPage: improve icon and design and fix bugs (#1010)

* CollectionPage: improve icon and design

* Sort children and fix busy bug

* keep header with checkbox

* fix package tile padding

* enable snap list after check, disable color for update button, remove snap updates from normal snap list

* Changed Offline text color to grey (#1013)

* Changed text color to grey

* Update offline_page.dart

* Fix overflow error in review/ratings (#1017)

* fix overflow error in review/ratings

* remove unused sizedBox

* [Reviews/Rating] expand inkwell to include blank space (#1018)

* [Reviews/Rating] expand inkwell to include blank space

* empty commit for test failure?

* show all items in Additional Information section (#1020)

* remove extra bottom padding in review dialog (#1021)

* remove awkward review carousel cutoff (#1022)

* CollectionPage: show to top button (#1024)

* CollectionPage: show to top button

* dispose controller

* only show the button for packagekit for now

* animate

* Collection page: show badge on app format selector (#1027)

Fixes #1026

* Translations update from Hosted Weblate (#1028)

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (German)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (French)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Russian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

---------

Co-authored-by: Макс Лисенко <[email protected]>
Co-authored-by: Ettore Atalan <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>

* Pubspec: Upgrade handy_window (#1029)

Fixes #1023

* CollectionPage: organize (#1031)

* CollectionPage: organize
Fixes #1025

* re-wrap snap collection in the scrollview to show the FAB

* Align FAB bottom right without stack

* software_test: increase timeout window

* Release 0.2.9-alpha (#1034)

* Package updating page: add padding (#1039)

* Remove unnecessary toolips (#1038)

* Remove unnecessary toolips

- removed unnecessary toolips
- added a length threshold for Version and Publisher

* Added length to license tooltip

* Package type visualization improvements (#1040)

Fixes #1036

* Added padding (#1045)

* Only show date for debs (#1046)

* Bring section banner closer to design (#1044)

* Bring section banner closer to design

* Improve spacing

* PackagePage: set appIsInstalled in AppPage (#1048)

* ExploreModel: enable packageKit before loading StartPage components (#1050)

* Correctly look for snap updates (#1051)

Fixes #1042

* Remove the package updating details (#1052)

Fixes #1041

Co-authored-by: Dennis Loose <[email protected]>

* exempt common bots from CLA (#1053)

* Revert "exempt common bots from CLA (#1053)" (#1055)

This reverts commit fe060388bc8bced4d9432cabb4f65d595ca4021c.

* SnapPage: add a share button (#1056)

Fixes #1047

* Tooltips for publisher icons (#1059)

* Added tooltip for icons

* Added string for Star developer

* Add tooltip for share icon (#1057)

* Switch to yaru_window (#1063)

* AppBanner: better publishername guessing (#1064)

Fixes #986

* Fix Title alignment (#1065)

Fixes #895

* Use HdyWindow directly from libhandy (#978)

Probably fixes: #868

* Fix: Can't switch snap tracking channel without reinstalling (#1071)

Fixes #1069

* Use snapd.dart to find snaps with updates (#1070)

* SnapService: fetch refreshable snaps from snapd

* SnapService: make localSnaps read-only

* snap_utils: remove isSnapUpdateAvailable

* update snap service test

* Find unlisted snaps by exact name (#1077)

* fix null check (#1084)

* Remove pubspec_overrides: no longer needed with yaru_window (#1085)

* Make publisher name click search for publisher (#1078)

* Make publisher name click search for publisher
Fixes #1016

* Update lib/app/explore/explore_page.dart

Co-authored-by: Dennis Loose <[email protected]>

* Update lib/app/common/app_page/app_page.dart

Co-authored-by: Dennis Loose <[email protected]>

---------

Co-authored-by: Dennis Loose <[email protected]>

* added ellipsis and overflow (#1087)

* Smaller fontsize for YaruExpanders (#1089)

* Removed scaledFontSize (#1091)

Removed scaledFontSize and set titleLarge at size 23

* Snap channel dropdown text styling (#1093)

* fix snapd.dart git ref until PR is merged (#1097)

* AppModel: return sum of snap and deb updates (#1102)

* AppModel: return sum of snap and deb updates

* test update badge

* ExplorePage: reset searchQuery in initState (#1101)

Co-authored-by: Frederik Feichtmeier <[email protected]>

* Changed sizebox height (#1100)

* Changed sizebox height

* use localization string

---------

Co-authored-by: Dennis Loose <[email protected]>
Co-authored-by: Frederik Feichtmeier <[email protected]>

* update snapd.dart (#1104)

* Removed isExpanded for text color (#1095)

* Use primary color for links (#1094)

* Use primary color for links

* Use primary color for links

* Removed blue contributor links

* Alert dialog for removing snap (#1110)

* Add dialog

* Added translation strings

* trailing comma

* typo

* UpdateDialog: Added width to container (#1115)

fixes expand sections to full width #1114

* SectionBanner Font tweaks (#1112)

removed transparency, changed fontweight

* @Zoospora gradients for sectionbanners (#1111)

* SnapPage: use outline for snapchannel button (#1117)

* Update from yaru (#1108)

* Update from yaru

- stronger borders
- stronger button outlines

* update yaru to 0.5.5

* Implement Ratings and Reviews redesign  (#1119)

* Review styling (#1121)

* New translations strings

* Styling fixes

* ReviewRatingBar: simplify alignment and detachment (#1122)

* Replace Collection with Manage (#1124)

* Added Manage string

* Replaced collection with manage

* Text aligned left (#1127)

* Shorter translation for Package type (#1123)

* New translation for package type

* New translation string

* appformat toggle button fontweight (#1129)

* Add isSelected styling

* add isSelected

* Cancel `refreshAll` if first PolKit authentication request is cancelled (#1130)

* SnapService: rethrow auth-cancelled exception

* SnapService: cancel refreshAll on first auth-cancelled

* CollectionModel: use refreshAll from SnapService

* Update cla-check.yaml

* Attempt to fix CLA (#1132)

* Attempt to fix CLA

* PackagePage: show dependency sizes (#1133)

* PackagePage: show dependency sizes

* add dependency package summary

* fix integration test

* Fix the CLA check - attempt 7 (#1134)

Co-authored-by: Frederik Feichtmeier <[email protected]>

* Add summary to dialog (#1137)

* pass AppFindings to SectionBanner (#1140)

* Allow cancelling ongoing snap changes (#1139)

* SnapService: add abortChange

* SnapService: notify only if change is 'Done'

* add abortChange to snap models

* add cancel button to snap controls

* update snap service test

* remove unneeded removeChange in abortChange

* Dependency removal (#1138)

* bump packagekit version

* update localization strings

* add autoremove parameter to remove()

* ensure isInstalled is set after model is initialized

* get deps for installed packages that can be removed

* add dependency dialog for package removal

* update test

* check dependencies after install/remove

* add missing trailing comma

* set isInstalled to false for local debs

* UpdatePage: switch appformat dropdown to toggle button (#1146)

Fixes #1080

* use desktop launch interface (#1141)

* add snapcraft_launcher to pubspec

* use PrivilegedDesktopLauncher to launch snaps

* add desktop-launch plug to snapcraft.yaml

* ExplorePage: detangle and prepare for more pages (#1149)

* ExplorePage: detangle and prepare for more pages

- split startpage into GenericStartPage, ExploreAllPage and GamesStartPage
- remove parameters of GamesStartPage

* Move loading into banner and grid

* Linkcolor blue - again (#1150)

* More readable publisherName for app_banners (#1151)

* Changed textstyle for publisherName

* Removed italic

* bodyMedium font in app format dropdown (#1152)

* removed unnecessary sized box (#1157)

* Remove themeTile artifacts (#1160)

* remove theme tiel artifacts

* revert border radius change

* fix swipe animation not resetting (#1162)

* Use yMMMd format for ReleasedAt (#1163)

* fix(UI): explore page snaps have lower case letters (#1167)

* Additional Information fixes (#1159)

* Additional Information fixes

- use horizontal 20 pixel spacing
- move the icon to the start
- publisherName.replaceAll(' ', '\u00A0')

* Icon, right, tooltip on hover

* Issue1173 - review divider (#1180)

* Thinner divider for reviews

* Revert height

* Use same height as master

* Fixed more dividers

* Use divider with padding

* Changes searchfield font size (#1155)

* Changes searchfield font size

* Revert searchfield height

---------

Co-authored-by: Frederik Feichtmeier <[email protected]>

* show installed apps when installing snap (#1166)

Co-authored-by: Frederik Feichtmeier <[email protected]>

* feat(UI): add total ratings along with reviews (#1187)

* fix(UI): explore page snaps have lower case letters

* feat(UI): add total ratings along with reviews

* Make collection page 📄 lazy 🦥 load its packages (#1188)

Fixes #1009

* Review improvements (#1189)

* Text fixes for review dialog

* New string for review dialog

Related to issue 1186

* Removed unused package

* Make search page 📃 lazy 🦥 loading its list (#1191)

Fixes #1007

* feat(UI): allow only full star rating (#1205)

* Translation strings (#1206)

* fix(integration_test): set netplan renderer (#1226)

somehow `netplan set renderer=NetworkManager` doesn't work any longer.
using a configuration file with the renderer set to NM seems to do the
trick for now.

* Translations update from Hosted Weblate (#1220)

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (German)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (French)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Russian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/

* Translated using Weblate (German)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Swedish)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 98.4% (192 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (German)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (French)

Currently translated at 95.3% (186 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Italian)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/it/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 2.5% (5 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Added translation using Weblate (Czech)

* Translated using Weblate (Czech)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/cs/

---------

Co-authored-by: Макс Лисенко <[email protected]>
Co-authored-by: Ettore Atalan <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>
Co-authored-by: bittin1ddc447d824349b2 <[email protected]>
Co-authored-by: albanobattistella <[email protected]>
Co-authored-by: Lattefang <[email protected]>
Co-authored-by: AsciiWolf <[email protected]>

* ci: pin flutter version to 3.7 (#1229)

* Translations update from Hosted Weblate (#1227)

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (German)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (French)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Russian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/

* Translated using Weblate (German)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Swedish)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 98.4% (192 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (German)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (French)

Currently translated at 95.3% (186 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Italian)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/it/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 2.5% (5 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Added translation using Weblate (Czech)

* Translated using Weblate (Czech)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/cs/

* Added translation using Weblate (Slovak)

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Korean)

Currently translated at 45.6% (89 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ko/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

---------

Co-authored-by: Макс Лисенко <[email protected]>
Co-authored-by: Ettore Atalan <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>
Co-authored-by: bittin1ddc447d824349b2 <[email protected]>
Co-authored-by: albanobattistella <[email protected]>
Co-authored-by: Lattefang <[email protected]>
Co-authored-by: AsciiWolf <[email protected]>
Co-authored-by: Peter Vančo <[email protected]>
Co-authored-by: Fan Chou <[email protected]>
Co-authored-by: El <[email protected]>

* Upgrade to dart 3 and flutter 3.10 (#1232)

* Upgrade to dart 3 and flutter 3.10

* Translations update from Hosted Weblate (#1230)

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (German)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (French)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Russian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/

* Translated using Weblate (German)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Swedish)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 98.4% (192 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (German)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (French)

Currently translated at 95.3% (186 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Italian)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/it/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 2.5% (5 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Added translation using Weblate (Czech)

* Translated using Weblate (Czech)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/cs/

* Added translation using Weblate (Slovak)

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Korean)

Currently translated at 45.6% (89 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ko/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Danish)

Currently translated at 46.6% (91 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/da/

* Translated using Weblate (Persian)

Currently translated at 37.4% (73 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fa/

* Translated using Weblate (Finnish)

Currently translated at 50.2% (98 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fi/

* Translated using Weblate (Indonesian)

Currently translated at 36.4% (71 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/id/

* Translated using Weblate (Japanese)

Currently translated at 81.0% (158 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ja/

* Translated using Weblate (Portuguese)

Currently translated at 81.0% (158 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pt/

* Translated using Weblate (Russian)

Currently translated at 86.1% (168 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Occitan)

Currently translated at 82.0% (160 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/oc/

* Translated using Weblate (Korean)

Currently translated at 45.6% (89 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ko/

* Translated using Weblate (Polish)

Currently translated at 52.8% (103 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pl/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 86.1% (168 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Translated using Weblate (Turkish)

Currently translated at 27.6% (54 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/tr/

* Translated using Weblate (Ukrainian)

Currently translated at 86.1% (168 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Finnish)

Currently translated at 90.2% (176 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fi/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

---------

Co-authored-by: Макс Лисенко <[email protected]>
Co-authored-by: Ettore Atalan <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>
Co-authored-by: bittin1ddc447d824349b2 <[email protected]>
Co-authored-by: albanobattistella <[email protected]>
Co-authored-by: Lattefang <[email protected]>
Co-authored-by: AsciiWolf <[email protected]>
Co-authored-by: Peter Vančo <[email protected]>
Co-authored-by: Fan Chou <[email protected]>
Co-authored-by: El <[email protected]>
Co-authored-by: Jiri Grönroos <[email protected]>

* Use the new switch expression (#1234)

* SettingsPage: simplify theme switch logic (#1235)

as suggested in https://github.com/ubuntu-flutter-community/software/pull/1234#discussion_r1197691654 by @jpnurmi

* fix(packagekit): ensure packagekit daemon is active (#1238)

* fix(packagekit): ensure packagekit daemon is active

* test(packagekit): mock DBusClient

* Translations update from Hosted Weblate (#1233)

* Added translation using Weblate (Ukrainian)

* Translated using Weblate (German)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (French)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Russian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (169 of 169 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/

* Translated using Weblate (German)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (Swedish)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 98.4% (192 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (German)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (French)

Currently translated at 95.3% (186 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Italian)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/it/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 2.5% (5 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Added translation using Weblate (Czech)

* Translated using Weblate (Czech)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/cs/

* Added translation using Weblate (Slovak)

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Korean)

Currently translated at 45.6% (89 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ko/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Danish)

Currently translated at 46.6% (91 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/da/

* Translated using Weblate (Persian)

Currently translated at 37.4% (73 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fa/

* Translated using Weblate (Finnish)

Currently translated at 50.2% (98 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fi/

* Translated using Weblate (Indonesian)

Currently translated at 36.4% (71 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/id/

* Translated using Weblate (Japanese)

Currently translated at 81.0% (158 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ja/

* Translated using Weblate (Portuguese)

Currently translated at 81.0% (158 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pt/

* Translated using Weblate (Russian)

Currently translated at 86.1% (168 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ru/

* Translated using Weblate (Occitan)

Currently translated at 82.0% (160 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/oc/

* Translated using Weblate (Korean)

Currently translated at 45.6% (89 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ko/

* Translated using Weblate (Polish)

Currently translated at 52.8% (103 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pl/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 86.1% (168 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Translated using Weblate (Turkish)

Currently translated at 27.6% (54 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/tr/

* Translated using Weblate (Ukrainian)

Currently translated at 86.1% (168 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/uk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Finnish)

Currently translated at 90.2% (176 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fi/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (French)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Polish)

Currently translated at 70.2% (137 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pl/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

---------

Co-authored-by: Макс Лисенко <[email protected]>
Co-authored-by: Ettore Atalan <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>
Co-authored-by: bittin1ddc447d824349b2 <[email protected]>
Co-authored-by: albanobattistella <[email protected]>
Co-authored-by: Lattefang <[email protected]>
Co-authored-by: AsciiWolf <[email protected]>
Co-authored-by: Peter Vančo <[email protected]>
Co-authored-by: Fan Chou <[email protected]>
Co-authored-by: El <[email protected]>
Co-authored-by: Jiri Grönroos <[email protected]>
Co-authored-by: EGuillemot <[email protected]>
Co-authored-by: WaldiS <[email protected]>

* chore(deps): odrs ^0.0.1 (#1240)

* fix(explore): filter search results after search (#1241)

Rather than performing a search with a scope limited by the selected
package type, always search for all package types and filter the results
afterwards. This way searching for only deb packages, will still include
the snap versions in the results, if available and vice-versa.

* fix(explore): prefer desktop appstream components (#1242)

If multiple appstream components belong to the same package, prefer the
one that has type 'desktop-application' in
`_getAppstreamComponentFromSnap`.

Co-authored-by: Frederik Feichtmeier <[email protected]>

* Translations update from Hosted Weblate (#1243)

* Translated using Weblate (Polish)

Currently translated at 89.2% (174 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pl/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

---------

Co-authored-by: WaldiS <[email protected]>
Co-authored-by: Peter Vančo <[email protected]>

* chore: pin snapd.dart 0.4.8 (#1245)

* fix: Installed snap list taking long to load (#1248)

Fixes #1219

* Use cached_netowork_image for app banners and icons (#1249)

* Add cached_network_image

* feat: Cache app banners

* feat: Cache app icons

* feat(review): validate input (#1250)

- name (user_display) is not optional
- title (summary) must be 2-70 characters
- review (description) must be 2-3000 characters

https://github.com/GNOME/odrs-web/blob/master/odrs/views_api.py

Co-authored-by: Frederik Feichtmeier <[email protected]>

* Translations update from Hosted Weblate (#1244)

* Translated using Weblate (Polish)

Currently translated at 89.2% (174 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/pl/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

* Translated using Weblate (Danish)

Currently translated at 46.6% (91 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/da/

* Translated using Weblate (Danish)

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/da/

* Translated using Weblate (German)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/de/

* Translated using Weblate (Spanish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/es/

* Translated using Weblate (French)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/fr/

* Translated using Weblate (Japanese)

Currently translated at 81.0% (158 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/ja/

* Translated using Weblate (Italian)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/it/

* Translated using Weblate (Swedish)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sv/

* Translated using Weblate (Esperanto)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/eo/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hant/

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.4% (194 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/zh_Hans/

* Translated using Weblate (Czech)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/cs/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (195 of 195 strings)

Translation: Ubuntu Software Store/ubuntu-software
Translate-URL: https://hosted.weblate.org/projects/ubuntu-software/ubuntu-software/sk/

---------

Co-authored-by: WaldiS <[email protected]>
Co-authored-by: Peter Vančo <[email protected]>
Co-authored-by: Michael Millet <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: EGuillemot <[email protected]>
Co-authored-by: AsciiWolf <[email protected]>

* Raise version to 0.3.0

---------

Co-authored-by: J-P Nurmi <[email protected]>
Co-authored-by: Dennis Loose <[email protected]>
Co-authored-by: Weblate (bot) <[email protected]>
Co-authored-by: gallegonovato <[email protected]>
Co-authored-by: phlostically <[email protected]>
Co-authored-by: DefaultX-od <[email protected]>
Co-authored-by: Arve Eriksson <[email protected]>
Co-authored-by: Luna Jernberg <[email protected]>
Co-authored-by: sashimi <[email protected]>
Co-authored-by: MadsRH <[email protected]>
Co-authored-by: Quentin PAGÈS <[email protected]>
Co-authored-by: Henry Riehl <[email protected]>
Co-authored-by: Paul Kepinski <[email protected]>
Co-authored-by: Макс Лисенко <[email protected]>
Co-authored-by: Ettore Atalan <[email protected]>
Co-authored-by: Shan Shaji <[email protected]>
Co-authored-by: Shan Shaji <[email protected]>
Co-authored-by: bittin1ddc447d824349b2 <[email protected]>
Co-authored-by: albanobattistella <[email protected]>
Co-authored-by: Lattefang <[email protected]>
Co-authored-by: AsciiWolf <[email protected]>
Co-authored-by: J-P Nurmi <[email protected]>
Co-authored-by: Peter Vančo <[email protected]>
Co-authored-by: Fan Chou <[email protected]>
Co-authored-by: El <[email protected]>
Co-authored-by: Jiri Grönroos <[email protected]>
Co-authored-by: EGuillemot <[email protected]>
Co-authored-by: WaldiS <[email protected]>
Co-authored-by: dejvizelo <[email protected]>
Co-authored-by: Michael Millet <[email protected]>
  • Loading branch information
1 parent 55a537a commit c2a43e6
Show file tree
Hide file tree
Showing 126 changed files with 10,223 additions and 3,430 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: "stable"

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: flutter analyze
flutter-version: "3.10.x"
- run: dart pub get
- run: flutter analyze
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.10.x"
- run: sudo apt update
- run: sudo apt -y install git curl cmake ninja-build make clang libgtk-3-dev pkg-config
- run: flutter build linux -v
Expand All @@ -28,5 +29,5 @@ jobs:
- uses: actions/checkout@v3
- run: sudo snap install flutter --classic
- run: flutter doctor -v
- run: git -C $HOME/snap/flutter/common/flutter checkout 3.7.0
- run: git -C $HOME/snap/flutter/common/flutter checkout 3.10.0
- run: flutter build linux -v
4 changes: 3 additions & 1 deletion .github/workflows/cla-check.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: cla-check
on: [pull_request_target]
on:
pull_request_target:
branches: [main]

jobs:
cla-check:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.10.x"

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.10.x"
- run: flutter test --coverage
- uses: codecov/codecov-action@v3
with:
Expand All @@ -27,10 +28,10 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.7.x"
flutter-version: "3.10.x"
- run: sudo apt update
- run: sudo apt install -y clang cmake libblkid-dev libglib2.0-dev libgtk-3-dev liblzma-dev network-manager ninja-build packagekit pkg-config polkitd xfce4-notifyd xvfb
- run: sudo netplan set renderer=NetworkManager
- run: sudo cp integration_test/assets/10-network-manager.yaml /etc/netplan/
- run: sudo netplan apply
- run: sudo cp integration_test/assets/packagekit-ci.pkla /var/lib/polkit-1/localauthority/50-local.d/
- run: sudo cp integration_test/assets/network-manager-ci.pkla /var/lib/polkit-1/localauthority/50-local.d/
Expand Down
3 changes: 3 additions & 0 deletions integration_test/assets/10-network-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
network:
version: 2
renderer: NetworkManager
4 changes: 2 additions & 2 deletions integration_test/software_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void main() {

await app.main([]);
await tester.pumpUntil(
find.byType(StartPage),
timeout: const Duration(seconds: 80),
find.byType(ExploreAllPage),
timeout: const Duration(seconds: 120),
);
await tester.pumpAndSettle();

Expand Down
110 changes: 56 additions & 54 deletions lib/app/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ import 'package:launcher_entry/launcher_entry.dart';
import 'package:provider/provider.dart';
import 'package:software/app/app_model.dart';
import 'package:software/app/app_splash_screen.dart';
import 'package:software/app/collection/collection_page.dart';
import 'package:software/app/common/close_confirmation_dialog.dart';
import 'package:software/app/common/connectivity_notifier.dart';
import 'package:software/app/common/page_item.dart';
import 'package:software/app/common/rating_model.dart';
import 'package:software/app/common/snap/snap_section.dart';
import 'package:software/app/explore/explore_model.dart';
import 'package:software/app/explore/explore_page.dart';
import 'package:software/app/installed/installed_page.dart';
import 'package:software/app/package_installer/package_installer_page.dart';
import 'package:software/app/settings/settings_page.dart';
import 'package:software/app/updates/updates_page.dart';
import 'package:software/l10n/l10n.dart';
import 'package:software/services/appstream/appstream_service.dart';
import 'package:software/services/odrs_service.dart';
Expand Down Expand Up @@ -60,6 +61,13 @@ class App extends StatelessWidget {
ChangeNotifierProvider(
create: (_) => RatingModel(getService<OdrsService>()),
),
ChangeNotifierProvider(
create: (_) => ExploreModel(
getService<AppstreamService>(),
getService<SnapService>(),
getService<PackageService>(),
)..init(),
)
],
child: const App(),
);
Expand Down Expand Up @@ -119,31 +127,20 @@ class __AppState extends State<_App> {
gtkNotifier.addCommandLineListener(_commandLineListener);

final model = context.read<AppModel>();
var closeConfirmDialogOpen = false;

model.init(
onAskForQuit: () {
if (closeConfirmDialogOpen) {
return;
}
model.init().then((_) {
setState(() => _initialized = true);
});

closeConfirmDialogOpen = true;
showDialog(
context: context,
barrierDismissible: false,
builder: (c) {
return CloseWindowConfirmDialog(
onConfirm: () {
model.quit();
},
);
},
).then((_) => closeConfirmDialogOpen = false);
},
).then((_) {
setState(() {
_initialized = true;
});
YaruWindow.onClose(context, () {
if (!context.mounted || model.readyToQuit) {
return true;
}
return showDialog(
context: context,
barrierDismissible: false,
builder: (c) => const CloseWindowConfirmDialog(),
).then((result) => result ?? false);
});
}

Expand All @@ -155,7 +152,7 @@ class __AppState extends State<_App> {
.firstOrNull
?.substring(7);
if (debPath != null || snapName != null) {
_initialIndex = 3;
_initialIndex = 6;
}
});
}
Expand All @@ -169,39 +166,27 @@ class __AppState extends State<_App> {
.setupNotifications(updatesAvailable: context.l10n.updateAvailable);
final badgeCount = context.select((AppModel m) => m.snapChanges.length);
final processing = context.select((AppModel m) => m.snapChanges.isNotEmpty);
final errorMessage = context.select((AppModel m) => m.errorMessage);
final updateAmount = context.select((AppModel m) => m.updateAmount);
final updatesProcessing =
context.select((AppModel m) => m.updatesProcessing);
final setSelectedIndex = context.select((AppModel m) => m.setSelectedIndex);

final pageItems = [
_createExplorePageItem(SnapSection.all),
_createExplorePageItem(SnapSection.productivity),
_createExplorePageItem(SnapSection.development),
_createExplorePageItem(SnapSection.games),
_createExplorePageItem(SnapSection.art_and_design),
PageItem(
titleBuilder: ExplorePage.createTitle,
builder: (context) => ExplorePage.create(context, errorMessage),
iconBuilder: ExplorePage.createIcon,
),
PageItem(
titleBuilder: InstalledPage.createTitle,
builder: (context) => InstalledPage.create(context),
iconBuilder: (context, selected) => InstalledPage.createIcon(
titleBuilder: CollectionPage.createTitle,
builder: (context) => CollectionPage.create(context),
iconBuilder: (context, selected) => CollectionPage.createIcon(
context: context,
selected: selected,
badgeCount: badgeCount,
processing: processing,
),
),
PageItem(
titleBuilder: UpdatesPage.createTitle,
builder: (context) => UpdatesPage.create(
context: context,
windowWidth: width,
),
iconBuilder: (context, selected) => UpdatesPage.createIcon(
context: context,
selected: selected,
badgeCount: updateAmount,
processing: updatesProcessing,
updateCount: updateAmount,
updateProcessing: updatesProcessing,
),
),
if (debPath != null || snapName != null)
Expand All @@ -215,12 +200,6 @@ class __AppState extends State<_App> {
iconBuilder: (context, selected) =>
PackageInstallerPage.createIcon(context, selected),
),
PageItem(
titleBuilder: SettingsPage.createTitle,
builder: SettingsPage.create,
iconBuilder: (context, selected) =>
SettingsPage.createIcon(context, selected),
),
];

var normalWindowSize = width > 800 && width < 1200;
Expand All @@ -233,6 +212,18 @@ class __AppState extends State<_App> {

return _initialized
? YaruNavigationPage(
trailing: Padding(
padding: const EdgeInsets.only(bottom: 10),
child: YaruNavigationRailItem(
icon: SettingsPage.createIcon(context, false),
label: SettingsPage.createTitle(context),
style: itemStyle,
onTap: () => showDialog(
context: context,
builder: (context) => SettingsPage.create(context),
),
),
),
leading: AnimatedContainer(
width: normalWindowSize
? 100
Expand All @@ -258,4 +249,15 @@ class __AppState extends State<_App> {
)
: const StoreSplashScreen();
}

PageItem _createExplorePageItem(SnapSection snapSection) => PageItem(
titleBuilder: (context) =>
ExplorePage.createTitle(context, snapSection),
builder: (context) => ExplorePage(section: snapSection),
iconBuilder: (context, selected) => ExplorePage.createIcon(
context: context,
selected: selected,
snapSection: snapSection,
),
);
}
69 changes: 4 additions & 65 deletions lib/app/app_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ import 'package:software/services/appstream/appstream_service.dart';
import 'package:software/services/packagekit/package_service.dart';
import 'package:software/services/snap_service.dart';
import 'package:software/services/packagekit/updates_state.dart';
import 'package:window_manager/window_manager.dart';

class AppModel extends SafeChangeNotifier implements WindowListener {
class AppModel extends SafeChangeNotifier {
AppModel(
this._snapService,
this._appstreamService,
Expand Down Expand Up @@ -74,19 +73,14 @@ class AppModel extends SafeChangeNotifier implements WindowListener {
}
}

int get updateAmount => _packageService.updates.length;
int get updateAmount =>
_packageService.updates.length + _snapService.snapsWithUpdate.length;

bool get updatesProcessing =>
updatesState == UpdatesState.checkingForUpdates ||
updatesState == UpdatesState.updating;

void Function()? _onAskForQuit;

Future<void> init({required void Function() onAskForQuit}) async {
_onAskForQuit = onAskForQuit;
windowManager.setPreventClose(true);
windowManager.addListener(this);

Future<void> init() async {
try {
_snapService.init();
} on SnapdException catch (e) {
Expand Down Expand Up @@ -145,63 +139,8 @@ class AppModel extends SafeChangeNotifier implements WindowListener {
notifyListeners();
}

void quit() {
windowManager.setPreventClose(false);
windowManager.close();
}

bool get readyToQuit =>
updatesState == null ||
updatesState == UpdatesState.readyToUpdate ||
updatesState == UpdatesState.noUpdates;

@override
void onWindowBlur() {}

@override
void onWindowClose() {
if (readyToQuit) {
quit();
} else {
if (_onAskForQuit != null) {
_onAskForQuit!();
}
}
}

@override
void onWindowEnterFullScreen() {}

@override
void onWindowEvent(String eventName) {}

@override
void onWindowFocus() {}

@override
void onWindowLeaveFullScreen() {}

@override
void onWindowMaximize() {}

@override
void onWindowMinimize() {}

@override
void onWindowMove() {}

@override
void onWindowMoved() {}

@override
void onWindowResize() {}

@override
void onWindowResized() {}

@override
void onWindowRestore() {}

@override
void onWindowUnmaximize() {}
}
Loading

0 comments on commit c2a43e6

Please sign in to comment.