Skip to content

Instantly share code, notes, and snippets.

@alexshikov
Created December 8, 2020 12:44
Show Gist options
  • Save alexshikov/834f7b52119dbb22578df430598ac374 to your computer and use it in GitHub Desktop.
Save alexshikov/834f7b52119dbb22578df430598ac374 to your computer and use it in GitHub Desktop.
The pubspec example that fails with `flutter pub run`
name: my_app
description: My App
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# 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: 1.0.0+1
environment:
sdk: ">=2.10.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# network
retrofit: ^1.3.4
graphql: ^3.1.0
# local
json_annotation: ^3.1.0
shared_preferences: ^0.5.12+2
# redux
redux: ^4.0.0+3
flutter_redux: ^0.6.0
redux_epics: ^0.14.0
redux_logging: ^0.4.0
redux_persist: ^0.8.4
redux_persist_flutter: ^0.8.3
# infrastructure
firebase_core: ^0.5.2+1
firebase_auth: ^0.18.3+1
google_sign_in: ^4.5.6
sign_in_with_apple: ^2.5.4
flutter_facebook_auth: ^1.0.2
firebase_analytics: ^6.2.0
firebase_crashlytics: ^0.2.3
firebase_performance: ^0.4.2
logger: any
crypto: ^2.1.5
# rx
rxdart: ^0.24.1
equatable: ^1.2.5
# localization
flutter_localizations:
sdk: flutter
intl: 0.16.1
# dependency injection
get_it: ^5.0.1
# ui
flutter_svg: ^0.19.0
cupertino_icons: ^1.0.0
# health kit
health:
path: packages/my-native-package
dev_dependencies:
flutter_test:
sdk: flutter
json_serializable: ^3.5.0
pedantic: ^1.0.0
build_runner: ^1.10.3
retrofit_generator: any
rename: ^1.2.0
flutter_launcher_icons: ^0.8.0
gql_code_gen: ^0.1.5
flutter:
generate: true
uses-material-design: true
assets:
- assets/images/logo.svg
- assets/images/facebook_logo.svg
- assets/images/google_logo.svg
# - images/a_dot_ham.jpeg
# 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: Roboto
fonts:
- asset: assets/fonts/Roboto-Thin.ttf
weight: 100
- asset: assets/fonts/Roboto-ThinItalic.ttf
weight: 100
style: italic
- asset: assets/fonts/Roboto-Light.ttf
weight: 300
- asset: assets/fonts/Roboto-LightItalic.ttf
weight: 300
style: italic
- asset: assets/fonts/Roboto-Regular.ttf
weight: 400
- asset: assets/fonts/Roboto-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/Roboto-Medium.ttf
weight: 500
- asset: assets/fonts/Roboto-MediumItalic.ttf
weight: 500
style: italic
- asset: assets/fonts/Roboto-Bold.ttf
weight: 700
- asset: assets/fonts/Roboto-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/Roboto-Black.ttf
weight: 900
- asset: assets/fonts/Roboto-BoldItalic.ttf
weight: 900
style: italic
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment