forked from supabase-community/gotrue-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 941 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
PLATFORM_IOS = iOS Simulator,name=iPhone 14 Pro Max
PLATFORM_MACOS = macOS
PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 7 (45mm)
test-library:
for platform in "$(PLATFORM_IOS)" "$(PLATFORM_MACOS)" "$(PLATFORM_MAC_CATALYST)" "$(PLATFORM_TVOS)" "$(PLATFORM_WATCHOS)"; do \
xcodebuild test \
-workspace GoTrue.xcworkspace \
-scheme GoTrue \
-destination platform="$$platform" || exit 1; \
done;
build-example:
xcodebuild build \
-workspace GoTrue.xcworkspace \
-scheme Examples \
-destination platform="$(PLATFORM_IOS)" || exit 1;
format:
@swiftformat .
api:
create-api generate --output Sources/GoTrue/Generated --config .createapi.yml openapi.yaml
sed -i "" "s/public /internal /g" Sources/GoTrue/Generated/Paths.swift
$(MAKE) format
.PHONY: test-library build-example format test-library create-api