Repository navigation
Expand file tree
/
Copy pathpubspec.yaml
More file actions
212 lines (183 loc) · 7.63 KB
/
Copy pathpubspec.yaml
File metadata and controls
212 lines (183 loc) · 7.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
name: mostro
description: "Mostro Mobile v2 — P2P Bitcoin Lightning exchange"
publish_to: 'none'
version: 2.1.3+20103
environment:
sdk: ">=3.7.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# Bridge: Rust core ↔ Flutter UI
flutter_rust_bridge: 2.11.1
rust:
path: rust_builder
# State management
flutter_riverpod: ^2.6.1
# Navigation
go_router: ^14.8.1
# Local persistence (Dart UI layer — all platforms)
sembast: ^3.8.2
sembast_web: ^2.3.1+1
# Secure storage (PIN unlock; key crypto stays in Rust)
flutter_secure_storage: ^9.2.4
# Preferences (first-run flag, settings)
shared_preferences: ^2.5.3
# Onboarding walkthrough illustrations (static SVG assets; the motion is
# Flutter's, since flutter_svg runs no CSS)
# 2.2.3 needs Dart 3.8; this app still supports Dart 3.7 (environment above).
flutter_svg: ">=2.2.2 <2.2.3"
# QR code display and scanning. `qr` encodes the Mostro QR
# (lib/shared/widgets/mostro_qr.dart), which draws its own modules.
qr_flutter: ^4.1.0
qr: ^3.0.2
mobile_scanner: ^7.2.0
# Cross-platform HTTP client (push server registration)
# System share sheet (invoice sharing)
share_plus: ^12.0.1
# Launch external URIs (lightning: wallet handoff)
url_launcher: ^6.3.1
# Chat attachments: PDFs, desktop images and the save dialog (file_picker);
# gallery and camera on mobile (image_picker)
file_picker: ^8.3.7
image_picker: ^1.2.3
# Firebase (push notifications)
firebase_core: ^3.6.0
firebase_messaging: ^15.1.3
flutter_local_notifications: ^17.2.3
# Browser APIs for web push: the messaging worker and its token
# (lib/features/notifications/services/web_push_web.dart)
web: ^1.1.1
# Runtime permissions (camera, notifications)
permission_handler: ^11.4.0
# File-system paths (DB path on native)
path: ^1.9.1
path_provider: ^2.1.5
# Internationalization
intl: ^0.20.2
# Injectable clock so relative-time rendering is deterministic under test
clock: ^1.1.1
# UUID generation (collision-resistant notification IDs)
uuid: ^4.5.1
# Skeleton loading shimmer effect (DESIGN_SYSTEM.md §9.1)
shimmer: ^3.0.0
# Required by flutter_rust_bridge generated code
freezed_annotation: ^2.4.4
# Masonry grid for the order book on tablet/desktop: cards keep their
# natural height (no fixed tile ratio) and keyed rows still move on re-sort
flutter_staggered_grid_view: ^0.7.0
workmanager: ^0.10.10
open_filex: ^4.7.0
# 4.5 needs Dart 3.11; this app still supports Dart 3.7 (environment above).
emoji_picker_flutter: ">=4.4.0 <4.5.0"
# `mostro:` order links from the OS (lib/features/deep_links/). 7.x needs Dart
# 3.10 (7.1 and later Flutter 3.44); this app still supports Dart 3.7.
app_links: ^6.4.1
dependency_overrides:
# permission_handler_html 0.1.4+0 (published 2026-07-31) fails to compile
# for web (`'isA' isn't defined for the type 'Object'`), breaking every CI
# web build. Pinned to the previous release until upstream ships a fix:
# https://github.com/baseflow/flutter-permission-handler/issues/1550
permission_handler_html: 0.1.3+5
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
# Required by flutter_rust_bridge_codegen generate
freezed: ^2.5.7
build_runner: ^2.4.13
# Generates the iOS/Android launcher icons from assets/images/launcher-icon.png
flutter_launcher_icons: ^0.14.2
# Parses lib/ in the automation contract test, so only code counts as a use
analyzer: ^7.7.1
# Decodes the rendered Mostro QR in its tests, so a style change that stops
# it scanning fails CI
zxing2: ^0.2.4
flutter:
uses-material-design: true
generate: true
assets:
- assets/data/fiat.json
- assets/data/payment_methods.json
- assets/images/
- assets/images/mascot/
- assets/images/walkthrough/
- assets/fonts/outfit/OFL.txt
- assets/fonts/manrope/OFL.txt
- assets/fonts/nym_animals/LICENSE.txt
- assets/fonts/noto_flags/LICENSE.txt
# Brand typography (drawer and order-book handoffs), bundled so the app never
# fetches fonts at runtime. Outfit is the UI face; Manrope sets the figures
# (amounts, premiums, sats), whose tabular digits line up across cards. Both
# are OFL-1.1: the licences ship as assets and are registered with the
# LicenseRegistry at startup.
fonts:
- family: Outfit
fonts:
- asset: assets/fonts/outfit/Outfit-Regular.ttf
- asset: assets/fonts/outfit/Outfit-Medium.ttf
weight: 500
- asset: assets/fonts/outfit/Outfit-SemiBold.ttf
weight: 600
- asset: assets/fonts/outfit/Outfit-Bold.ttf
weight: 700
- family: Manrope
fonts:
- asset: assets/fonts/manrope/Manrope-Medium.ttf
weight: 500
- asset: assets/fonts/manrope/Manrope-SemiBold.ttf
weight: 600
- asset: assets/fonts/manrope/Manrope-Bold.ttf
weight: 700
# The animal of each pseudonym, drawn on the chat avatars: one glyph per
# entry of NOUNS in rust/src/crypto/nym.rs, built from Fluent Emoji High
# Contrast (MIT) by tool/nym_animals/build_font.py.
- family: NymAnimals
fonts:
- asset: assets/fonts/nym_animals/NymAnimals.ttf
# The flags of Noto Color Emoji (OFL), a fallback in both themes: Linux
# and Windows ship no flag glyphs (DS-TYP-8). Built by
# tool/flags_font/build_font.py.
- family: NotoFlags
fonts:
- asset: assets/fonts/noto_flags/NotoFlags.ttf
# Launcher icons. Mirrors the v1 app's configuration (MostroP2P/mobile) and its
# mascot, plus a gold ring inside the disc so the two apps can be told apart
# when both are installed. The three sources below, and the launch screen
# logos, are built from the ringless art by:
# python3 tool/launcher_icon/build_sources.py
# Regenerate the icons from them with:
# dart run flutter_launcher_icons
# then revert its edit to ios/Runner.xcodeproj/project.pbxproj (0.14.4 rewrites
# ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS to `AppIcon`) and
# keep web/manifest.json as committed: it only refreshes the two colours there,
# which already match the `web` block below. Keep web/favicon.png too: at
# 16 px the ring blurs into a brown halo, so the tab icon stays ringless.
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/images/launcher-icon.png"
# iOS needs its own, already-opaque source. The shared art is a disc on a
# transparent square: iOS forbids an alpha channel in app icons, and
# flattening it here would leave white corners under iOS's rounded mask.
# `launcher-icon-ios.png` is the same art pre-composited onto the brand
# background (#1D212C, the previous order-book list well), which also avoids a generator bug —
# flutter_launcher_icons 0.14.4 turns near-transparent pixels into saturated
# green, drawing a 1px ring around the disc.
image_path_ios: "assets/images/launcher-icon-ios.png"
adaptive_icon_foreground: "assets/images/launcher-icon.png"
# Same brand background as the iOS source, so the disc merges into the
# adaptive icon instead of floating on a slightly different grey.
adaptive_icon_background: "#1D212C"
# Web (PWA): one source for the plain and the maskable icons, so it is the
# opaque iOS art scaled to 80 % on the same background. Android masks
# maskable icons to the central 80 % circle; at full size the bolt's tip
# would be cut off. background_color is the splash behind the icon while the
# installed app starts (the dark scaffold, AppTheme); theme_color tints the
# title bar.
web:
generate: true
image_path: "assets/images/launcher-icon-web.png"
background_color: "#1B1E28"
theme_color: "#1B1E28"