-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yaml
More file actions
79 lines (63 loc) · 1.63 KB
/
Copy pathtaskfile.yaml
File metadata and controls
79 lines (63 loc) · 1.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
version: '3'
tasks:
default:
summary: |
Just a list of documented tasks.
silent: true
cmds:
- task --list
check:
desc: Checks
deps:
- get
- format
- analyze
get:
desc: Install Flutter dependencies
cmds:
- flutter packages get
format:
desc: Dark format
cmds:
- dart format .
analyze:
desc: Run Flutter analyze
cmds:
- flutter analyze
br:
desc: dart run build_runner build
cmds:
- dart run build_runner build --delete-conflicting-outputs
build:apk:
desc: Build for Android
cmds:
- flutter build apk --flavor production --target lib/main_production.dart
build:appbundle:
desc: Build for Android (App Bundle)
cmds:
- flutter build appbundle --flavor production --target lib/main_production.dart
build:ipa:
desc: Build an IPA (iOS)
cmds:
- flutter build ipa --release --flavor production --target lib/main_production.dart
dev:
desc: Run the development flavor
cmds:
- flutter run --flavor development --target lib/main_development.dart
staging:
desc: Run the staging flavor
cmds:
- flutter run --flavor staging --target lib/main_staging.dart
production:
desc: Run the production flavor
cmds:
- flutter run --flavor production --target lib/main_production.dart
test:
desc: Run unit and widget tests with coverage
cmds:
- flutter test --coverage --test-randomize-ordering-seed random
coverage:
desc: Generate and open a coverage report
cmds:
- genhtml coverage/lcov.info -o coverage/
- open coverage/index.html