Files
kitchen/pubspec.yaml
Developer efe98f60e7 chore: 清理HarmonyOS平台无关的依赖文件并更新依赖配置
本次提交包含以下主要变更:
1. 删除所有packages/fluttertoast_ohos下的HarmonyOS原生模块文件与编译配置
2. 更新pubspec.yaml的SDK与Flutter最低版本要求
3. 修复多处代码细节问题:
   - 替换弃用的Share.shareXFiles为SharePlus新API
   - 修正ConnectivityResult判断逻辑,使用contains替代直接相等判断
   - 修复列表分隔符的unused参数命名
   - 调整条件渲染语法为更简洁的空值判断写法
   - 统一CupertinoButton的minSize参数写法
   - 简化空字符串默认值处理逻辑
4. 更新pubspec.lock依赖版本
2026-06-16 04:08:02 +08:00

264 lines
8.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: cute_kitchen
description: "小妈厨房."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.6.1+26062103
environment:
sdk: ^3.11.0
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# 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.8
# Internationalization support
flutter_localizations:
sdk: flutter
dio: ^5.9.2
dio_cache_interceptor: ^3.5.0
dio_cache_interceptor_file_store: ^1.2.3
platform_info: ^5.0.0
intl: ^0.20.2
pretty_dio_logger: ^1.4.0
logger: ^2.7.0
uuid: ^4.5.1
collection: ^1.18.0
catcher_2: ^2.1.9
get:
path: packages/get
flutter_adaptive_scaffold:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/flutter_adaptive_scaffold"
shared_preferences:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/shared_preferences/shared_preferences"
ref: br_shared_preferences-v2.5.4_ohos
# go_router:
# git:
# url: https://gitcode.com/openharmony-tpc/flutter_packages.git
# path: packages/go_router
# go_router_builder:
# git:
# url: https://gitcode.com/openharmony-tpc/flutter_packages.git
# path: packages/go_router_builder
# orientation:
# git:
# url: https://gitcode.com/openharmony-sig/fluttertpc_orientation.git
animations:
git:
url: https://gitcode.com/openharmony-sig/flutter_packages.git
path: "packages/animations"
ref: br_animations-v2.0.11_ohos
fluttertoast:
path: packages/fluttertoast
fl_chart:
path: packages/fl_chart
badges:
path: packages/badges
file_picker_ohos:
path: packages/file_picker
pigeon:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/pigeon"
ref: br_pigeon-v26.1.5_ohos
share_plus:
git:
url: https://gitcode.com/openharmony-sig/flutter_plus_plugins.git
path: packages/share_plus/share_plus
ref: br_share_plus-v12.0.1_ohos
connectivity_plus:
git:
url: https://gitcode.com/openharmony-sig/flutter_plus_plugins.git
path: packages/connectivity_plus/connectivity_plus
ref: br_connectivity_plus-v6.1.0_ohos
package_info_plus:
git:
url: https://gitcode.com/openharmony-sig/flutter_plus_plugins.git
path: packages/package_info_plus/package_info_plus
ref: br_package_info_plus-v8.1.0_ohos
permission_handler:
git:
url: https://gitcode.com/openharmony-sig/flutter_permission_handler.git
path: permission_handler
ref: br_v12.0.1_ohos
device_info_plus:
git:
url: https://gitcode.com/openharmony-sig/flutter_plus_plugins.git
path: packages/device_info_plus/device_info_plus
ref: br_device_info_plus_v11.4.0_ohos
mobile_scanner:
path: packages/mobile_scanner
flutter_staggered_grid_view:
path: packages/flutter_staggered_grid_view
cached_network_image:
path: packages/cached_network_image/cached_network_image
flutter_cache_manager: ^3.4.1
flutter_card_swiper:
path: packages/flutter_card_swiper
# flutter_screenutil:
# path: packages/flutter_screenutil
url_launcher:
git:
url: https://gitcode.com/openharmony-tpc/flutter_packages.git
path: "packages/url_launcher/url_launcher"
ref: br_url_launcher-v6.3.2_ohos
path_provider:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/path_provider/path_provider"
ref: br_path_provider-v2.1.5_ohos
hive_ce: ^2.11.0
qr:
path: packages/qr
mailer:
path: packages/mailer
docs_gee:
path: packages/docs_gee/docx_generator
pdf:
path: packages/pdf/pdf
flutter_markdown_plus:
path: packages/flutter_markdown_plus
http: any
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^6.0.0
build_runner: ^2.4.13
dependency_overrides:
path_provider:
git:
url: "https://gitcode.com/openharmony-tpc/flutter_packages.git"
path: "packages/path_provider/path_provider"
ref: br_path_provider-v2.1.5_ohos
package_info_plus:
git:
url: https://gitcode.com/openharmony-sig/flutter_plus_plugins.git
path: packages/package_info_plus/package_info_plus
ref: br_package_info_plus-v8.1.0_ohos
device_info_plus:
git:
url: https://gitcode.com/openharmony-sig/flutter_plus_plugins.git
path: packages/device_info_plus/device_info_plus
ref: br_device_info_plus_v11.4.0_ohos
fluttertoast:
path: packages/fluttertoast
mailer:
path: packages/mailer
qr:
path: packages/qr
# For information on the generic Dart part of this file, see the
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# Enable generation of localized strings
generate: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/photos/
- assets/icons/
- assets/json/
- assets/md/tips/
- assets/md/tips/advanced/
- assets/md/tips/learn/
- assets/fonts/
# 字体配置NotoSansSC 子集化版本GB2312 6763字 + 常用符号),从完整版 32MB 缩减至 6.5MB
# 原始字体来源https://github.com/notofonts/noto-cjk/releases
# 子集化工具fontTools pyftsubset
fonts:
- family: NotoSansSC
fonts:
- asset: assets/fonts/NotoSansSC-Regular.otf
- asset: assets/fonts/NotoSansSC-Bold.otf
weight: 700
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/to/asset-from-package
# 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
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package
# Icons Launcher configuration