name: kaer_with_panels
description: "BearVPN 客户端应用，提供安全的 VPN 连接服务，支持多平台。"
# 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.0.0+1

environment:
  sdk: '>=3.5.0 <4.0.0'
  flutter: ">=3.19.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

  # UI 相关
  cupertino_icons: ^1.0.8
  flutter_screenutil: ^5.9.0
  # flutter_easyloading: ^3.0.5  # 暂时注释掉，因为它依赖有问题的flutter_spinkit
  # flutter_spinkit: ^5.2.2  # 已替换为自定义组件
  flutter_svg: ^2.0.17
  extended_image: ^8.2.0
  easy_refresh: ^3.3.4
  fl_chart: ^0.66.2
  flutter_map: ^7.0.2
  # flutter_map_tile_caching: ^10.0.0
  latlong2: ^0.9.0

  # 状态管理
  get: ^4.6.6
  hooks_riverpod: ^2.4.10
  riverpod_annotation: ^2.3.4

  # 网络和数据处理
  dio: ^5.4.1
  grpc: ^3.2.4
  protobuf: ^3.1.0
  json_annotation: ^4.9.0
  dart_mappable: ^4.2.1

  # 工具类
  fpdart: ^1.1.0
  dartx: ^1.2.0
  rxdart: ^0.27.7
  # combine: ^0.5.8  # 暂时移除，使用 Isolate.run 替代
  encrypt: ^5.0.0
  path: ^1.8.3
  path_provider: ^2.1.1
  tint: ^2.0.1
  package_info_plus: ^8.3.0

  # 存储和安全
  flutter_udid: ^4.0.0
  

  # 平台集成
  window_manager: ^0.4.3
  webview_flutter: ^4.7.0
  url_launcher: ^6.3.1
  # crisp_sdk: ^1.1.0  # 暂时注释掉，因为它依赖有问题的flutter_inappwebview
  protocol_handler_windows: ^0.2.0

  # 国际化
  slang: ^3.30.1
  slang_flutter: ^3.30.0

  # 日志
  loggy: ^2.0.3
  flutter_loggy: ^2.0.2
  flutter_loggy_dio: ^3.1.0

  # 数据模型
  freezed_annotation: ^2.4.1

  # Hive
  hive: ^2.2.3
  hive_flutter: ^1.1.0
  crypto: ^3.0.3

  # 新添加的依赖
  country_flags: ^3.2.0

  # 新添加的依赖
  connectivity_plus: ^5.0.2
  permission_handler: ^11.3.0

  # 新添加的依赖
  qr_flutter: ^4.1.0
  flutter_html: ^3.0.0-beta.2
  flutter_markdown: ^0.7.7

  # 新添加的依赖
  tray_manager: ^0.2.0

dev_dependencies:
  flutter_test:
    sdk: flutter
    
  # 代码质量
  lint: ^2.3.0
  dependency_validator: ^3.2.3

  # 代码生成
  build_runner: ^2.4.8
  json_serializable: ^6.7.1
  freezed: ^2.4.7
  riverpod_generator: ^2.3.11
  drift_dev: ^2.16.0
  ffigen: ^8.0.2
  slang_build_runner: ^3.30.0
  flutter_gen_runner: ^5.4.0
  go_router_builder: ^2.4.1
  dart_mappable_builder: ^4.2.1
  
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter packages.
flutter:
  assets:
    - assets/images/
    - assets/translations/strings_en.i18n.json
    - assets/translations/strings_zh.i18n.json
    - assets/translations/strings_es.i18n.json
    - assets/translations/strings_zh_Hant.i18n.json
    - assets/translations/strings_ja.i18n.json
    - assets/translations/strings_ru.i18n.json
    - assets/translations/strings_et.i18n.json
 

  uses-material-design: true
  fonts:
  - family: AlibabaPuHuiTi-Medium
    fonts:
      - asset: assets/fonts/AlibabaPuHuiTi-Medium.ttf
  - family: AlibabaPuHuiTi-Regular
    fonts:
      - asset: assets/fonts/AlibabaPuHuiTi-Regular.ttf
  - family: Emoji
    fonts:
      - asset: assets/fonts/Emoji.ttf

flutter_gen:
  output: lib/gen/
  integrations:
    flutter_svg: true

ffigen:
  name: "SingboxNativeLibrary"
  description: "Bindings to Singbox"
  output: "lib/gen/singbox_generated_bindings.dart"
  headers:
    entry-points:
      - "libcore/bin/libcore.h"

