aboutsummaryrefslogtreecommitdiff
path: root/pubspec.yaml
blob: 0af47506d3d55d39c4354b6da99ab0397e9c244e (plain) (blame)
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
213
214
215
216
name: aves
description: A visual media gallery and metadata explorer app.
repository: https://github.com/deckerst/aves
# version bump checklist:
# - pubspec version
# - github changelog: /CHANGELOG.md
# - play changelog:   /whatsnew/whatsnew-en-US
# - izzy changelog:   /fastlane/metadata/android/en-US/changelogs/XXX01.txt
# - libre changelog:  /fastlane/metadata/android/en-US/changelogs/XXX.txt
version: 1.13.12+163
publish_to: none

environment:
  # this project bundles Flutter SDK via `flutter_wrapper`
  # cf https://github.com/passsy/flutter_wrapper
  flutter: 3.27.4
  sdk: ">=3.6.0 <4.0.0" # incoherent dartfmt from 3.7.0
workspace:
  - plugins/aves_magnifier
  - plugins/aves_map
  - plugins/aves_model
  - plugins/aves_report
  - plugins/aves_report_crashlytics
  - plugins/aves_screen_state
  - plugins/aves_services
  - plugins/aves_services_google
  - plugins/aves_ui
  - plugins/aves_utils
  - plugins/aves_video
  - plugins/aves_video_mpv

# use `scripts/apply_flavor_{flavor}.sh` to set the right dependencies for the flavor
dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  aves_magnifier:
    path: plugins/aves_magnifier
  aves_map:
    path: plugins/aves_map
  aves_model:
    path: plugins/aves_model
  aves_report:
    path: plugins/aves_report
  aves_report_platform:
    path: plugins/aves_report_crashlytics
  aves_screen_state:
    path: plugins/aves_screen_state
  aves_services:
    path: plugins/aves_services
  aves_services_platform:
    path: plugins/aves_services_google
  aves_video:
    path: plugins/aves_video
  aves_video_mpv:
    path: plugins/aves_video_mpv
  aves_ui:
    path: plugins/aves_ui
  aves_utils:
    path: plugins/aves_utils
  charts_flutter:
    git:
      # https://github.com/fzyzcjy/charts.git master commit de76a46 (Sep 26, 2022) is incompatible with Flutter v3.10
      url: https://github.com/deckerst/flutter_google_charts.git
      ref: aves
      path: charts_flutter
  collection:
  connectivity_plus:
  country_code:
  csv:
  decorated_icon:
  device_info_plus:
  dlna_dart:
  # `dynamic_color` v1.8.1 is broken, relying on `Color.toARGB32` which is not in Flutter v3.27.4
  dynamic_color: 1.7.0
  equatable:
  event_bus:
  expansion_tile_card:
    git:
      url: https://github.com/deckerst/expansion_tile_card.git
  flex_color_picker:
  floating:
  fluster:
  flutter_displaymode:
  flutter_highlight:
  flutter_localizations_plus:
    git:
      url: https://github.com/deckerst/flutter_localizations_plus.git
      ref: 6a8c14bceaefd00e703ad517fd2a32fa2081b5de
  flutter_map:
  flutter_markdown_plus:
  flutter_staggered_animations:
  get_it:
  gpx:
  http:
  intl:
  latlong2:
  leak_tracker:
  local_auth:
  material_design_icons_flutter:
  material_symbols_icons:
  network_info_plus:
  overlay_support:
  package_info_plus:
  palette_generator: # discontinued on 2025/04/30
  panorama:
    git:
      url: https://github.com/deckerst/aves_panorama.git
      ref: aves
  path:
  pattern_lock:
  pdf:
  percent_indicator:
  permission_handler:
  pin_code_fields:
  printing:
  proj4dart:
  provider:
  screen_brightness:
  shared_preferences:
  shelf:
  # smooth_page_indicator v2 requires a recent `vector` lib from Flutter
  smooth_page_indicator: 1.2.1
  sqflite:
  stack_trace:
  streams_channel:
    git:
      url: https://github.com/deckerst/aves_streams_channel.git
  synchronized:
  url_launcher:
  # vector_map_tiles v10.0.0-beta requires Flutter v3.37.0 and Impeller
  vector_map_tiles: ^9.0.0-beta.8
  vector_math:
  vector_tile_renderer:
  volume_controller:
  xml:

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_driver:
    sdk: flutter
  flutter_lints:
  shared_preferences_platform_interface:
  test:

