name: stackwallet
description: Stack Wallet

# 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 used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.0.0+222

environment:
  sdk: ">=3.3.4 <4.0.0"
  flutter: ^3.19.6

dependencies:
  flutter:
    sdk: flutter
  ffi: ^2.0.1
  mutex: ^3.0.0
  web_socket_channel: ^2.4.5

  lelantus:
    path: ./crypto_plugins/flutter_liblelantus

  frostdart:
    path: ./crypto_plugins/frostdart

  flutter_libsparkmobile:
    git:
      url: https://github.com/cypherstack/flutter_libsparkmobile.git
      ref: 439727b278250c61a291f5335c298c0f2d952517

  flutter_libmonero:
    path: ./crypto_plugins/flutter_libmonero

  cw_monero:
    path: ./crypto_plugins/flutter_libmonero/cw_monero

  cw_wownero:
    path: ./crypto_plugins/flutter_libmonero/cw_wownero

  cw_core:
    path: ./crypto_plugins/flutter_libmonero/cw_core

  flutter_libepiccash:
    path: ./crypto_plugins/flutter_libepiccash

  bitcoindart:
    git:
      url: https://github.com/cypherstack/bitcoindart.git
      ref: af6d6c27edfe2e7cc35772ed2684eb4cc826f0e4

  stack_wallet_backup:
    git:
      url: https://github.com/cypherstack/stack_wallet_backup.git
      ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed

  bip47:
    git:
      url: https://github.com/cypherstack/bip47.git
      ref: a6e7941b98a43a613708b1a12564bc17e712cfc7

  tor_ffi_plugin:
    git:
      url: https://github.com/cypherstack/tor.git
      ref: e37dc4e22f7acb2746b70bdc935f0eb3c50b8b71

  fusiondart:
    git:
      url: https://github.com/cypherstack/fusiondart.git
      ref: 7dd8ff0dc9cb0caaac795fa44841a26437edfec3

  # Utility plugins
  http: ^0.13.0
  local_auth: ^1.1.10
  permission_handler: ^11.0.0
  flutter_local_notifications: ^17.0.0
  rxdart: ^0.27.3
  zxcvbn: ^1.0.0
  dart_numerics: ^0.0.6

  window_size:
    git:
      url: https://github.com/google/flutter-desktop-embedding.git
      path: plugins/window_size

  # Bitcoin plugins
  bip39:
    git:
      url: https://github.com/cypherstack/stack-bip39.git
      ref: 0cd6d54e2860bea68fc50c801cb9db2a760192fb
  bitbox:
    git:
      url: https://github.com/PiRK/bitbox-flutter.git
      ref: 50bf29957514a5712466ba37590a851212a244bf
  bip32: ^2.0.0
  bech32:
    git:
      url: https://github.com/cypherstack/bech32.git
      ref: b6d2a5b4cd17311d917787c0f9505f04932659b1
  bs58check: ^1.0.2

  # Eth Plugins
  web3dart: 2.6.1
  ethereum_addresses: 1.0.2

  # Storage plugins
  flutter_secure_storage: ^8.0.0
  hive: ^2.0.5
  hive_flutter: ^1.1.0
  path_provider: ^2.0.15

  # UI/Component plugins
  flutter_native_splash: ^2.2.4
  google_fonts: ^4.0.4
  url_launcher: ^6.0.5
  flutter_svg: ^2.0.7
  flutter_feather_icons: ^2.0.0+1
  decimal: ^2.1.0
  event_bus: ^2.0.0
  uuid: ^3.0.5
  crypto: ^3.0.2
  barcode_scan2: ^4.2.3
  wakelock: ^0.6.2
  intl: ^0.17.0
  devicelocale: ^0.6.0
  device_info_plus: ^9.0.2
  keyboard_dismisser: ^3.0.0
  another_flushbar: ^1.10.28
  tuple: ^2.0.0
  flutter_riverpod: ^1.0.3
  qr_flutter: ^4.0.0
  share_plus: ^7.0.2
  emojis: ^0.9.9
  pointycastle: ^3.6.0
  package_info_plus: ^4.0.2
  lottie: ^2.3.2
  file_picker: ^8.0.3
  connectivity_plus: ^4.0.1
  isar: 3.0.5
  isar_flutter_libs: 3.0.5 # contains the binaries
  dropdown_button2: ^2.1.3
  string_validator: ^0.3.0
  equatable: ^2.0.5
  async: ^2.10.0
  dart_bs58: ^1.0.1
  dart_bs58check: ^3.0.2
  hex: ^0.2.0
  archive: ^3.3.2
  desktop_drop: ^0.4.1
  nanodart: ^2.0.0
  basic_utils: ^5.5.4
  stellar_flutter_sdk: ^1.7.8
  bip340: ^0.2.0
