-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 1.67 KB
/
Makefile
File metadata and controls
44 lines (34 loc) · 1.67 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
39
40
41
42
43
44
.PHONY: bootstrap verify verify-spm coverage-check live-test example-install print-simulator-destination secrets-setup secrets-clean clean
bootstrap:
bundle config set --local path vendor/bundle
bundle install
verify:
swift test --enable-code-coverage --filter PutioSDKTests
./scripts/check-spm-coverage.sh 90
swift build
bundle exec pod install --project-directory=Example
@destination="$$(./scripts/xcode-iphone-simulator-destination.sh --workspace Example/PutioSDK.xcworkspace --scheme PutioSDK 2>/dev/null || true)"; \
if [ -n "$$destination" ]; then \
echo "Using Xcode iPhone simulator destination: $$destination"; \
xcodebuild -workspace Example/PutioSDK.xcworkspace -scheme PutioSDK -configuration Debug -destination "$$destination" build CODE_SIGNING_ALLOWED=NO; \
else \
echo "No Xcode-advertised iPhone simulator destination on iOS 26.0 or newer. Falling back to the installed iphonesimulator SDK."; \
xcodebuild -workspace Example/PutioSDK.xcworkspace -scheme PutioSDK -sdk iphonesimulator -configuration Debug build CODE_SIGNING_ALLOWED=NO; \
fi
verify-spm:
swift build
coverage-check:
./scripts/check-spm-coverage.sh 90
live-test:
swift test --filter PutioSDKLiveTests
secrets-setup:
OP_ACCOUNT=putdotio.1password.com op whoami >/dev/null
OP_ACCOUNT=putdotio.1password.com op inject -f -i .env.example -o .env.local
secrets-clean:
rm -f .env.local .env.local.* .env.local.swp
example-install:
bundle exec pod install --project-directory=Example
print-simulator-destination:
@./scripts/xcode-iphone-simulator-destination.sh --workspace Example/PutioSDK.xcworkspace --scheme PutioSDK
clean:
rm -rf .build .bundle Package.resolved vendor/bundle Example/Pods