-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 1.02 KB
/
Makefile
File metadata and controls
35 lines (27 loc) · 1.02 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
WORKDIR ?= $(CURDIR)
BUILD_RUNNER = dart run build_runner build --delete-conflicting-outputs
GEN_FILES = \( -name '*.g.dart' -o -name '*.gr.dart' -o -name '*.config.dart' -o -name '*.auto_mappr.dart' -o -name '*.mocks.dart' \)
# Flutter Build
fb:
cd "$(WORKDIR)" && flutter pub get && $(BUILD_RUNNER)
# Dart Build Runner
db:
cd "$(WORKDIR)" && $(BUILD_RUNNER)
# Flutter Rebuild
frb:
cd "$(WORKDIR)" && flutter clean && find . -type f $(GEN_FILES) -delete && flutter pub get && $(BUILD_RUNNER)
# Clean
clean:
cd "$(WORKDIR)" && flutter clean && find . -type f $(GEN_FILES) -delete
# Plain Rebuild
mr:
cd "$(WORKDIR)" && melos rebuild:all
# Enable DebugView for Firebase Analytics
debug_view:
cd "$(WORKDIR)" && adb shell setprop debug.firebase.analytics.app co.za.zanderkotze.multichoice
# Kill crashed emulator processes
kill_emulator:
taskkill /F /IM qemu-system-x86_64.exe 2>NUL || taskkill /F /IM emulator.exe 2>NUL || echo "No emulator processes found"
# Launch emulator
launch_emulator:
flutter emulators --launch Pixel_9_36.1