-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
38 lines (26 loc) · 1.03 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
.PHONY: format formatKotlin formatSwift formatDart checkFormatDart checkFormatKotlin checkFormatSwift checkApiDart updateApiDart analyzeDart installLinters test
format: formatSwift formatKotlin formatDart
installLinters:
brew install ktlint
brew install swiftformat
formatKotlin:
ktlint --format --baseline=posthog_flutter/ktlint-baseline.xml posthog_flutter/android/**/*.kt
checkFormatKotlin:
ktlint --baseline=posthog_flutter/ktlint-baseline.xml posthog_flutter/android/**/*.kt
# swiftlint darwin/posthog_flutter/Sources --fix conflicts with swiftformat
formatSwift:
swiftformat posthog_flutter/darwin/posthog_flutter/Sources/posthog_flutter --swiftversion 5.3
checkFormatSwift:
swiftformat posthog_flutter/darwin/posthog_flutter/Sources/posthog_flutter --swiftversion 5.3 --lint
formatDart:
dart format .
checkFormatDart:
dart format --set-exit-if-changed ./
analyzeDart:
dart analyze .
checkApiDart:
scripts/check-api-dart.sh
updateApiDart:
scripts/check-api-dart.sh --update
test:
cd posthog_flutter && flutter test -r expanded