Skip to content

Commit 932fce5

Browse files
committed
feat: 0.4.0
- Modules restructuring - Introduced safer APIs - Deprecations - Extracted common logic into ConfigurationBlocks - Extracted ConfigurationStorage into a separate type - Removed some older deprecations - Bumped default swift version - Removed swiftformat - Updated tests with Testing framework
1 parent caa1f60 commit 932fce5

File tree

55 files changed

+4991
-2646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+4991
-2646
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ xcuserdata/
66
Scripts/.installed
77
Scripts/.bin
88
DerivedData
9+
Package.resolved
10+
Build

.swiftformat

Lines changed: 0 additions & 76 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Maxim Krouk
3+
Copyright (c) 2025 CaptureContext
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 99 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,102 @@
1-
install_formatter:
2-
@chmod +x ./scripts/install_swift-format.sh
3-
@./scripts/install_swift-format.sh
1+
default:
2+
$(error Missing command)
3+
@exit 1
44

5-
update_formatter:
6-
@rm ./scripts/.bin/swift-format
7-
@make install_formatter
5+
%:
6+
$(error Unknown command: $@)
7+
@exit 1
88

9-
format:
10-
@chmod +x ./scripts/format.sh
11-
@./scripts/format.sh
9+
TEST_RUNNER_CI ?= $(CI)
10+
MAKEFILE_PATH ?= ./swift-package-action/Makefile
11+
12+
SCHEME ?= DeclarativeConfiguration
13+
PLATFORM ?= iOS
14+
CONFIG ?= Debug
15+
16+
DERIVED_DATA=./DerivedData
17+
18+
BOLD=\033[1m
19+
RESET=\033[0m
20+
21+
test-all:
22+
$(MAKE) test-library
23+
$(MAKE) test-library-macros
24+
$(MAKE) test-docs
25+
26+
test-library:
27+
@make loop-platforms \
28+
-f $(MAKEFILE_PATH) \
29+
PLATFORMS=iOS,macOS \
30+
GOAL=xcodebuild \
31+
COMMAND=test \
32+
SCHEME=$(SCHEME) \
33+
CONFIG=$(CONFIG) \
34+
DERIVED_DATA=$(DERIVED_DATA)
35+
36+
test-library-macros:
37+
@make loop-platforms \
38+
-f $(MAKEFILE_PATH) \
39+
PLATFORMS=iOS,macOS,macCatalyst,watchOS,tvOS \
40+
GOAL=xcodebuild-macros \
41+
COMMAND=test \
42+
SCHEME=$(SCHEME) \
43+
CONFIG=$(CONFIG) \
44+
DERIVED_DATA=$(DERIVED_DATA)
45+
$(MAKE) xcodebuild-macros-plugin COMMAND=test PLATFORM=macOS
46+
47+
xcodebuild:
48+
@make xcodebuild \
49+
-f $(MAKEFILE_PATH) \
50+
COMMAND=$(COMMAND) \
51+
DERIVED_DATA=$(DERIVED_DATA) \
52+
CONFIG=$(CONFIG) \
53+
SCHEME=$(SCHEME) \
54+
PLATFORM=$(PLATFORM)
1255

13-
test:
14-
@swift test --enable-test-discovery
56+
xcodebuild-macros:
57+
@make xcodebuild-macros \
58+
-f $(MAKEFILE_PATH) \
59+
COMMAND=$(COMMAND) \
60+
DERIVED_DATA=$(DERIVED_DATA) \
61+
CONFIG=$(CONFIG) \
62+
SCHEME=$(SCHEME) \
63+
PLATFORM=$(PLATFORM)
64+
65+
xcodebuild-macros-plugin:
66+
@make xcodebuild-macros-plugin \
67+
-f $(MAKEFILE_PATH) \
68+
COMMAND=$(COMMAND) \
69+
DERIVED_DATA=$(DERIVED_DATA) \
70+
CONFIG=$(CONFIG) \
71+
SCHEME=$(SCHEME) \
72+
PLATFORM=$(PLATFORM)
73+
74+
build-for-library-evolution:
75+
@make build-for-library-evolution \
76+
-f $(MAKEFILE_PATH) \
77+
SCHEME=$(SCHEME)
78+
79+
test-docs:
80+
@make test-docs \
81+
-f $(MAKEFILE_PATH) \
82+
SCHEME=$(SCHEME) \
83+
PLATFORM=$(PLATFORM)
84+
85+
test-example:
86+
@make test-example \
87+
-f $(MAKEFILE_PATH) \
88+
DERIVED_DATA=$(DERIVED_DATA) \
89+
SCHEME=$(SCHEME) \
90+
PLATFORM=$(PLATFORM)
91+
92+
test-integration:
93+
@make test-integration \
94+
-f $(MAKEFILE_PATH) \
95+
SCHEME=Integration \
96+
PLATFORM=$(PLATFORM)
97+
98+
benchmark:
99+
@make benchmark -f $(MAKEFILE_PATH)
100+
101+
format:
102+
@make format -f $(MAKEFILE_PATH)

0 commit comments

Comments
 (0)