# pubspec.yaml — 穿山甲 VPN · Pangolin VPN(模板)
# 把本文件放到 Flutter 工程根目录,按需调整 name/version,然后 `flutter pub get`。
# 字体文件需自备(Google Fonts 下载或用 google_fonts 包);SVG 资产已在 flutter/assets/。

name: pangolin_vpn
description: 穿山甲 · Pangolin — 极简、稳定、跨平台网络加速客户端。
publish_to: "none"
version: 1.0.0+1

environment:
  sdk: ^3.5.0
  flutter: ">=3.24.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_svg: ^2.0.10      # 加载 assets/ 下的矢量 logo
  lucide_icons: ^0.257.0    # Lucide 细线条图标(版本以 pub.dev 最新为准)
  # 可选:用 google_fonts 在线加载字体,免去本地 ttf
  # google_fonts: ^6.2.1
  # 可选:打开外部购买/联系渠道链接
  # url_launcher: ^6.3.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^4.0.0
  # 可选:用 app-icon.svg 生成各平台启动图标
  # flutter_launcher_icons: ^0.13.1

flutter:
  uses-material-design: true

  # ── 资产(SVG logo)──
  # 把 flutter/assets/*.svg 拷到工程 assets/ 下;如改路径,同步改 pangolin_logo.dart 的 _base。
  assets:
    - assets/logo-mark.svg
    - assets/logo-mark-white.svg
    - assets/logo-wordmark.svg
    - assets/app-icon.svg

  # ── 字体 ──
  # 自备 ttf 放 fonts/;或改用 google_fonts 包(则删掉此段,在代码里用 GoogleFonts.*)。
  # 族名必须与 pangolin_theme.dart 的 PangolinFonts 完全一致。
  fonts:
    - family: Sora
      fonts:
        - asset: fonts/Sora-Medium.ttf
          weight: 500
        - asset: fonts/Sora-SemiBold.ttf
          weight: 600
        - asset: fonts/Sora-Bold.ttf
          weight: 700
    - family: Manrope
      fonts:
        - asset: fonts/Manrope-Regular.ttf
          weight: 400
        - asset: fonts/Manrope-Medium.ttf
          weight: 500
        - asset: fonts/Manrope-SemiBold.ttf
          weight: 600
        - asset: fonts/Manrope-Bold.ttf
          weight: 700
    - family: Noto Sans SC
      fonts:
        - asset: fonts/NotoSansSC-Regular.ttf
          weight: 400
        - asset: fonts/NotoSansSC-Medium.ttf
          weight: 500
        - asset: fonts/NotoSansSC-Bold.ttf
          weight: 700
    - family: JetBrains Mono
      fonts:
        - asset: fonts/JetBrainsMono-Regular.ttf
          weight: 400
        - asset: fonts/JetBrainsMono-Medium.ttf
          weight: 500

# ── flutter_launcher_icons 配置(可选,取消注释并运行 `dart run flutter_launcher_icons`)──
# flutter_launcher_icons:
#   image_path: "assets/app-icon-1024.png"   # 先把 app-icon.svg 导出 1024px PNG
#   android: true
#   ios: true
#   remove_alpha_ios: true
