[ios] Remove old Fabric build infrastructure
This commit is contained in:
5
Makefile
5
Makefile
@@ -253,11 +253,6 @@ iframework: $(IOS_PROJ_PATH)
|
||||
FORMAT=dynamic BUILD_DEVICE=$(BUILD_DEVICE) SYMBOLS=$(SYMBOLS) \
|
||||
./platform/ios/scripts/package.sh
|
||||
|
||||
.PHONY: ifabric
|
||||
ifabric: $(IOS_PROJ_PATH)
|
||||
FORMAT=static BUILD_DEVICE=$(BUILD_DEVICE) SYMBOLS=NO SELF_CONTAINED=YES \
|
||||
./platform/ios/scripts/package.sh
|
||||
|
||||
.PHONY: ideploy
|
||||
ideploy:
|
||||
caffeinate -i ./platform/ios/scripts/deploy-packages.sh
|
||||
|
||||
@@ -46,7 +46,6 @@ Build and package the SDK by using one of the following commands:
|
||||
* `make iframework` builds a dynamic framework in the Debug configuration for devices and the iOS Simulator. The CocoaPods pod downloads the output of this target.
|
||||
* `make ipackage-sim` builds a dynamic framework in the Debug configuration for the iOS simulator. This is the fastest target.
|
||||
* `make ipackage-strip` builds both dynamic and static frameworks in the Debug configuration, stripped of debug symbols, for devices and the iOS Simulator.
|
||||
* `make ifabric` builds a special static framework for compatibility with the Fabric Mac application.
|
||||
|
||||
You can customize the build output by passing the following arguments into the `make` invocation:
|
||||
|
||||
|
||||
@@ -112,6 +112,5 @@ buildPackageStyle "ipackage" "symbols"
|
||||
buildPackageStyle "ipackage-strip"
|
||||
buildPackageStyle "iframework" "symbols-dynamic"
|
||||
buildPackageStyle "iframework SYMBOLS=NO" "dynamic"
|
||||
buildPackageStyle "ifabric" "fabric"
|
||||
|
||||
step "Finished deploying ${PUBLISH_VERSION} in $(($SECONDS / 60)) minutes and $(($SECONDS % 60)) seconds"
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
set -u
|
||||
|
||||
export PUBLISH_VERSION=$1
|
||||
export BINARY_DIRECTORY=$2
|
||||
export ZIP_OUTPUT=mapbox-ios-sdk-${PUBLISH_VERSION}-fabric
|
||||
export FILE_NAME=mapbox-ios-sdk-${PUBLISH_VERSION}-fabric.zip
|
||||
export ZIP_ARCHIVE_PATH=${BINARY_DIRECTORY}/${FILE_NAME}
|
||||
export BUNDLE_ID="com.mapbox.sdk.ios"
|
||||
|
||||
echo "Downloading ${FILE_NAME}:"
|
||||
wget -P ${BINARY_DIRECTORY} http://mapbox.s3.amazonaws.com/mapbox-gl-native/ios/builds/${FILE_NAME}
|
||||
|
||||
echo "Extracting ${ZIP_ARCHIVE_PATH} to ${BINARY_DIRECTORY}/${ZIP_OUTPUT}"
|
||||
unzip -q ${ZIP_ARCHIVE_PATH} -d ${BINARY_DIRECTORY}/${ZIP_OUTPUT}
|
||||
ditto ${BINARY_DIRECTORY}/${ZIP_OUTPUT}/static/Mapbox.framework ${BINARY_DIRECTORY}/Mapbox.framework
|
||||
|
||||
echo "Zipping framework:"
|
||||
cd ${BINARY_DIRECTORY}
|
||||
zip -q -r Mapbox.framework.zip Mapbox.framework
|
||||
cd $OLDPWD
|
||||
|
||||
echo "Validating framework:"
|
||||
./validate-fabric-zip.sh ${BINARY_DIRECTORY}/Mapbox.framework.zip
|
||||
|
||||
echo "Uploading ${BINARY_DIRECTORY}/Mapbox.framework.zip to https://kits.fabric.io/manage-api/v1/kit-releases/ios/$BUNDLE_ID/$PUBLISH_VERSION with key ${FABRIC_KIT_API_KEY}"
|
||||
curl --fail -v -X PUT -H "X-FabricKits-ApiKey: ${FABRIC_KIT_API_KEY}" \
|
||||
-F "release_artifact=@${BINARY_DIRECTORY}/Mapbox.framework.zip;type=application/octet-stream" \
|
||||
https://kits.fabric.io/manage-api/v1/kit-releases/ios/$BUNDLE_ID/$PUBLISH_VERSION
|
||||
|
||||
echo "Cleaning up"
|
||||
rm -r #{BINARY_DIRECTORY}
|
||||
|
||||
echo "Done"
|
||||
Reference in New Issue
Block a user