name: im_app
description: "Customer IM Client"
publish_to: none
version: 0.1.0

resolution: workspace

environment:
  sdk: ^3.11.0

dependencies:
  flutter:
    sdk: flutter

  # Workspace SDK packages
  networks_sdk:
  storage_sdk:
  media_sdk:
  rtc_sdk:
  notification_sdk:
  protocol_sdk:
  l10n_sdk:

  # 状态管理 - Riverpod
  flutter_riverpod: ^3.0.0
  riverpod_annotation: ^4.0.0

  # 不可变状态 - Freezed
  freezed_annotation: ^3.0.0

  # JSON 序列化
  json_annotation: ^4.8.1

  # 路由导航
  go_router: ^12.0.0

  # 网络状态监听
  connectivity_plus: ^6.1.0

  # 数据库（schema 定义在 im_app，连接/CRUD 封装在 storage_sdk）
  drift: ^2.22.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  integration_test:
    sdk: flutter

  # 代码生成
  drift_dev: ^2.22.0
  build_runner: ^2.4.6
  riverpod_generator: ^4.0.0
  freezed: ^3.0.0
  json_serializable: ^6.7.1

  # 代码检查
  flutter_lints: ^6.0.0
  very_good_analysis: ^5.1.0

  # 测试
  mocktail: ^1.0.1

flutter:
  uses-material-design: true
  assets:
    - assets/
