make iproj now produces a target that pulls together static libraries like core and platform-ios into a real dynamic framework. iosapp is pretty much just a regular iOS application that links Mapbox.framework (except for the inclusion of default_styles.hpp). iosapp runs fine in the Simulator and on a device, and the same is true for any application linking against Mapbox.framework. The ipackage target produces both a Bitcode-disabled static framework and a Bitcode-enabled dynamic framework, eliminating the need for a separate framework.sh. It disables code signing, since that happens on copy when the framework is embedded inside the application bundle. It also merges the device and simulator builds into a single fat framework. Also bumped itest minimum deployment target to iOS 8.0, the first version that supports linking frameworks. Fixes #828.
32 lines
611 B
Bash
Executable File
32 lines
611 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
set -u
|
|
|
|
#
|
|
# iOS release tag format is `vX.Y.Z`; `X.Y.Z` gets passed in
|
|
# In the case of symbolicated builds, we also append the `-symbols`.
|
|
#
|
|
PUBLISH_VERSION="$1"
|
|
|
|
if [[ ${#} -eq 2 ]]; then
|
|
PUBLISH_STYLE="-$2"
|
|
else
|
|
PUBLISH_STYLE=""
|
|
fi
|
|
|
|
#
|
|
# zip
|
|
#
|
|
cd build/ios/pkg
|
|
ZIP=mapbox-ios-sdk-${PUBLISH_VERSION}${PUBLISH_STYLE}.zip
|
|
rm -f ../${ZIP}
|
|
zip -r ../${ZIP} *
|
|
#
|
|
# upload
|
|
#
|
|
REPO_NAME=$(basename $TRAVIS_REPO_SLUG)
|
|
aws s3 cp ../${ZIP} s3://mapbox/$REPO_NAME/ios/builds/ --acl public-read > /dev/null
|
|
echo http://mapbox.s3.amazonaws.com/$REPO_NAME/ios/builds/${ZIP}
|