forked from CIROH-UA/RIVR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
39 lines (32 loc) · 1.11 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
# RIVR Release Build Makefile
#
# Usage:
# make release-android — builds signed release AAB with obfuscation
# make release-ios — builds release IPA with obfuscation
# make analyze — runs flutter analyze
# make test — runs unit + widget tests
#
# Prerequisites:
# - android/key.properties must exist (see Google Drive → RIVR Release Keys/)
# - lib/services/0_config/shared/config.dart must exist (copy from config.template.dart)
# - lib/firebase_options.dart must exist (generated by FlutterFire CLI)
#
# Debug symbols are written to build/debug-info/ (gitignored).
# Upload them to Firebase Crashlytics after each release:
# firebase crashlytics:symbols:upload --app=<APP_ID> build/debug-info/
DEBUG_INFO_DIR := build/debug-info
.PHONY: release-android release-ios analyze test clean
release-android:
flutter build appbundle --release \
--obfuscate \
--split-debug-info=$(DEBUG_INFO_DIR)/android
release-ios:
flutter build ipa --release \
--obfuscate \
--split-debug-info=$(DEBUG_INFO_DIR)/ios
analyze:
flutter analyze
test:
flutter test
clean:
flutter clean