Skip to content

Commit 38e7f49

Browse files
committed
chore(share_plus): Update all dependencies and requirements
1 parent f5edbdb commit 38e7f49

9 files changed

Lines changed: 134 additions & 117 deletions

File tree

packages/share_plus/share_plus/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Sharing files is not supported on Linux.
2626

2727
## Requirements
2828

29-
- Flutter >=3.22.0
30-
- Dart >=3.4.0 <4.0.0
31-
- iOS >=12.0
32-
- macOS >=10.14
29+
- Flutter >=3.41.6
30+
- Dart >=3.11.0 <4.0.0
31+
- iOS >=13.0
32+
- macOS >=10.15
3333
- Java 17
3434
- Kotlin 2.2.0
3535
- Android Gradle Plugin >=8.12.1

packages/share_plus/share_plus/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
23-
<key>MinimumOSVersion</key>
24-
<string>13.0</string>
2523
</dict>
2624
</plist>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
import UIKit
21
import Flutter
2+
import UIKit
33

44
@main
5-
@objc class AppDelegate: FlutterAppDelegate {
5+
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
66
override func application(
77
_ application: UIApplication,
88
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
99
) -> Bool {
10-
GeneratedPluginRegistrant.register(with: self)
1110
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
1211
}
12+
13+
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
14+
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
15+
}
1316
}

packages/share_plus/share_plus/example/ios/Runner/Info.plist

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,29 @@
2626
<string>$(FLUTTER_BUILD_NUMBER)</string>
2727
<key>LSRequiresIPhoneOS</key>
2828
<true/>
29+
<key>NSPhotoLibraryUsageDescription</key>
30+
<string>Load photos for sharing functionality</string>
31+
<key>UIApplicationSceneManifest</key>
32+
<dict>
33+
<key>UIApplicationSupportsMultipleScenes</key>
34+
<false/>
35+
<key>UISceneConfigurations</key>
36+
<dict>
37+
<key>UIWindowSceneSessionRoleApplication</key>
38+
<array>
39+
<dict>
40+
<key>UISceneClassName</key>
41+
<string>UIWindowScene</string>
42+
<key>UISceneConfigurationName</key>
43+
<string>flutter</string>
44+
<key>UISceneDelegateClassName</key>
45+
<string>FlutterSceneDelegate</string>
46+
<key>UISceneStoryboardFile</key>
47+
<string>Main</string>
48+
</dict>
49+
</array>
50+
</dict>
51+
</dict>
2952
<key>UIApplicationSupportsIndirectInputEvents</key>
3053
<true/>
3154
<key>UILaunchStoryboardName</key>
@@ -45,8 +68,6 @@
4568
<string>UIInterfaceOrientationLandscapeLeft</string>
4669
<string>UIInterfaceOrientationLandscapeRight</string>
4770
</array>
48-
<key>NSPhotoLibraryUsageDescription</key>
49-
<string>Load photos for sharing functionality</string>
5071
<key>UIViewControllerBasedStatusBarAppearance</key>
5172
<false/>
5273
</dict>

packages/share_plus/share_plus/example/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ class MyHomePageState extends State<MyHomePage> {
165165
},
166166
icon: const Icon(Icons.add),
167167
),
168-
if (Platform.isIOS || Platform.isMacOS) const SizedBox(height: 16),
169-
if (Platform.isIOS || Platform.isMacOS)
168+
if (!kIsWeb && (Platform.isIOS || Platform.isMacOS))
169+
const SizedBox(height: 16),
170+
if (!kIsWeb && (Platform.isIOS || Platform.isMacOS))
170171
ElevatedButton(
171172
onPressed: _onSelectExcludedActivityType,
172173
child: const Text('Add Excluded Activity Type'),

packages/share_plus/share_plus/lib/src/windows_version_helper.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class VersionHelper {
2929
..wServicePackMajor = 0
3030
..wServicePackMinor = 0
3131
..wSuiteMask = 0
32-
..wProductType = 0
33-
..wReserved = 0;
32+
..wProductType = 0;
3433
final rtlGetVersion = DynamicLibrary.open('ntdll.dll').lookupFunction<
3534
Void Function(Pointer<OSVERSIONINFOEX>),
3635
void Function(Pointer<OSVERSIONINFOEX>)>('RtlGetVersion');

packages/share_plus/share_plus/pubspec.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,29 @@ flutter:
2828
pluginClass: SharePlusWindowsPluginCApi
2929

3030
dependencies:
31-
cross_file: ^0.3.4+2
32-
meta: ^1.8.0
33-
mime: ">=1.0.4 <3.0.0"
31+
cross_file: ^0.3.5+2
32+
meta: ^1.17.0
33+
mime: ^2.0.0
3434
flutter:
3535
sdk: flutter
3636
flutter_web_plugins:
3737
sdk: flutter
3838
share_plus_platform_interface: ^6.1.0
39-
file: ">=6.1.4 <8.0.0"
40-
url_launcher_web: ^2.3.2
41-
url_launcher_windows: ^3.1.2
42-
url_launcher_linux: ^3.1.1
39+
file: ^7.0.1
40+
url_launcher_web: ^2.4.2
41+
url_launcher_windows: ^3.1.5
42+
url_launcher_linux: ^3.2.2
4343
url_launcher_platform_interface: ^2.3.2
44-
ffi: ^2.1.2
45-
web: ^1.0.0
46-
win32: ">=5.5.3 <7.0.0"
44+
ffi: ^2.2.0
45+
web: ^1.1.1
46+
win32: ^6.0.0
4747

4848
dev_dependencies:
4949
flutter_test:
5050
sdk: flutter
51-
flutter_lints: ">=4.0.0 <6.0.0"
51+
flutter_lints: ^6.0.0
5252

5353
environment:
54-
sdk: ">=3.4.0 <4.0.0"
55-
flutter: ">=3.22.0"
54+
sdk: ">=3.11.0 <4.0.0"
55+
flutter: ">=3.41.0"
5656

packages/share_plus/share_plus_platform_interface/pubspec.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ homepage: https://github.com/fluttercommunity/plus_plugins
55
repository: https://github.com/fluttercommunity/plus_plugins/tree/main/packages/
66

77
dependencies:
8-
cross_file: ^0.3.3+4
8+
cross_file: ^0.3.5+2
99
flutter:
1010
sdk: flutter
11-
meta: ^1.8.0
12-
mime: ">=1.0.4 <3.0.0"
13-
plugin_platform_interface: ^2.1.4
14-
path_provider: ^2.0.14
11+
meta: ^1.17.0
12+
mime: ^2.0.0
13+
plugin_platform_interface: ^2.1.8
14+
path_provider: ^2.1.5
1515
uuid: ">=3.0.7 <5.0.0"
1616

1717
dev_dependencies:
1818
flutter_test:
1919
sdk: flutter
20-
mockito: ^5.4.0
21-
flutter_lints: ">=4.0.0 <6.0.0"
22-
test: ^1.22.0
20+
mockito: ^5.6.4
21+
flutter_lints: ^6.0.0
2322

2423
environment:
25-
sdk: ">=2.18.0 <4.0.0"
26-
flutter: ">=3.3.0"
24+
sdk: ">=3.11.0 <4.0.0"
25+
flutter: ">=3.41.0"

0 commit comments

Comments
 (0)