-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
851 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "AEXML", | ||
"repositoryURL": "https://github.com/tadija/AEXML", | ||
"state": { | ||
"branch": null, | ||
"revision": "8623e73b193386909566a9ca20203e33a09af142", | ||
"version": "4.5.0" | ||
} | ||
}, | ||
{ | ||
"package": "PathKit", | ||
"repositoryURL": "https://github.com/kylef/PathKit", | ||
"state": { | ||
"branch": null, | ||
"revision": "73f8e9dca9b7a3078cb79128217dc8f2e585a511", | ||
"version": "1.0.0" | ||
} | ||
}, | ||
{ | ||
"package": "Spectre", | ||
"repositoryURL": "https://github.com/kylef/Spectre.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "f79d4ecbf8bc4e1579fbd86c3e1d652fb6876c53", | ||
"version": "0.9.2" | ||
} | ||
}, | ||
{ | ||
"package": "swift-tools-support-core", | ||
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "3b6b97d612b56e25d80d0807f5bc38ea08b7bdf3", | ||
"version": "0.2.3" | ||
} | ||
}, | ||
{ | ||
"package": "xcdiff", | ||
"repositoryURL": "https://github.com/bloomberg/xcdiff", | ||
"state": { | ||
"branch": null, | ||
"revision": "282a77303b8e0c2cb20f9303e25086d9a2fb5ae3", | ||
"version": "0.7.0" | ||
} | ||
}, | ||
{ | ||
"package": "XcodeProj", | ||
"repositoryURL": "https://github.com/tuist/xcodeproj.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "0b18c3e7a10c241323397a80cb445051f4494971", | ||
"version": "8.0.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
PROJECT_ROOT=$(dirname "$0")/.. | ||
XCODEPROJ=$PROJECT_ROOT/Tablier.xcodeproj | ||
|
||
TMPPROJ=$(mktemp -d) | ||
|
||
XCDIFF="swift run -c release xcdiff" | ||
|
||
echo "Changes after project generation:" | ||
if git diff --exit-code --name-only -- $XCODEPROJ ; then | ||
echo "No change found." | ||
exit 0; | ||
fi | ||
|
||
rsync -a $XCODEPROJ/ $TMPPROJ/ | ||
|
||
git checkout -- $XCODEPROJ | ||
|
||
function cleanup { | ||
echo "Cleaning up..." | ||
rsync -a $TMPPROJ/ $XCODEPROJ/ | ||
rm -rf $TMPPROJ | ||
} | ||
|
||
trap cleanup EXIT | ||
|
||
if $XCDIFF -t "Tablier" -g "settings" -p1 $XCODEPROJ -p2 $TMPPROJ ; then | ||
exit 0; | ||
fi | ||
|
||
exit 1; |
Oops, something went wrong.