Permalink
Switch branches/tags
v1.2 v1.1 v1.0 v1.last sdk-version-4.26.0 sdk-version-4.25.0 sdk-version-4.24.0 sdk-version-4.23.0 sdk-version-4.22.1 sdk-version-4.22.0 sdk-version-4.21.0 sdk-version-4.20.2 sdk-version-4.20.1 sdk-version-4.20.0 sdk-version-4.19.0 sdk-version-4.18.0 sdk-version-4.17.0 sdk-version-4.16.1 sdk-version-4.16.0 sdk-version-4.15.1 sdk-version-4.15.0 sdk-version-4.14.0 sdk-version-4.13.1 sdk-version-4.13.0 sdk-version-4.12.0 sdk-version-4.11.1-beta1 sdk-version-4.11.0 sdk-version-4.10.1 sdk-version-4.10.0 sdk-version-4.9.1 sdk-version-4.9.0 sdk-version-4.9.0-beta2 sdk-version-4.8.0 sdk-version-4.7.1 sdk-version-4.7.0 sdk-version-4.6.0 sdk-version-4.6.0-beta1 sdk-version-4.5.1 sdk-version-4.5.0 sdk-version-4.4.0 sdk-version-4.3.0 sdk-version-4.2.0 sdk-version-4.1.0 sdk-version-4.0.1 sdk-version-4.0.1-dev sdk-version-4.0.0 sdk-version-3.24.4 sdk-version-3.24.2 sdk-version-3.24.1 sdk-version-3.24.0 sdk-version-3.24.0-beta1 sdk-version-3.23.2 sdk-version-3.23.1 sdk-version-3.23.0 sdk-version-3.22.0 sdk-version-3.21.1 sdk-version-3.21.0 sdk-version-3.20.0 sdk-version-3.19.0 sdk-version-3.18.2 sdk-version-3.18.1 sdk-version-3.18.0 sdk-version-3.17.1 sdk-version-3.17.0 sdk-version-3.16.2 sdk-version-3.16.1 sdk-version-3.16.0 sdk-version-3.15.1 sdk-version-3.15.0 sdk-version-3.14.1 sdk-version-3.14.0 sdk-version-3.13.1 sdk-version-3.13.0 sdk-version-3.12.0 sdk-version-3.11.1 sdk-version-3.11.0 sdk-version-3.10.0 sdk-version-3.9.0 sdk-version-3.8.0 sdk-version-3.7.1 sdk-version-3.7.0 sdk-version-3.6.0 sdk-version-3.5.3 sdk-version-3.5.2 sdk-version-3.5.1 sdk-version-3.5.0 sdk-version-3.2.1 sdk-version-3.2.0 sdk-version-3.1.1 sdk-version-3.1.0 sdk-version-3.0.8 sdk-version-3.0.7 sdk-version-3.0.6.b sdk-version-3.0.5.b sdk-version-3.0.2.b sdk-version-3.0.1.b sdk-version-3.0.0.b messenger-share-kit-version-1.3.2 messenger-share-kit-version-1.3.1 messenger-share-kit-version-1.3.0
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 103 lines (90 sloc) 3.14 KB
#!/bin/sh
# Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
#
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
# copy, modify, and distribute this software in source code or binary form for use
# in connection with the web services and APIs provided by Facebook.
#
# As with any software that integrates with the Facebook platform, your use of
# this software is subject to the Facebook Developer Principles and Policies
# [http://developers.facebook.com/policy/]. This copyright notice shall be
# included in all copies or substantial portions of the software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
. "${FB_SDK_SCRIPT:-$(dirname "$0")}/common.sh"
# process options, valid arguments -c [Debug|Release] -n -s [scheme]
BUILDCONFIGURATION=Debug
NOEXTRAS=1
SCHEME=BuildAllKits
while getopts ":ntc:s:" OPTNAME
do
case "$OPTNAME" in
"s")
SCHEME=$OPTARG
;;
"c")
BUILDCONFIGURATION=$OPTARG
;;
"n")
NOEXTRAS=1
;;
"t")
NOEXTRAS=0
;;
"?")
echo "$0 -c [Debug|Release] -n"
echo " -c sets configuration (default=Debug)"
echo " -n no test run (default)"
echo " -t test run"
echo " -s scheme (default=BuildAllKits)"
die
;;
":")
echo "Missing argument value for option $OPTARG"
die
;;
*)
# Should not occur
echo "Unknown error while processing options"
die
;;
esac
done
# -----------------------------------------------------------------------------
progress_message Building Framework.
# -----------------------------------------------------------------------------
# Compile binaries
#
test -d "$FB_SDK_BUILD" \
|| mkdir -p "$FB_SDK_BUILD" \
|| die "Could not create directory $FB_SDK_BUILD"
cd "$FB_SDK_ROOT"
(xcodebuild -workspace "${FB_SDK_ROOT}"/FacebookSDK.xcworkspace -scheme "${SCHEME}" -configuration "${BUILDCONFIGURATION}" clean build) || die "Failed to build"
# -----------------------------------------------------------------------------
# Run unit tests
#
if [ ${NOEXTRAS:-0} -eq 1 ];then
progress_message "Skipping unit tests."
else
progress_message "Running unit tests."
cd "$FB_SDK_ROOT"
"$FB_SDK_SCRIPT/run_tests.sh" -c $BUILDCONFIGURATION
fi
# -----------------------------------------------------------------------------
# Generate strings
#
progress_message "Generating strings"
(
cd "$FB_SDK_ROOT"
find FBSDKCoreKit/ FBSDKShareKit/ FBSDKLoginKit/ FBSDKTVOSKit/ -name "*.m" | xargs genstrings -o FacebookSDKStrings.bundle/Resources/en.lproj/
)
# -----------------------------------------------------------------------------
# Done
#
progress_message "Framework version info: ${FB_SDK_VERSION_RAW}"
common_success