Files
sodalive-ios/work/tests/check-gift-decoding-contract.sh
T

16 lines
441 B
Bash
Executable File

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
swiftc \
"$root/SodaLive/Sources/Common/ApiResponse.swift" \
"$root/SodaLive/Sources/Common/ApiResponseWithoutData.swift" \
"$root/SodaLive/Sources/V2/Gift/Models/GiftModels.swift" \
"$root/work/tests/GiftDecodingContractCheck.swift" \
-o "$tmp/gift-decoding-contract-check"
"$tmp/gift-decoding-contract-check"