Skip to content

Commit 5f93878

Browse files
authored
feat(device_info_plus)!: Bump win32 from 5.15.0 to 6.0.0 (#3791)
1 parent 0e3eb91 commit 5f93878

29 files changed

Lines changed: 337 additions & 340 deletions

packages/device_info_plus/device_info_plus/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Get current device information from within the Flutter application.
1616

1717
## Requirements
1818

19-
- Flutter >=3.29.0
20-
- Dart >=3.7.0 <4.0.0
21-
- iOS >=12.0
22-
- macOS >=10.14
19+
- Flutter >=3.41.0
20+
- Dart >=3.11.0 <4.0.0
21+
- iOS >=13.0
22+
- macOS >=10.15
2323
- Java 17
2424
- Kotlin 2.2.0
2525
- Android Gradle Plugin >=8.12.1

packages/device_info_plus/device_info_plus/example/.metadata

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/device_info_plus/device_info_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>12.0</string>
2523
</dict>
2624
</plist>

packages/device_info_plus/device_info_plus/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
452452
GCC_WARN_UNUSED_FUNCTION = YES;
453453
GCC_WARN_UNUSED_VARIABLE = YES;
454-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
454+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
455455
MTL_ENABLE_DEBUG_INFO = NO;
456456
SDKROOT = iphoneos;
457457
SUPPORTED_PLATFORMS = iphoneos;
@@ -469,7 +469,7 @@
469469
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
470470
ENABLE_BITCODE = NO;
471471
INFOPLIST_FILE = Runner/Info.plist;
472-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
472+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
473473
LD_RUNPATH_SEARCH_PATHS = (
474474
"$(inherited)",
475475
"@executable_path/Frameworks",
@@ -579,7 +579,7 @@
579579
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
580580
GCC_WARN_UNUSED_FUNCTION = YES;
581581
GCC_WARN_UNUSED_VARIABLE = YES;
582-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
582+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
583583
MTL_ENABLE_DEBUG_INFO = YES;
584584
ONLY_ACTIVE_ARCH = YES;
585585
SDKROOT = iphoneos;
@@ -628,7 +628,7 @@
628628
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
629629
GCC_WARN_UNUSED_FUNCTION = YES;
630630
GCC_WARN_UNUSED_VARIABLE = YES;
631-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
631+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
632632
MTL_ENABLE_DEBUG_INFO = NO;
633633
SDKROOT = iphoneos;
634634
SUPPORTED_PLATFORMS = iphoneos;
@@ -648,7 +648,7 @@
648648
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
649649
ENABLE_BITCODE = NO;
650650
INFOPLIST_FILE = Runner/Info.plist;
651-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
651+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
652652
LD_RUNPATH_SEARCH_PATHS = (
653653
"$(inherited)",
654654
"@executable_path/Frameworks",
@@ -671,7 +671,7 @@
671671
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
672672
ENABLE_BITCODE = NO;
673673
INFOPLIST_FILE = Runner/Info.plist;
674-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
674+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
675675
LD_RUNPATH_SEARCH_PATHS = (
676676
"$(inherited)",
677677
"@executable_path/Frameworks",

packages/device_info_plus/device_info_plus/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
2930
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<MacroExpansion>
3132
<BuildableReference
@@ -54,11 +55,13 @@
5455
buildConfiguration = "Debug"
5556
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5657
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
58+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
5759
launchStyle = "0"
5860
useCustomWorkingDirectory = "NO"
5961
ignoresPersistentStateOnLaunch = "NO"
6062
debugDocumentVersioning = "YES"
6163
debugServiceExtension = "internal"
64+
enableGPUValidationMode = "1"
6265
allowLocationSimulation = "YES">
6366
<BuildableProductRunnable
6467
runnableDebuggingMode = "0">
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/device_info_plus/device_info_plus/example/ios/Runner/Info.plist

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@
2626
<string>$(FLUTTER_BUILD_NUMBER)</string>
2727
<key>LSRequiresIPhoneOS</key>
2828
<true/>
29+
<key>UIApplicationSceneManifest</key>
30+
<dict>
31+
<key>UIApplicationSupportsMultipleScenes</key>
32+
<false/>
33+
<key>UISceneConfigurations</key>
34+
<dict>
35+
<key>UIWindowSceneSessionRoleApplication</key>
36+
<array>
37+
<dict>
38+
<key>UISceneClassName</key>
39+
<string>UIWindowScene</string>
40+
<key>UISceneConfigurationName</key>
41+
<string>flutter</string>
42+
<key>UISceneDelegateClassName</key>
43+
<string>FlutterSceneDelegate</string>
44+
<key>UISceneStoryboardFile</key>
45+
<string>Main</string>
46+
</dict>
47+
</array>
48+
</dict>
49+
</dict>
2950
<key>UIApplicationSupportsIndirectInputEvents</key>
3051
<true/>
3152
<key>UILaunchStoryboardName</key>

packages/device_info_plus/device_info_plus/example/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ dev_dependencies:
1313
sdk: flutter
1414
integration_test:
1515
sdk: flutter
16-
flutter_lints: ">=4.0.0 <6.0.0"
16+
flutter_lints: ^6.0.0
1717

1818
flutter:
1919
uses-material-design: true
2020

2121
environment:
22-
sdk: '>=3.7.0 <4.0.0'
23-
flutter: '>=3.29.0'
22+
sdk: '>=3.11.0 <4.0.0'
23+
flutter: '>=3.41.0'
2424

2525

packages/device_info_plus/device_info_plus/example/windows/CMakeLists.txt

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
cmake_minimum_required(VERSION 3.15)
2-
project(example LANGUAGES CXX)
1+
# Project-level configuration.
2+
cmake_minimum_required(VERSION 3.14)
3+
project(device_info_plus_example LANGUAGES CXX)
34

4-
set(BINARY_NAME "example")
5+
# The name of the executable created for the application. Change this to change
6+
# the on-disk name of your application.
7+
set(BINARY_NAME "device_info_plus_example")
58

6-
cmake_policy(SET CMP0063 NEW)
9+
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
10+
# versions of CMake.
11+
cmake_policy(VERSION 3.14...3.25)
712

8-
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
9-
10-
# Configure build options.
13+
# Define build configuration option.
1114
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
1215
if(IS_MULTICONFIG)
1316
set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
@@ -20,7 +23,7 @@ else()
2023
"Debug" "Profile" "Release")
2124
endif()
2225
endif()
23-
26+
# Define settings for the Profile build mode.
2427
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
2528
set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
2629
set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
@@ -30,6 +33,10 @@ set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
3033
add_definitions(-DUNICODE -D_UNICODE)
3134

3235
# Compilation settings that should be applied to most targets.
36+
#
37+
# Be cautious about adding new options here, as plugins use this function by
38+
# default. In most cases, you should add new options to specific targets instead
39+
# of modifying this function.
3340
function(APPLY_STANDARD_SETTINGS TARGET)
3441
target_compile_features(${TARGET} PUBLIC cxx_std_17)
3542
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
@@ -38,14 +45,14 @@ function(APPLY_STANDARD_SETTINGS TARGET)
3845
target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")
3946
endfunction()
4047

41-
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
42-
4348
# Flutter library and tool build rules.
49+
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
4450
add_subdirectory(${FLUTTER_MANAGED_DIR})
4551

46-
# Application build
52+
# Application build; see runner/CMakeLists.txt.
4753
add_subdirectory("runner")
4854

55+
4956
# Generated plugin build rules, which manage building the plugins and adding
5057
# them to the application.
5158
include(flutter/generated_plugins.cmake)
@@ -80,6 +87,12 @@ if(PLUGIN_BUNDLED_LIBRARIES)
8087
COMPONENT Runtime)
8188
endif()
8289

90+
# Copy the native assets provided by the build.dart from all packages.
91+
set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/")
92+
install(DIRECTORY "${NATIVE_ASSETS_DIR}"
93+
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
94+
COMPONENT Runtime)
95+
8396
# Fully re-copy the assets directory on each build to avoid having stale files
8497
# from a previous install.
8598
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")

packages/device_info_plus/device_info_plus/example/windows/flutter/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
cmake_minimum_required(VERSION 3.15)
1+
# This file controls Flutter-level build steps. It should not be edited.
2+
cmake_minimum_required(VERSION 3.14)
23

34
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
45

@@ -9,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
910
# https://github.com/flutter/flutter/issues/57146.
1011
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
1112

13+
# Set fallback configurations for older versions of the flutter tool.
14+
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
15+
set(FLUTTER_TARGET_PLATFORM "windows-x64")
16+
endif()
17+
1218
# === Flutter Library ===
1319
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
1420

@@ -91,7 +97,7 @@ add_custom_command(
9197
COMMAND ${CMAKE_COMMAND} -E env
9298
${FLUTTER_TOOL_ENVIRONMENT}
9399
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
94-
windows-x64 $<CONFIG>
100+
${FLUTTER_TARGET_PLATFORM} $<CONFIG>
95101
VERBATIM
96102
)
97103
add_custom_target(flutter_assemble DEPENDS

0 commit comments

Comments
 (0)