-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 1.52 KB
/
Makefile
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
# Handles APK builds for Testing
android_build:
flutter build apk
# Handles Android Bundles for Google Play Distribution
android_bundle:
flutter build appbundle
# Handles iOS builds assuming you've assigned the correct settings in Xcode
ios_build:
flutter build ios
# Opens iOS Runner in the event that we need to configure the build process
ios_runner:
open ios/Runner.xcworkspace
# In the event that the ipa build fails, we can manually deploy it to TestFlight with Xcode
ios_distribute:
open build/ios/archive/Runner.xcarchive
# Shorthand for building Web version.
web_build:
flutter build web
# Deploys Flutter Web application to Firebase hosting.
web_deploy:
firebase deploy
# CD's to iOS project folder and uses Fastlane to deploy to TestFlight
fastlane_testflight:
cd ios/ && fastlane test_flight
# Builds Android app using Fastlane and automatically deploys to Firebase App Distribution
fastlane_firebase_android:
cd android && fastlane android_firebase
# Assuming you've previously setup Firebase with App Distribution, you can add
# Web Apps with Firebase hosting. You will need to init the Firebase SPA tools.
web_firebase_deploy: web_build web_deploy
# Test builds before we move forward with anything
test_builds: ios_build android_build web_build
# Deploy to Dev environments (TestFlight for iOS, Firebase App Distribution for Android)
deploy_dev: test_builds fastlane_firebase_android fastlane_testflight web_deploy
create_app_icon:
dart run flutter_launcher_icons
isar_generate_model:
dart run build_runner build