-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathpubspec.yaml
More file actions
91 lines (87 loc) · 2.81 KB
/
pubspec.yaml
File metadata and controls
91 lines (87 loc) · 2.81 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
name: weblibre_project
environment:
sdk: '>=3.8.0 <4.0.0'
workspace:
- apps/weblibre/
- packages/flutter_mozilla_components
- packages/flutter_mozilla_components/example
- packages/flutter_tor
- packages/flutter_tor/example
- packages/simple_intent_receiver
- packages/simple_intent_receiver/example
- packages/locale_resolver
- packages/locale_resolver/example
- packages/speech_to_text_dialog
- packages/speech_to_text_dialog/example
dev_dependencies:
melos: ^7.5.1
melos:
name: weblibre_project
command:
clean:
hooks:
pre: melos exec -c 1 -- "flutter clean"
scripts:
upgrade-major-tighten:
run: |
dart pub upgrade --major-versions --tighten
exec:
concurrency: 1
validate-dependencies:
description: Validates dependcies in the workspace
packageFilters:
noDependsOn: melos
exec: |
dart pub global run dependency_validator
build-watch:
description: Generate and watch files with build_runner in the workspace
packageFilters:
dependsOn: build_runner
exec: |
dart run build_runner watch --delete-conflicting-outputs
build:
description: Generate files with build_runner in the workspace
packageFilters:
dependsOn: build_runner
run: |
dart run build_runner build --delete-conflicting-outputs
exec:
failFast: true
concurrency: 1
build-pigeons:
description: Running pigeon for files in pigeons directory
exec: |
echo "Running pigeon for files in pigeons directory:"
for file in ./pigeons/*; do
if [ -f "\$file" ]; then
echo "Processing \$file"
flutter pub run pigeon --input "\$file"
fi
done
packageFilters:
dirExists: 'pigeons'
format:
description: Format all Dart files in the workspace
exec: dart format .
update-assets:
description: Download external assets (bangs, bridges, URL lists)
run: bash scripts/update-assets.sh
build-components:
description: Build JS components and generate quotes DB
run: |
set -e
sh scripts/build-container-proxy.sh
sh scripts/build-readability.sh
python3 scripts/build_quotes_db.py
build-browser:
description: Build stable release APK split per ABI
run: |
set -e
cd apps/weblibre
flutter build apk --release --flavor stable --target-platform android-arm,android-arm64 --split-per-abi --no-tree-shake-icons
build-browser-alpha:
description: Build alpha release APK split per ABI (side-by-side installable with stable)
run: |
set -e
cd apps/weblibre
flutter build apk --release --flavor alpha --target-platform android-arm,android-arm64 --split-per-abi --no-tree-shake-icons