Files
dungeon-paper-app/pubspec.yaml

292 lines
10 KiB
YAML

name: dungeon_paper
description: A new Flutter project.
version: 2.0.0+293
# The above field 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
# 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
environment:
sdk: '>=2.19.0-255.2.beta <3.0.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:
animations: ^2.0.2
cached_network_image: ^3.2.0
cloud_firestore: ^4.5.2
cupertino_icons: ^1.0.2
# dungeon_world_data:
# path: ../dungeon_world_data
dungeon_world_data: ^3.0.1
dynamic_themes: ^1.1.0
email_validator: ^2.0.1
firebase_analytics: ^10.2.1
firebase_auth: ^4.4.2
firebase_core: ^2.10.0
firebase_crashlytics: ^3.1.1
firebase_remote_config: ^4.0.1
firebase_storage: ^11.1.1
flutter:
sdk: flutter
flutter_file_dialog: ^2.3.0
flutter_markdown: ^0.6.10+2
flutter_native_splash: ^2.2.5
flutter_svg: ^1.0.3
get: ^4.6.1
google_sign_in: ^5.3.3
http: ^0.13.4
icons_launcher: ^2.0.2
image_cropper: ^2.0.2
intl: ^0.17.0
intl_generator: ^0.4.1
localstore: ^1.2.1
package_info_plus: ^3.1.0
path: ^1.8.1
path_provider: ^2.0.9
popover: ^0.2.6+3
sentry_flutter: ^7.9.0
shared_preferences: ^2.0.13
sign_in_with_apple: ^4.1.0
skeleton_loader: ^2.0.0+4
string_similarity: ^2.0.0
url_launcher: ^6.0.20
uuid: ^3.0.0
wakelock: ^0.6.2
wheel_spinner: ^0.7.2
# wheel_spinner:
# path: ../wheel_spinner
dev_dependencies:
args: ^2.3.0
build_runner: ^2.4.1
flutter_lints: ^1.0.0
flutter_test:
sdk: flutter
pub_semver: ^2.1.0
test: ^1.19.5
# 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
assets:
# General Icons
# - assets/icons/armor.svg
# - assets/icons/book_cover.svg
# - assets/icons/dice_d6_numbered.svg
# - assets/icons/exclamation.svg
# - assets/icons/hand_rock.svg
# - assets/icons/knapsack.svg
# - assets/icons/riposte.svg
# - assets/icons/scroll_quill.svg
# - assets/icons/swap_bag.svg
# - assets/icons/coin_stack.svg
# - assets/icons/dumbbell.svg
# - assets/icons/quill.svg
# - assets/icons/swords.svg
# Stat Icons
# - assets/icons/stats/stat_cha.svg
# - assets/icons/stats/stat_con.svg
# - assets/icons/stats/stat_dex.svg
# - assets/icons/stats/stat_int.svg
# - assets/icons/stats/stat_str.svg
# - assets/icons/stats/stat_wis.svg
# Dice icons
# - assets/icons/dice/dice_d4.svg
# - assets/icons/dice/dice_d6.svg
# - assets/icons/dice/dice_d8.svg
# - assets/icons/dice/dice_d10.svg
# - assets/icons/dice/dice_d12.svg
# - assets/icons/dice/dice_d20.svg
# Images
- assets/images/logo.png
# 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
fonts:
- family: DwIcons
fonts:
- asset: assets/fonts/DwIcons.ttf
- family: Nunito
fonts:
- asset: assets/fonts/Nunito/Nunito-Black.ttf
weight: 900
- asset: assets/fonts/Nunito/Nunito-BlackItalic.ttf
weight: 900
style: italic
- asset: assets/fonts/Nunito/Nunito-ExtraBold.ttf
weight: 800
- asset: assets/fonts/Nunito/Nunito-ExtraBoldItalic.ttf
weight: 800
style: italic
- asset: assets/fonts/Nunito/Nunito-Bold.ttf
weight: 700
- asset: assets/fonts/Nunito/Nunito-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/Nunito/Nunito-SemiBold.ttf
weight: 600
- asset: assets/fonts/Nunito/Nunito-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/Nunito/Nunito-Regular.ttf
weight: 400
# - asset: assets/fonts/Nunito/Nunito-RegularItalic.ttf
# weight: 400
# style: italic
- asset: assets/fonts/Nunito/Nunito-Light.ttf
weight: 300
- asset: assets/fonts/Nunito/Nunito-LightItalic.ttf
weight: 300
style: italic
- asset: assets/fonts/Nunito/Nunito-ExtraLight.ttf
weight: 200
- asset: assets/fonts/Nunito/Nunito-ExtraLightItalic.ttf
weight: 200
style: italic
flutter_intl:
enabled: true
flutter_native_splash:
color: '#fcf5e5'
color_dark: '#1c1e21'
image: 'assets/images/logo.png'
icons_launcher:
image_path: 'assets/images/logo.png'
platforms:
android:
enable: true
image_path: 'assets/images/launcher_icons/android.png'
web:
enable: true
favicon_path: 'assets/images/logo.png'
ios:
enable: true
image_path: 'assets/images/launcher_icons/ios.png'
macos:
enable: true
image_path: 'assets/images/launcher_icons/ios.png'
windows:
enable: true
linux:
enable: true
remove_alpha_ios: true
remove_alpha_macos: true
script_runner:
shell: /bin/zsh
scripts:
- name: version
cmd: dart scripts/get_version.dart
suppress_header_output: true
description: Get version number
- name: bump
cmd: dart lib/core/task_runner/deploy.dart --bump pre
description: Bump version number
# Android
- name: build:android:apk
cmd: flutter build apk
description: Build Android APK only
- name: build:android:bundle
cmd: flutter build appbundle
description: Build Android unified bundle (for Play Store release)
- name: build:android:all
cmd: build:android:apk && build:android:bundle
description: Build Android unified bundle + standalone APK
- name: push:android:apk
description: Push APK to ADB-connected device
suppress_header_output: true
cmd: |-
name=$(dart run btool get packageName)
version=$(dart run btool get packageVersion)
source="$(pwd)/build/app/outputs/flutter-apk/app-release.apk"
target="/sdcard/Download/$name-$version.apk"
echo "adb push $source $target"
adb push $source $target
- name: install
cmd: adb install -r build/app/outputs/flutter-apk/app-release.apk
description: Install APK on Android (does not build)
# iOS
- name: build:ios:app
cmd: flutter build ios
description: Build iOS APP file
- name: build:ios:bundle
cmd: flutter build ipa
description: Build iOS IPA file
- name: build:ios:all
cmd: build:ios:app && build:ios:bundle
description: Build iOS IPA + APP
# macOS
- name: build:macos:app
cmd: flutter build macos
description: Build macOS App
- name: build:macos:all
cmd: build:macos:app
description: 'Alias for: Build macOS App'
# Web
- name: build:web:app
cmd: flutter build web
description: Build Web app
- name: build:web:all
cmd: build:web:app
description: 'Alias for: Build Web app'
# All
- name: build:all
cmd: build:android:all && build:ios:all && build:macos:all && build:web:all
description: Build for all platforms
- name: to-android
cmd: build:android:apk && push:android:apk && install:android:apk
description: Build, push and install APK to ADB connected device
- name: gen:icons
cmd: flutter pub run icons_launcher:create
description: Generate launcher icons
- name: format
cmd: dart format --line-length 120
description: Format all Dart files
- name: intl:generate_from_arb
cmd: dart run intl_generator:generate_from_arb --no-use-deferred-loading --output-dir=lib/generated/intl lib/generated/l10n.dart lib/l10n/intl_en.arb
description: Generate localization files from ARB file
- name: intl:extract_to_arb
cmd: dart run intl_generator:extract_to_arb --output-dir=lib/l10n lib/generated/l10n.dart
description: Extract localization files to ARB
- name: intl
cmd: intl:generate_from_arb && intl:extract_to_arb
description: Extract & Generate ARB files