flutter:
  assets:
    - assets/
  generate: true
  uses-material-design: true

################################################################################
# Localization

# language files:
# - /lib/l10n/app_{language}.arb
# - /android/app/src/main/res/values-{language}/strings.xml
# - edit locale name in /lib/widgets/settings/language/locales.dart

# generate `AppLocalizations`
# % ./flutterw gen-l10n

################################################################################
# Test driver

# capture shaders (profile mode, real device only):
# % ./flutterw drive --flavor play -t test_driver/driver_shaders.dart --profile --cache-sksl --write-sksl-on-exit shaders.sksl.json

# generate screenshots (profile mode, specific collection):
# % ./flutterw drive --flavor play -t test_driver/driver_screenshots.dart --profile

################################################################################
# Adaptations

#  `DraggableScrollbar` in `/widgets/common/basic/draggable_scrollbar.dart`
#  adapts from package `draggable_scrollbar` v0.0.4
#
#  `Magnifier` in `/widgets/common/magnifier/magnifier.dart`
#  adapts from package `photo_view` v0.9.2
#
#  `AvesHighlightView` in `/widgets/common/aves_highlight.dart`
#  adapts from package `flutter_highlight` v0.7.0
#
#  `OutputBuffer` in `/services/common/output_buffer.dart`
#  adapts from Flutter v3.16.0 `_OutputBuffer` in `/foundation/consolidate_response.dart`
#
#  `TvLicensePage` in `/widgets/about/tv_license_page.dart`
#  adapts from Flutter v3.16.0 `_LicenseData` in `/material/about.dart`
#  and `_PackageLicensePage` in `/material/about.dart`
#
#  `OverlaySnackBar` in `/widgets/common/action_mixins/overlay_snack_bar.dart`
#  adapts from Flutter v3.23.0 `SnackBar` in `/material/snack_bar.dart`
#
#  `AGestureDetector` in `/widgets/common/basic/gestures/gesture_detector.dart`
#  adapts from Flutter v3.21.1 `GestureDetector` in `/widgets/gesture_detector.dart`
#
#  `AInkResponse` in `/widgets/common/basic/gestures/ink_well.dart`
#  adapts from Flutter v3.21.1 `InkResponse` and related classes in `/material/ink_well.dart`
#
#  `EagerScaleGestureRecognizer` in `/widgets/common/behaviour/eager_scale_gesture_recognizer.dart`
#  adapts from Flutter v3.16.0 `ScaleGestureRecognizer` in `/gestures/scale.dart`
#
#  `KnownExtentScrollPhysics` in `/widgets/common/behaviour/known_extent_scroll_physics.dart`
#  adapts from Flutter v3.16.0 `FixedExtentScrollPhysics` in `/widgets/list_wheel_scroll_view.dart`
#
#  `TransitionImage` in `/widgets/common/fx/transition_image.dart`
#  adapts from Flutter v3.10.0 `_ImageState` in `/widgets/image.dart`
#  and `DecorationImagePainter` in `/painting/decoration_image.dart`
#
#  `_RenderSliverKnownExtentBoxAdaptor` in `/widgets/common/grid/sliver.dart`
#  adapts from Flutter v3.10.0 `RenderSliverFixedExtentBoxAdaptor` in `/rendering/sliver_fixed_extent_list.dart`
#
#  `AvesSearchDelegate`, `SearchPageRoute` in `/widgets/common/search/*.dart`
#  adapts from Flutter v3.16.0 `SearchDelegate`, `_SearchPageRoute` in `/material/search.dart`