211fafc7e1
- 移动端加图改用 image_picker,底部弹出「拍照 / 从相册选择」二选一; 桌面/Web 保持 file_picker 文件选择 - 用 defaultTargetPlatform 判断移动端,避免在参与 Web 编译的文件引入 dart:io - iOS:Info.plist 增加 NSCameraUsageDescription / NSPhotoLibraryUsageDescription - Android:拍照走系统相机、相册走 Photo Picker,均无需声明权限 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
28 lines
807 B
CMake
28 lines
807 B
CMake
#
|
|
# Generated file, do not edit.
|
|
#
|
|
|
|
list(APPEND FLUTTER_PLUGIN_LIST
|
|
file_selector_windows
|
|
printing
|
|
url_launcher_windows
|
|
)
|
|
|
|
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
|
jni
|
|
)
|
|
|
|
set(PLUGIN_BUNDLED_LIBRARIES)
|
|
|
|
foreach(plugin ${FLUTTER_PLUGIN_LIST})
|
|
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
|
|
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
|
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
|
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
|
|
endforeach(plugin)
|
|
|
|
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
|
|
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
|
|
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
|
|
endforeach(ffi_plugin)
|