-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathpubspec.yaml
More file actions
202 lines (188 loc) · 7.82 KB
/
Copy pathpubspec.yaml
File metadata and controls
202 lines (188 loc) · 7.82 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
name: echo_loop
description: "Best English Listening & Speaking Practice App"
# 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.23
environment:
sdk: ^3.9.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
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
collection: ^1.19.0
font_awesome_flutter: ^11.0.0
just_audio: ^0.10.5
flutter_riverpod: ^2.6.1
riverpod_annotation: ^2.6.1
audio_session: ^0.2.2
audio_service: ^0.18.18
subtitle: ^0.1.4
file_picker: ^10.3.3
audio_video_progress_bar: ^2.0.3
path_provider: ^2.1.1
shared_preferences: ^2.2.2
path: ^1.8.3
intl: ^0.20.2
clock: ^1.1.1
drift: ^2.25.0
sqlite3_flutter_libs: ^0.5.31
scrollable_positioned_list: ^0.3.8
package_info_plus: ^9.0.0
universal_io: ^2.2.2
go_router: ^17.1.0
flutter_local_notifications: ^19.4.2
timezone: ^0.10.1
flutter_timezone: ^4.1.1
crypto: ^3.0.7
dio: ^5.9.0
# 网络图片磁盘缓存:官方合集封面冷启动后无需重下,离线浏览有图。
# 用 JsonCacheInfoRepository 替代默认 sqflite 仓库,避免 sqflite 全局 factory 警告
cached_network_image: ^3.4.1
sqlite3: ^2.7.5
lemmatizerx: ^1.0.0
flutter_tts: ^4.2.0
wakelock_plus: ^1.4.0
url_launcher: ^6.3.1
flutter_inappwebview: ^6.1.5
permission_handler: ^12.0.1
uuid: ^4.5.3
flutter_secure_storage: ^10.0.0
firebase_core: ^3.9.0
firebase_analytics: ^11.6.0
umeng_common_sdk: ^1.3.0
posthog_flutter: ^5.23.1
archive: ^4.0.4
share_plus: ^10.1.4
table_calendar: ^3.2.0
timeago: ^3.7.1
sherpa_onnx: ^1.12.36
showcaseview: ^5.0.1
# 认证:复用 fluency-frontend 的 Supabase 项目(auth.users 共享),
# mobile 端走 native ID Token 流(Apple/Google)+ 邮箱密码。详见 docs / plan。
supabase_flutter: ^2.12.0
sign_in_with_apple: ^7.0.1
google_sign_in: ^7.2.0
just_waveform: ^0.0.7
# 注意:该插件的 ProGuard keep 规则用的是 proguardFiles 而非 consumerProguardFiles,
# 不会传播到宿主 app。release(R8)构建必须在 android/app/proguard-rules.pro 保留
# com.antonkarpenko.ffmpegkit.**,否则 R8 会裁掉仅由 JNI_OnLoad 注册的 native 方法
# (AbiDetect.getNativeCpuAbi 等),导致插件注册整体失败、App 卡在启动 splash。
ffmpeg_kit_flutter_new_min: ^3.1.0
xml: ^6.5.0
# PDF 导出:Dart 端生成结构化 PDF(学习材料导出 PDF,见 lib/services/pdf_export/)。
# 注意:3.13.0 起要求 Dart >=3.12,当前 SDK 下固定解析到 3.12.0
pdf: ^3.12.0
# PDF 预览:PdfPreview 组件把 PDF 栅格化在 App 内展示(导出预览页),与 pdf 同作者
printing: ^5.14.2
dev_dependencies:
flutter_test:
sdk: flutter
integration_test:
sdk: flutter
mocktail: ^1.0.4
fake_async: ^1.3.2
# 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: ^5.0.0
flutter_launcher_icons: ^0.14.4
riverpod_generator: ^2.6.3
build_runner: ^2.4.14
drift_dev: ^2.25.0
custom_lint: ^0.7.1
riverpod_lint: ^2.6.3
wakelock_plus_platform_interface: ^1.3.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:
generate: true
# 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:
- assets/demo/
# 只打包运行时真正用到的图标(封面图/登录页经 rootBundle 读取)。
# 目录内其余文件(app-icon-1024-rounded 仅构建期生成 launcher icon、
# ic_stat_logo 仅作 Android 通知图标源文件)不进包,避免 iOS 等平台白带。
- assets/icon/app-icon-1024.png
# PDF 导出品牌角标(96px 小图,1024 原图 190KB 直接嵌会撑大每份 PDF)
- assets/icon/app-icon-96.png
# 后台静音保活轨:停顿期间循环播放以保持 iOS 音频会话活跃(见 background_audio_handler)
- assets/audio/silence_2s.m4a
# PDF 导出内嵌字体(TrueType 轮廓;pdf 包不支持 CFF/OTF,也无法读系统 CJK 字体)。
# 不注册进 fonts: 段——仅经 rootBundle 读原始字节喂 pw.Font.ttf,生成时自动子集化。
- assets/fonts/pdf/
- test/fixtures/audio_transcode/
# 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
# Flutter Launcher Icons configuration
flutter_launcher_icons:
# Android 配置
android: true
# iOS 配置(移除 alpha 通道以符合 App Store 要求)
ios: true
remove_alpha_ios: true
# 主图标路径
image_path: "assets/icon/app-icon-1024.png"
# 桌面平台配置
macos:
generate: true
image_path: "assets/icon/app-icon-1024-rounded.png"
windows:
generate: true
image_path: "assets/icon/app-icon-1024-rounded.png"
linux:
generate: true
image_path: "assets/icon/app-icon-1024-rounded.png"
# Web 平台配置
web:
generate: true
image_path: "assets/icon/app-icon-1024-rounded.png"