Replace the customer app with Doormile CX
Book a pickup, track it to delivery — the rebuilt customer app. - Design language from doormile-screens.html: brand #8F0F06, Manrope + Geist Mono (variable fonts), bordered cards instead of shadows, crimson brand headers, sliding tab indicator, mono for anything read digit by digit. - lib/data (one live API implementation, plus a debug-only offline fake), lib/state, lib/ui (tokens, widgets, screens). - 84 tests, plus a design snapshot harness that renders every screen with the real fonts: flutter test test/design_snapshot_test.dart --run-skipped --update-goldens This replaces the previous app (pubspec 'doormile', app id com.doormile.customer). That tree remains in history at 6c7d656; note its android/app/google-services.json is not carried over, and the application id here is in.doormile.customer. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
139
pubspec.yaml
139
pubspec.yaml
@@ -1,50 +1,133 @@
|
||||
name: doormile
|
||||
description: "Doormile — EV-first parcel delivery app."
|
||||
publish_to: 'none'
|
||||
version: 1.0.3+5
|
||||
name: doormile_cx
|
||||
description: "Doormile — book a pickup from your door, track it to delivery."
|
||||
# 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
|
||||
|
||||
# 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 is used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
sdk: ^3.13.2
|
||||
|
||||
# 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:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
cupertino_icons: ^1.0.6
|
||||
provider: ^6.1.2
|
||||
firebase_core: ^4.10.0
|
||||
firebase_auth: ^6.5.2
|
||||
http: ^1.6.0
|
||||
shared_preferences: ^2.5.5
|
||||
permission_handler: ^12.0.3
|
||||
geolocator: ^14.0.2
|
||||
url_launcher: ^6.3.2
|
||||
geocoding: ^4.0.0
|
||||
google_maps_flutter: ^2.9.0
|
||||
web_socket_channel: ^3.0.1
|
||||
firebase_messaging: 16.3.0
|
||||
sms_autofill: ^2.3.0
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
# Lucide — the icon set the whole UI draws from.
|
||||
#
|
||||
# Material's stock glyphs are heavy, inconsistently weighted and instantly
|
||||
# recognisable as "default Flutter". Lucide is a single 1.5px-stroke family,
|
||||
# so an icon sits at the same visual weight as the type beside it instead of
|
||||
# shouting over it. Same set the Miler rider app uses, so the two apps in
|
||||
# this repo read as one product.
|
||||
lucide_icons_flutter: ^3.1.17
|
||||
flutter_map: ^8.3.2
|
||||
latlong2: ^0.10.1
|
||||
# Pinned below 14.0.3: that patch pulls geolocator_linux 0.2.6, which pins
|
||||
# win32 ^6 through package_info_plus and makes flutter_secure_storage 9.x
|
||||
# unsolvable. 10/11.x of that package need compileSdk 37, which this
|
||||
# project's Android Gradle plugin does not support. Neither desktop plugin
|
||||
# ships here; the constraint is pub's arithmetic, not a runtime need.
|
||||
geolocator: 14.0.2
|
||||
|
||||
# Networking. `http` is the whole transport — every call goes through
|
||||
# `ApiClient`, which is the only place in the app that knows about it.
|
||||
http: ^1.5.0
|
||||
|
||||
# Session persistence. Refresh tokens live 60 days and rotate on every use,
|
||||
# so they belong in the keychain / EncryptedSharedPreferences, not in a
|
||||
# plaintext preferences file.
|
||||
flutter_secure_storage: ^9.2.4
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
flutter_lints: ^4.0.0
|
||||
flutter_launcher_icons: ^0.14.4
|
||||
flutter_native_splash: ^2.4.7
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
# activated in the `analysis_options.yaml` file located at the root of your
|
||||
# package. See that file for information about deactivating specific lint
|
||||
# rules and activating additional ones.
|
||||
flutter_lints: ^6.0.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 packages.
|
||||
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
|
||||
|
||||
# Both families ship as a single variable-font file rather than one file per
|
||||
# weight: Manrope is used from 500 to 800 and Geist Mono at 500, which as
|
||||
# static cuts would be six font files and roughly 2 MB in the bundle. The
|
||||
# weight is selected in `DmText` through the `wght` axis (`fontVariations`),
|
||||
# not by Flutter picking a named instance.
|
||||
fonts:
|
||||
- family: Public Sans
|
||||
- family: Manrope
|
||||
fonts:
|
||||
- asset: assets/fonts/PublicSans.ttf
|
||||
- asset: assets/fonts/Manrope-VF.ttf
|
||||
- family: GeistMono
|
||||
fonts:
|
||||
- asset: assets/fonts/GeistMono-VF.ttf
|
||||
|
||||
assets:
|
||||
- assets/images/
|
||||
|
||||
flutter_launcher_icons:
|
||||
android: "launcher_icon"
|
||||
ios: true
|
||||
image_path: "assets/images/launcher_doormile.png"
|
||||
# To add assets to your application, add an assets section, like this:
|
||||
# assets:
|
||||
# - images/a_dot_burr.jpeg
|
||||
# - images/a_dot_ham.jpeg
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
# https://flutter.dev/to/resolution-aware-images
|
||||
|
||||
# For details regarding adding assets from package dependencies, see
|
||||
# https://flutter.dev/to/asset-from-package
|
||||
|
||||
# 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/to/font-from-package
|
||||
|
||||
Reference in New Issue
Block a user