File tree Expand file tree Collapse file tree 3 files changed +1074
-1923
lines changed Expand file tree Collapse file tree 3 files changed +1074
-1923
lines changed Original file line number Diff line number Diff line change 10
10
- Sentry.xcodeproj/**
11
11
- " Package.swift"
12
12
- " scripts/build-xcframework-local.sh"
13
+ - " scripts/update-api.sh"
13
14
14
15
jobs :
15
16
api-stability :
Original file line number Diff line number Diff line change @@ -11,6 +11,21 @@ configuration_suffix="${1-}"
11
11
# This ensures only public interfaces are analyzed
12
12
find ./Sentry-Dynamic.xcframework -name " *.private.swiftinterface" -type f -delete
13
13
14
+ if [ " $configuration_suffix " = " V9" ]; then
15
+ FWROOT=" ./Sentry-Dynamic.xcframework/ios-arm64_arm64e/Sentry.framework"
16
+ for FRAME in Headers PrivateHeaders; do
17
+ HDRDIR=" $FWROOT /${FRAME} "
18
+ for H in " $HDRDIR " /* .h; do
19
+ # unifdef will:
20
+ # - keep code under #if SDK_V9 (because of -D)
21
+ # - remove code under #else
22
+ # - strip away the #if/#else/#endif lines themselves
23
+ unifdef -D SDK_V9 -x 2 " $H " > " $H .tmp"
24
+ mv " $H .tmp" " $H "
25
+ done
26
+ done
27
+ fi
28
+
14
29
xcrun --sdk iphoneos swift-api-digester \
15
30
-dump-sdk \
16
31
-o sdk_api${configuration_suffix: +" _${configuration_suffix} " } .json \
You can’t perform that action at this time.
0 commit comments