Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update and fix all dependencies #741

Merged
merged 17 commits into from
Sep 21, 2023
Merged

Conversation

XavierChanth
Copy link
Member

@XavierChanth XavierChanth commented Sep 13, 2023

- What I did

  • Updated all dependencies in each package, and then rolled back a handful due to dependency constraints in other places
    • (intl, meta - pinned by the flutter sdk)
    • (collection, mocktail - external dependencies)
  • Fixed the breaking changes in each of the packages

- How to verify it

- Description for the changelog
deps: Update and fix all dependencies

@XavierChanth XavierChanth requested review from gkc and cpswan September 13, 2023 09:26
@XavierChanth XavierChanth changed the title deps: Update and fix all dependencies chore(deps): Update and fix all dependencies Sep 13, 2023
@XavierChanth
Copy link
Member Author

I'm going to leave comments on each pubspec.yaml with which dependencies had major version changes, and then we can determine whether we should consider those packages as breaking.

}
});
if (context.mounted) {
var size = MediaQuery.of(context).size;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapped with a mounted check

final file = XFile(tempFilePath);
await file.saveTo(path ?? '');
await file.saveTo(path.path);
if (context.mounted) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getSavePath was removed in 1.0.0 of path_selector, so I replaced it with the getSaveLocation

@@ -1,4 +1,5 @@
name: at_widgets

packages:
- packages/**
- packages/*
- packages/*/*example
Copy link
Member Author

@XavierChanth XavierChanth Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicitly identified the packages and example globs just in case there are further nested pubspec.yaml files which we might want to ignore in melos


# desktop - dependencies
file_selector: '>=0.8.4+1 <2.0.0'
file_selector_macos: '>=0.8.2 <1.0.0'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file_selector '>=0.8.4+1 <2.0.0' -> ^1.0.1

);
atClientPreference = await futurePreference;
if (context.mounted) {
final result = await AtOnboarding.onboard(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uptake of the new onboarding widget

proj4dart: ^2.1.0
meta: ^1.9.1
geolocator: ^9.0.2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

geolocator ^9.0.2 -> ^10.0.1

case AtOnboardingResultStatus.cancel:
break;
if (context.mounted) {
final result = await AtOnboarding.onboard(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapped with a context.mounted check

});
onDidReceiveNotificationResponse: (NotificationResponse payload) {
onNotificationClick(payload);
});
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The _notificationsPlugin.initialize API changed, I'm not sure if this is correct, I will be investigating this one for breaking changes.

}

initializePlatformSpecifics() {
var initializationSettingsAndroid =
AndroidInitializationSettings('notification_icon');
var initializationSettingsIOS = IOSInitializationSettings(
var initializationSettingsIOS =
DarwinInitializationSettings(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IOSInitializationSettings is now DarwinInitializationSettings

@@ -65,13 +66,13 @@ class NotificationService {
AndroidNotificationDetails(
'CHANNEL_ID',
'CHANNEL_NAME',
'CHANNEL_DESCRIPTION',
channelDescription: 'CHANNEL_DESCRIPTION',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed from a positional argument to a named one

sliding_up_panel: ^2.0.0+1
geolocator: ^9.0.2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

geolocator ^9.0.2 -> ^10.0.1
... does events even use geolocator???

@@ -69,7 +68,7 @@ void main() {

test('AtSyncUIService sync', () {
AtSyncUIService().syncService = mockSyncService;
AtClientManager.getInstance().syncService = mockSyncService;
AtClientManager.getInstance().atClient.syncService = mockSyncService;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use the non-deprecated API

@sachins-geekyants
Copy link
Contributor

I'm going to leave comments on each pubspec.yaml with which dependencies had major version changes, and then we can determine whether we should consider those packages as breaking.

@XavierChanth IMO if any of the major dependency update causes change in our package api then we should be considering for a major version change else minor should be fine.

@XavierChanth
Copy link
Member Author

XavierChanth commented Sep 21, 2023

Package versions to be published with this PR:

at_backupkey_flutter: 4.0.11
at_chat_flutter: 3.0.10
at_contacts_flutter: 4.0.12
at_contacts_group_flutter: 4.0.14
at_events_flutter: 3.1.12
at_follows_flutter: 3.0.10
at_invitation_flutter: 2.0.1
at_location_flutter: 3.1.10
at_login_flutter: 0.0.2
at_notify_flutter: 1.0.8
at_onboarding_flutter: 6.1.4
at_sync_ui_flutter: 1.0.10
at_theme_flutter: 1.0.6

@XavierChanth XavierChanth marked this pull request as ready for review September 21, 2023 07:46
Copy link
Member

@cpswan cpswan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @XavierChanth

Mostly LGTM, but @sachins-geekyants is right about at_onboarding_flutter needing to be local

@XavierChanth XavierChanth requested a review from cpswan September 21, 2023 08:41
@XavierChanth
Copy link
Member Author

@sachins-geekyants @cpswan both have been fixed

cpswan
cpswan previously approved these changes Sep 21, 2023
@XavierChanth
Copy link
Member Author

Please hold off on merging, until all publishing has been complete, just in case there are further changes that need to be added and reviewed

@XavierChanth
Copy link
Member Author

XavierChanth commented Sep 21, 2023

Publishing list:

  • at_backupkey_flutter: 4.0.11
  • at_chat_flutter: 3.0.10
  • at_contacts_flutter: 4.0.12
  • at_contacts_group_flutter: 4.0.14
  • at_events_flutter: 3.1.12
  • at_follows_flutter: 3.0.10
  • at_invitation_flutter: 2.0.1
  • at_location_flutter: 3.1.10
  • at_login_flutter: 0.0.2 - skipped since it isn't published to date
  • at_notify_flutter: 1.0.8
  • at_onboarding_flutter: 6.1.4
  • at_sync_ui_flutter: 1.0.10
  • at_theme_flutter: 1.0.6

@XavierChanth XavierChanth merged commit 567bd5c into trunk Sep 21, 2023
2 checks passed
@XavierChanth XavierChanth deleted the deps/everything branch April 18, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants