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
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
@@ -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

38 changes: 9 additions & 29 deletions packages/at_backupkey_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,22 @@ environment:
flutter: ">=1.20.0"

dependencies:
flutter:
sdk: flutter

at_app_flutter: ^5.2.0
at_backupkey_flutter:
path: ../
at_onboarding_flutter: ^6.1.0

# When depending on this package from a real application you should use:
# at_backupkey_flutter: ^x.y.z

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.0
at_app_flutter: ^5.0.0+1
at_client_mobile: ^3.2.12
at_onboarding_flutter: ^6.1.3
cupertino_icons: ^1.0.6
flutter:
sdk: flutter
path: ^1.8.3
path_provider: ^2.1.1

dev_dependencies:
flutter_lints: ^2.0.1

dependency_overrides:
win32: ^5.0.5
file_selector_windows: ^0.9.3
permission_handler: ^10.4.1
file_selector_linux: ^0.9.2
file_selector: ^0.9.5
file_selector_macos: ^0.9.3
ffi: ^2.0.1
at_backupkey_flutter:
path: ../
flutter_lints: ^2.0.3

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
assets:
Expand All @@ -51,18 +35,14 @@ flutter:
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
Expand Down
36 changes: 20 additions & 16 deletions packages/at_backupkey_flutter/lib/widgets/backup_key_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ class BackupKeyWidget extends StatelessWidget {
child: Showcase(
key: key,
description:
'''Each atSign has a unique key used to verify ownership and encrypt your data. You will get this key when you first activate your atSign, and you will need it to pair your atSign with other devices and all atPlatform apps.

PLEASE SECURELY SAVE YOUR KEYS. WE DO NOT HAVE ACCESS TO THEM AND CANNOT CREATE A BACKUP OR RESET THEM.''',
'Each atSign has a unique key used to verify ownership and encrypt your data. You will get this key when you first activate your atSign, and you will need it to pair your atSign with other devices and all atPlatform apps.'
'\n\n'
'PLEASE SECURELY SAVE YOUR KEYS. WE DO NOT HAVE ACCESS TO THEM AND CANNOT CREATE A BACKUP OR RESET THEM.',
targetShapeBorder: const CircleBorder(),
disableMovingAnimation: true,
targetBorderRadius:
Expand Down Expand Up @@ -335,21 +335,25 @@ PLEASE SECURELY SAVE YOUR KEYS. WE DO NOT HAVE ACCESS TO THEM AND CANNOT CREATE
},
);
} else if (Platform.isIOS) {
var size = MediaQuery.of(context).size;
await Share.shareXFiles(
[XFile(tempFilePath)],
sharePositionOrigin: Rect.fromLTWH(0, 0, size.width, size.height / 2),
).then((ShareResult shareResult) {
if (shareResult.status == ShareResultStatus.success) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('File saved successfully')));
}
});
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

await Share.shareXFiles(
[XFile(tempFilePath)],
sharePositionOrigin:
Rect.fromLTWH(0, 0, size.width, size.height / 2),
).then((ShareResult shareResult) {
if (shareResult.status == ShareResultStatus.success) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('File saved successfully')));
}
});
}
} else {
final path =
await getSavePath(suggestedName: '$atsign${Strings.backupKeyName}');
final path = await getSaveLocation(
suggestedName: '$atsign${Strings.backupKeyName}');
if (path == null) return;
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

showSnackBar(
context: context,
Expand Down
20 changes: 10 additions & 10 deletions packages/at_backupkey_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ environment:
dependencies:
flutter:
sdk: flutter
share_plus: ^7.0.2
permission_handler: ^10.4.1
path_provider: ^2.0.9
share_plus: ^7.1.0
permission_handler: ^11.0.0
XavierChanth marked this conversation as resolved.
Show resolved Hide resolved
path_provider: ^2.1.1
at_file_saver: ^0.1.2
at_utils: ^3.0.12
at_client_mobile: ^3.2.11
at_utils: ^3.0.15
at_client_mobile: ^3.2.12
showcaseview: ^2.0.3
device_info_plus: ^9.0.2
device_info_plus: ^9.0.3
# desktop - dependencies
file_selector: ^0.9.5
file_selector_macos: ^0.9.3
file_selector_windows: ^0.9.3
file_selector_linux: ^0.9.2
file_selector: ^1.0.1
XavierChanth marked this conversation as resolved.
Show resolved Hide resolved
file_selector_macos: ^0.9.3+2
file_selector_windows: ^0.9.3+1
file_selector_linux: ^0.9.2+1

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import device_info_plus
import file_selector_macos
import package_info_plus
import path_provider_foundation
import share_plus_macos
import share_plus
import shared_preferences_foundation
import url_launcher_macos

Expand Down
23 changes: 11 additions & 12 deletions packages/at_chat_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,24 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
at_app_flutter: ^5.0.1
at_app_flutter: ^5.2.0
at_chat_flutter:
# When depending on this package from a real application you should use:
# at_chat_flutter: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
at_onboarding_flutter: ^6.1.0
at_onboarding_flutter: ^6.1.3

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6
flutter:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
assets:
Expand All @@ -56,17 +55,17 @@ flutter:
# the material Icons class.
uses-material-design: true

dev_dependencies:
flutter_test:
sdk: flutter
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
Expand Down
24 changes: 11 additions & 13 deletions packages/at_chat_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: at_chat_flutter
description: A Flutter plugin project to provide a chat feature between atSigns built on the atPlatform to any Flutter application.
description: A Flutter plugin project to provide a chat feature between atSigns
built on the atPlatform to any Flutter application.
version: 3.0.9
homepage: https://docs.atsign.com/
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_chat_flutter
Expand All @@ -10,26 +11,24 @@ environment:
flutter: ">=1.20.0"

dependencies:
at_client: ^3.0.64
at_client_mobile: ^3.2.12
at_common_flutter: ^2.0.12
at_commons: ^3.0.55
at_contact: ^3.0.7
at_lookup: ^3.0.40
file_picker: ^5.5.0
flutter:
sdk: flutter
at_contact: ^3.0.7
at_common_flutter: ^2.0.11
at_commons: ^3.0.47
at_client_mobile: ^3.2.10
at_lookup: ^3.0.37
at_client: ^3.0.61
file_picker: ^5.0.0


dev_dependencies:
flutter_lints: ^2.0.1
mocktail: ^0.3.0
flutter_lints: ^2.0.3
flutter_test:
sdk: flutter
mocktail: ^0.3.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
# This section identifies this Flutter project as a plugin project.
Expand All @@ -54,7 +53,6 @@ flutter:
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# To add custom fonts to your plugin package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
Expand Down
2 changes: 1 addition & 1 deletion packages/at_common_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ environment:
dependencies:
flutter:
sdk: flutter

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ import Foundation

import at_file_saver
import biometric_storage
import device_info_plus
import file_selector_macos
import package_info_plus_macos
import package_info_plus
import path_provider_foundation
import share_plus_macos
import share_plus
import shared_preferences_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSaverPlugin.register(with: registry.registrar(forPlugin: "FileSaverPlugin"))
BiometricStorageMacOSPlugin.register(with: registry.registrar(forPlugin: "BiometricStorageMacOSPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
27 changes: 11 additions & 16 deletions packages/at_contacts_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,30 @@ environment:
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
at_app_flutter: ^5.2.0
at_backupkey_flutter: ^4.0.10
at_contacts_flutter:
path: ../
at_onboarding_flutter: ^6.1.3

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
at_app_flutter: 5.2.0
at_onboarding_flutter: ^6.0.0
at_backupkey_flutter: ^4.0.6
at_contacts_flutter:
path: ../
cupertino_icons: ^1.0.6
flutter:
sdk: flutter

dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^1.0.4
flutter_lints: ^2.0.3
flutter_test:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
assets:
Expand All @@ -60,18 +59,14 @@ flutter:
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages

# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <at_file_saver/file_saver_plugin.h>
#include <file_selector_windows/file_selector_windows.h>
#include <permission_handler_windows/permission_handler_windows_plugin.h>
#include <share_plus/share_plus_windows_plugin_c_api.h>
#include <url_launcher_windows/url_launcher_windows.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
Expand All @@ -18,6 +19,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
registry->GetRegistrarForPlugin("FileSelectorWindows"));
PermissionHandlerWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
SharePlusWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
at_file_saver
file_selector_windows
permission_handler_windows
share_plus
url_launcher_windows
)

Expand Down
Loading