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

environment:
  sdk: ^3.11.0

dependencies:
  flutter:
    sdk: flutter

  # Workspace SDK packages - 使用 git dependency 控制版本
  networks_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: networks_sdk/v0.0.1
      path: packages/networks_sdk

  storage_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: storage_sdk/v0.0.1
      path: packages/storage_sdk

  media_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: media_sdk/v0.0.1
      path: packages/media_sdk

  rtc_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: rtc_sdk/v0.0.1
      path: packages/rtc_sdk

  notification_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: notification_sdk/v0.0.1
      path: packages/notification_sdk

  protocol_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: protocol_sdk/v0.0.1
      path: packages/protocol_sdk

  l10n_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: l10n_sdk/v0.0.1
      path: packages/l10n_sdk

  cipher_guard_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: cipher_guard_sdk/v0.0.1
      path: packages/cipher_guard_sdk

  im_log_sdk:
    git:
      url: https://gitea.winwayinfo.com/CUS-IM/customer-im-client.git
      ref: im_log_sdk/v0.0.1
      path: packages/im_log_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

  # JWT 解析（token 过期检测、主动刷新）
  dart_jsonwebtoken: ^3.1.0

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

  # 设备信息（deviceId / deviceName）
  device_info_plus: ^11.0.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/
