-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathpubspec.yaml
245 lines (224 loc) · 7.96 KB
/
pubspec.yaml
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
name: syphon
description: a privacy focused matrix client
version: 0.2.14+2140
environment:
sdk: ">=2.17.0 <3.0.0"
flutter: 3.0.5
scripts:
start: flutter run # -d <device_id>
start-fresh: flutter run --no-fast-start # -d <device_id>
devices: flutter devices
install: flutter pub get
build: flutter pub run build_runner build --delete-conflicting-outputs
watch: flutter pub run build_runner watch --delete-conflicting-outputs
uninstall: adb shell && pm uninstall org.tether.tether # (sometimes doesn't uninstall when debugging?)
format: flutter dartfmt --line-length=120 .
build-release-ios: flutter build ipa --release # open under xcworkspace, not xcodeproj
build-release-macos: flutter pub run build_runner build --delete-conflicting-outputs && flutter build macos --release
build-release-android: flutter pub run build_runner build --delete-conflicting-outputs && flutter build apk --release
# mobile development commands
setup-ios: pod install && flutter precache --ios
clean-ios: xcrun simctl delete unavailable
list-ios: xcrun simctl list devices
boot-ios: xcrun simctl boot #<device_id>
list-android: emulator -list-avds
boot-android: emulator -avd #<device_id>
inspect-android: adb shell && run-as org.tether.tether # cache inspection
log-android: adb logcat ActivityManager:I flutter:I *:S
# configuration and troubleshooting
init-repo: git submodule update --init --recursive
reset-xcode: defaults delete com.apple.dt.Xcode
dev-tools: flutter pub global run devtools
cache-clean: pub cache repair && flutter pub cache repair
upgrade-deps: flutter pub upgrade --major-versions
init-platform-dirs: flutter create --org org.tether.tether
enable-desktop: flutter config --enable-macos-desktop --enable-linux-desktop # --no-enable-<type>-desktop
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
### state
equatable: ^2.0.0
expandable: ^5.0.1
convert: ^3.0.0
device_info: ^2.0.0
redux: ^5.0.0
redux_thunk: ^0.4.0
redux_persist: ^0.9.0
redux_persist_flutter: ^0.9.0
flutter_redux: ^0.8.2
mime: ^1.0.0
path: ^1.8.0
path_provider: 2.0.9
package_info: ^2.0.0
### encryption
olm: ^2.0.0
crypto: ^3.0.1
encrypt: ^5.0.0
cryptography: ^2.0.5
canonical_json: 1.1.0
### cache/storage
sembast: ^3.0.1
sqflite: ^2.0.0+3
sembast_sqflite: ^2.0.0+1
sqflite_common_ffi: ^2.0.0
sqlcipher_flutter_libs: ^0.5.1
sqlcipher_library_windows: ^1.0.1
flutter_secure_storage: ^5.0.2
drift: ^1.0.0
### services
http: ^0.13.1
html: ^0.15.0
intl: ^0.17.0
connectivity_plus: ^2.0.2
http_parser: ^4.0.0
easy_localization: ^3.0.0
flutter_dotenv: ^4.0.0-nullsafety.0
android_alarm_manager_plus: ^2.0.3
workmanager: 0.5.0
# background_fetch: 1.1.0
uni_links: ^0.5.0
# flutter_apns: 1.1.0 # TODO: extract only the iOS code and remove
### ui
swipeable: ^1.1.0
cupertino_icons: ^1.0.2
url_launcher: ^6.0.3
flutter_svg: ^0.22.0
flutter_keyboard_visibility: ^5.0.3
flutter_markdown: ^0.6.6
webview_flutter: ^2.0.13
touchable_opacity: ^1.2.0
smooth_page_indicator: ^0.3.0-nullsafety.0
flutter_local_notifications: ^9.0.0
flutter_colorpicker: ^0.6.0
palette_generator: ^0.3.0
emoji_picker_flutter: ^1.0.3
flutter_speed_dial: ^4.2.0
fab_circular_menu: ^1.0.2
flutter_screen_lock: ^4.0.0
photo_view: 0.13.0
vector_math: 2.1.2
flutter_hooks: 0.18.4
font_awesome_flutter: 10.1.0
# window_utils: 1.0.2 # TODO: desktop only window sizing
## media
file_picker: ^4.1.1
image_picker: ^0.8.4
permission_handler: ^8.3.0
local_image_provider: 4.2.0
flutter_image_compress: 1.1.0
share_plus: 4.0.3
### data
uuid: ^3.0.4
json_annotation: ^4.0.0
collection: ^1.15.0-nullsafety.4
# TODO: potential overrides
sqlite3: ^1.5.1
path_provider_linux: ^2.1.5
dev_dependencies:
build_config: ^1.0.0
build_runner: ^2.1.4
drift_dev: ^1.0.2
lint: ^1.5.3
json_serializable: ^6.1.3
flutter_launcher_icons: ^0.9.0
test: any
# TODO: remove when similar functionality is merged
dependency_overrides:
platform: ^3.1.0
workmanager: # TODO: lower ios deployment target
git:
url: https://github.com/syphon-org/flutter_workmanager.git
ref: main
# ref: cdb255e5827dcc962e0340ab6a535bd8e1139a27
swipeable: # TODO: null saftey version
git:
url: https://github.com/ereio/swipeable.git
ref: 867b117f15f51404e31597d8ab9d5325f6b52938
fab_circular_menu: # TODO: accesibility and color theme issues
git:
url: https://github.com/ereio/fab-circular-menu.git
ref: 623b65c0d8f392065f41a4628c0278563a809644
webview_flutter: # TODO: open html as link from as different origins
git:
url: https://github.com/ereio/plugins.git
path: packages/webview_flutter/webview_flutter
ref: 41e4ce6d17078942f6ceb3e614bb2849aab55760
# asset generation
# iOS icons - https://github.com/smallmuou/ios-icon-generator
# - run generation script for ios and macos (desktop and mobile)
# android icons - use Android Studio with generic png
flutter_icons:
android: true
ios: true
image_path: "assets/icons/current/app_icon_ios.png"
adaptive_icon_background: "#34C7B5"
adaptive_icon_foreground: "assets/icons/current/app_icon_foreground.png"
# The following section is specific to Flutter.
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
# see https://flutter.dev/custom-fonts/#from-packages
fonts:
- family: Poppins
fonts:
- asset: assets/fonts/Poppins-Italic.ttf
- asset: assets/fonts/Poppins-Regular.ttf
- asset: assets/fonts/Poppins-Medium.ttf
- asset: assets/fonts/Poppins-Light.ttf
- asset: assets/fonts/Poppins-Thin.ttf
- family: Rubik
fonts:
- asset: assets/fonts/Rubik-Regular.ttf
- asset: assets/fonts/Rubik-Medium.ttf
- asset: assets/fonts/Rubik-Light.ttf
- family: Inter
fonts:
- asset: assets/fonts/Inter-Italic.ttf
- asset: assets/fonts/Inter-Regular.ttf
- asset: assets/fonts/Inter-Medium.ttf
- asset: assets/fonts/Inter-Light.ttf
# To add assets to your application, add an assets section, like this:
# On release, change .env.debug to .env
assets:
- assets/translations/
- assets/payloads/servers.json
- assets/payloads/recaptcha.html
- assets/graphics/undraw_avatar_male.svg
- assets/graphics/undraw_avatar_female.svg
- assets/graphics/undraw_sync_files.svg
- assets/graphics/undraw_accept_terms.svg
- assets/graphics/undraw_mobile_user.svg
- assets/graphics/undraw_messaging_fun.svg
- assets/graphics/undraw_connection.svg
- assets/graphics/undraw_group_chat.svg
- assets/graphics/undraw_people.svg
- assets/graphics/undraw_site_content.svg
- assets/graphics/undraw_escaping.svg
- assets/graphics/undraw_message_sent.svg
- assets/graphics/undraw_new_message.svg
- assets/graphics/undraw_mail_sent.svg
- assets/graphics/undraw_in_thought.svg
- assets/graphics/undraw_profile_data.svg
- assets/graphics/undraw_mention.svg
- assets/graphics/undraw_not_found.svg
- assets/icons/current/app_icon_cyan.svg
- assets/icons/current/app_icon_cyan.png
- assets/icons/current/app_icon_white.png
- assets/icons/global/being-check.svg
- assets/icons/global/being-person-add.svg
- assets/icons/global/being-group-add.svg
- assets/icons/global/being-public-add.svg
- assets/icons/global/being-search-public.svg
- assets/icons/global/being-search-public-condensed.svg
- assets/icons/global/being-message-syphon.svg
- assets/icons/global/being-send.svg
- assets/icons/global/being-send-solid.svg
- assets/icons/global/being-send-lock.svg
- assets/icons/global/being-send-lock-solid.svg
- assets/icons/global/being-send-unlock.svg
- assets/icons/global/being-chevrons-right.svg
- assets/icons/global/feather-message-circle.svg