#  tezart: ^2.0.5
  tezart:
    git:
      url: https://github.com/cypherstack/tezart.git
      ref: 13fa937ea9a9fc34caf047e068df9535f65c27ad
  socks5_proxy: ^1.0.3+dev.3
  convert: ^3.1.1
  flutter_hooks: ^0.20.3
  meta: ^1.9.1
  coinlib_flutter: ^2.0.0
  electrum_adapter:
    git:
      url: https://github.com/cypherstack/electrum_adapter.git
      ref: 9e9441fc1e9ace8907256fff05fe2c607b0933b6
  stream_channel: ^2.1.0
  solana:
    git: # TODO [prio=low]: Revert to official package once Tor support is merged upstream.
      url: https://github.com/cypherstack/espresso-cash-public.git
      ref: a83e375678eb22fe544dc125d29bbec0fb833882
      path: packages/solana
  calendar_date_picker2: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter
  integration_test:
      sdk: flutter
  build_runner: ^2.1.7
  flutter_launcher_icons: ^0.13.1
  hive_generator: ^2.0.0
  dependency_validator: ^3.1.2
  hive_test: ^1.0.1
  mockito: ^5.4.1
  mockingjay: ^0.2.0
#  lint: ^1.10.0
  analyzer: ^5.13.0
  import_sorter: ^4.6.0
  flutter_lints: ^3.0.1
  isar_generator: 3.0.5

flutter_launcher_icons:
  android: true
  ios: true
  image_path: assets/icon/icon.png
  image_path_android: assets/icon/app_icon_alpha.png
  image_path_ios: assets/icon/icon.png
  remove_alpha_ios: true
  windows:
    generate: true
    image_path: assets/icon/icon.png
    icon_size: 48 # min:48, max:256, default: 48
  macos:
    generate: true
    image_path: assets/icon/macos-icon.png

flutter_native_splash:
  image: assets/images/splash.png
  color: "F7F7F7"
  android_disable_fullscreen: true

dependency_overrides:

  bip47:
    git:
      url: https://github.com/cypherstack/bip47.git
      ref: a6e7941b98a43a613708b1a12564bc17e712cfc7

  # required for dart 3, at least until a fix is merged upstream
  wakelock_windows:
    git:
      url: https://github.com/diegotori/wakelock
      ref: 2a9bca63a540771f241d688562351482b2cf234c
      path: wakelock_windows

  # required for libmonero - can remove once libmonero has been updated, PR has been merged in swb
  stack_wallet_backup:
    git:
      url: https://github.com/cypherstack/stack_wallet_backup.git
      ref: ee1da8a9ba1cbeb50c5b354ea1fd5a25b7c5a3ed

  # required override for nanodart
  bip39:
    git:
      url: https://github.com/cypherstack/stack-bip39.git
      ref: 0cd6d54e2860bea68fc50c801cb9db2a760192fb


  file_picker:
    git:
      url: https://github.com/muttsu-623/flutter_file_picker.git
      ref: f0930d9fa79d347b2a0e25a7de4f5a4a88a9a907

  crypto: 3.0.2
  analyzer: ^5.2.0
  pinenacl: ^0.3.3
  http: ^0.13.0

# 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.
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

  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg
  assets:
    - assets/images/
    - assets/icon/
    - google_fonts/
    - assets/svg/

    # coin control icons
    - assets/svg/coin_control/

    # socials
    - assets/svg/socials/

    # exchange icons
    - assets/svg/exchange_icons/

    # buy
    - assets/svg/buy/

    # gif
    - assets/gif/

    # lottie animations
    # basic
    - assets/lottie/test2.json
    - assets/lottie/icon_send.json
    - assets/lottie/loader_and_checkmark.json
    - assets/lottie/arrow_rotate.json
    - assets/lottie/onion_animation.json

    # default themes_testing
    - assets/default_themes/

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages
  # 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/custom-fonts/#from-packages

import_sorter:
  comments: false # Optional, defaults to true
  ignored_files: # Optional, defaults to []
    - \/test\/*
    - \/crypto_plugins\/*
    - \/integration_test\/*