From 9e55366153abd5e1b83c3fafb6e0f399de40b965 Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Thu, 7 Mar 2024 09:41:52 +0200 Subject: [PATCH 1/2] feat(package_info_plus): Update min iOS target to 12, bump min Dart SDK to 3.3 --- .../example/ios/Runner.xcodeproj/project.pbxproj | 6 +++--- .../package_info_plus/example/lib/main.dart | 4 ++-- .../package_info_plus/ios/package_info_plus.podspec | 2 +- packages/package_info_plus/package_info_plus/pubspec.yaml | 5 ++--- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/package_info_plus/package_info_plus/example/ios/Runner.xcodeproj/project.pbxproj b/packages/package_info_plus/package_info_plus/example/ios/Runner.xcodeproj/project.pbxproj index f6d2debdc0..4a6d538d25 100644 --- a/packages/package_info_plus/package_info_plus/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/package_info_plus/package_info_plus/example/ios/Runner.xcodeproj/project.pbxproj @@ -452,7 +452,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -579,7 +579,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -628,7 +628,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/package_info_plus/package_info_plus/example/lib/main.dart b/packages/package_info_plus/package_info_plus/example/lib/main.dart index d3ccb54f3d..74e092de80 100644 --- a/packages/package_info_plus/package_info_plus/example/lib/main.dart +++ b/packages/package_info_plus/package_info_plus/example/lib/main.dart @@ -14,7 +14,7 @@ void main() { } class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -30,7 +30,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key}) : super(key: key); + const MyHomePage({super.key}); @override State createState() => _MyHomePageState(); diff --git a/packages/package_info_plus/package_info_plus/ios/package_info_plus.podspec b/packages/package_info_plus/package_info_plus/ios/package_info_plus.podspec index b658079c69..5cb3b3afeb 100644 --- a/packages/package_info_plus/package_info_plus/ios/package_info_plus.podspec +++ b/packages/package_info_plus/package_info_plus/ios/package_info_plus.podspec @@ -14,7 +14,7 @@ Downloaded by pub (not CocoaPods). s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.platform = :ios, '11.0' + s.platform = :ios, '12.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.resource_bundles = {'package_info_plus_privacy' => ['PrivacyInfo.xcprivacy']} end diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index e26700ddf0..a24f264439 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -33,7 +33,7 @@ dependencies: meta: ^1.8.0 path: ^1.8.2 package_info_plus_platform_interface: ^2.0.1 - web: ">=0.3.0 <0.6.0" + web: ">=0.5.0 <=0.6.0" # win32 is compatible across v4 and v5 for Win32 only (not COM) win32: ">=4.0.0 <6.0.0" @@ -45,5 +45,4 @@ dev_dependencies: test: ^1.22.0 environment: - sdk: ^3.2.0 - flutter: ">=3.6.0" + sdk: ">=3.3.0 <4.0.0" From 2a057e1ae9a9b0b40d9e856d5d0eaea7462b9e34 Mon Sep 17 00:00:00 2001 From: Volodymyr Buberenko Date: Thu, 7 Mar 2024 09:54:10 +0200 Subject: [PATCH 2/2] Bring back Flutter requirement to pass pub.dev checks --- packages/package_info_plus/package_info_plus/pubspec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/package_info_plus/package_info_plus/pubspec.yaml b/packages/package_info_plus/package_info_plus/pubspec.yaml index a24f264439..085f1b3415 100644 --- a/packages/package_info_plus/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/package_info_plus/pubspec.yaml @@ -46,3 +46,4 @@ dev_dependencies: environment: sdk: ">=3.3.0 <4.0.0" + flutter: ">=3.19.0"