-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
makefile
64 lines (59 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
# environment
setup:
make builder && git submodule update --init --recursive
# dev build commands
start:
make builder && flutter run # -d <device_id>
start-only:
flutter run # -d <device_id>
start-fresh:
flutter run --no-fast-start # -d <device_id>
devices:
flutter devices
install:
flutter pub get
builder:
make install && dart run build_runner build --delete-conflicting-outputs
watch:
dart run build_runner watch --delete-conflicting-outputs
uninstall:
adb shell && pm uninstall org.tether.tether # (sometimes doesn't uninstall when debugging?)
format:
flutter dartfmt --line-length=120 .
# release build commands
build-release-ios:
make builder && flutter build ipa --release # open under xcworkspace, not xcodeproj
build-release-macos:
make builder && flutter build macos --release
build-release-android:
make builder && flutter build apk --release
# mobile development commands
setup-ios:
pod install && flutter precache --ios
clean-ios:
xcrun simctl delete unavailable
list-ios:
xcrun simctl list devices
boot-ios:
xcrun simctl boot #<device_id>
list-android:
emulator -list-avds
boot-android:
emulator -avd #<device_id>
inspect-android:
adb shell && run-as org.tether.tether # cache inspection
log-android:
adb logcat ActivityManager:I flutter:I *:S
# configuration and troubleshooting
reset-xcode:
defaults delete com.apple.dt.Xcode
dev-tools:
flutter pub global run devtools
cache-clean:
pub cache repair && flutter pub cache repair
upgrade-deps:
flutter pub upgrade --major-versions
init-platform-dirs:
flutter create --org org.tether.tether
enable-desktop:
flutter config --enable-macos-desktop --enable-linux-desktop # --no-enable-<type>-desktop