forked from supabase-community/gotrue-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 844 Bytes
/
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
PLATFORM_IOS = iOS Simulator,name=iPhone 11 Pro Max
PLATFORM_MACOS = macOS
PLATFORM_TVOS = tvOS Simulator,name=Apple TV 4K (at 1080p) (2nd generation)
default: test-all
test-all: test-ios test-macos test-tvos
test-ios:
xcodebuild test \
-scheme GoTrue \
-destination platform="$(PLATFORM_IOS)"
test-macos:
xcodebuild test \
-scheme GoTrue \
-destination platform="$(PLATFORM_MACOS)"
test-tvos:
xcodebuild test \
-scheme GoTrue \
-destination platform="$(PLATFORM_TVOS)"
format:
swift format \
--ignore-unparsable-files \
--in-place \
--recursive .
api:
create-api generate --module GoTrue --output Sources/GoTrue/Generated --config .createapi.yml openapi.yaml
sed -i "" "s/public /internal /g" Sources/GoTrue/Generated/Paths.swift
$(MAKE) format
.PHONY: format test-all test-ios test-macos test-tvos create-api