summaryrefslogtreecommitdiff
path: root/platform/ios/scripts/framework.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/scripts/framework.sh')
-rwxr-xr-xplatform/ios/scripts/framework.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/platform/ios/scripts/framework.sh b/platform/ios/scripts/framework.sh
deleted file mode 100755
index e2842a4707..0000000000
--- a/platform/ios/scripts/framework.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -o pipefail
-set -u
-
-cd build/ios/pkg
-rm -rf framework
-mkdir framework
-cd framework
-
-mkdir Mapbox.framework
-
-# headers
-cp -rv ../static/Headers Mapbox.framework/Headers
-cat ../../../../ios/framework/umbrella >> Mapbox.framework/Headers/Mapbox.h
-
-# resources
-cp -rv ../static/Mapbox.bundle Mapbox.framework/Mapbox.bundle
-
-# license
-cp -v ../../../../LICENSE.md Mapbox.framework
-
-# settings bundle
-cp -rv ../../../../ios/framework/Settings.bundle Mapbox.framework/Settings.bundle
-
-# binary
-cp -v ../static/libMapbox.a Mapbox.framework/Mapbox
-strip -Sx Mapbox.framework/Mapbox
-
-# module map
-mkdir Mapbox.framework/Modules
-cp -v ../../../../ios/framework/modulemap Mapbox.framework/Modules/module.modulemap
-
-# Info.plist
-VERSION=$( git tag | grep ^ios | sed 's/^ios-//' | sort -r | grep -v '\-rc.' | grep -v '\-pre.' | sed -n '1p' | sed 's/^v//' )
-echo "Using $VERSION for Info.plist. Note that you will need to manually update the product for pre-releases or release candidates."
-cp -v ../../../../ios/framework/Info.plist Mapbox.framework
-perl -pi -e "s/#####/$VERSION/" Mapbox.framework/Info.plist
-perl -pi -e "s/%%%%%/$VERSION/" Mapbox.framework/Info.plist