summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-12-06 10:36:00 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-12-13 17:26:53 -0800
commite7d7add42083b1a00ff40b075fc8519c9f8235a3 (patch)
treeff4253e8e2d72f2d79fc8cc1f8a39ec59adb5a87 /scripts
parent0722d26846c26c6b53b65cb848df577017de1881 (diff)
downloadqtlocation-mapboxgl-e7d7add42083b1a00ff40b075fc8519c9f8235a3.tar.gz
[ios] Strip OS X–specific APIs from iOS documentation
appledoc can’t understand conditional compilation. This is the best we can do until we move to Jazzy.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ios/package.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/ios/package.sh b/scripts/ios/package.sh
index 049aa7434d..d067e67eab 100755
--- a/scripts/ios/package.sh
+++ b/scripts/ios/package.sh
@@ -135,6 +135,10 @@ perl \
-pi \
-e 's/NS_(?:(MUTABLE)_)?(ARRAY|SET|DICTIONARY)_OF\(\s*(.+?)\s*\)/NS\L\u$1\u$2\E <$3>/g' \
/tmp/mbgl/Headers/*.h
+perl \
+ -i -p0 \
+ -e 's/^#if\s+!\s*TARGET_OS_IPHONE\s*(?:&&[^\n]+)?\n.+?\n#endif//gms' \
+ /tmp/mbgl/Headers/*.h
appledoc \
--output ${DOCS_OUTPUT} \
--project-name "Mapbox iOS SDK ${DOCS_VERSION}" \