Skip to content

Commit e550021

Browse files
committed
Move the Fabric build phase script to a separate file
1 parent 94a4aa8 commit e550021

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

iCookTV.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,9 @@
373373
buildConfigurationList = B5F7BF621BA9C95F00A75099 /* Build configuration list for PBXNativeTarget "iCookTV" */;
374374
buildPhases = (
375375
24D096314DA4D14E4EDFA5EB /* [CP] Check Pods Manifest.lock */,
376+
B52DFA9C1CF8006E005B9D67 /* Run Swiftlint */,
376377
B5BA3B4A1CF6D19800B0A022 /* Run R.swift Script */,
377378
B5F7BF441BA9C95F00A75099 /* Sources */,
378-
B52DFA9C1CF8006E005B9D67 /* Swiftlint */,
379379
B5F7BF451BA9C95F00A75099 /* Frameworks */,
380380
B5F7BF461BA9C95F00A75099 /* Resources */,
381381
B51A95351CCDFFEB00E5ED97 /* Run Fabric Script */,
@@ -547,16 +547,16 @@
547547
);
548548
runOnlyForDeploymentPostprocessing = 0;
549549
shellPath = /bin/sh;
550-
shellScript = "if [ \"$CONFIGURATION\" = \"Release\" ] && [ \"$CI\" != true ]; then\n FABRIC_APIKEY=$(cat ${SRCROOT}/keys/fabric.apikey);\n FABRIC_BUILDSECRET=$(cat ${SRCROOT}/keys/fabric.buildsecret);\n ${PODS_ROOT}/Fabric/run ${FABRIC_APIKEY} ${FABRIC_BUILDSECRET};\nelse\n echo \"Skip Fabric script\"\nfi";
550+
shellScript = "sh ${SRCROOT}/scripts/set-up-fabric.sh";
551551
};
552-
B52DFA9C1CF8006E005B9D67 /* Swiftlint */ = {
552+
B52DFA9C1CF8006E005B9D67 /* Run Swiftlint */ = {
553553
isa = PBXShellScriptBuildPhase;
554554
buildActionMask = 2147483647;
555555
files = (
556556
);
557557
inputPaths = (
558558
);
559-
name = Swiftlint;
559+
name = "Run Swiftlint";
560560
outputPaths = (
561561
);
562562
runOnlyForDeploymentPostprocessing = 0;

scripts/set-up-fabric.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
if [ "$CONFIGURATION" = "Release" ] && [ "$CI" != true ]; then
4+
FABRIC_APIKEY=$(cat ${SRCROOT}/keys/fabric.apikey);
5+
FABRIC_BUILDSECRET=$(cat ${SRCROOT}/keys/fabric.buildsecret);
6+
${PODS_ROOT}/Fabric/run ${FABRIC_APIKEY} ${FABRIC_BUILDSECRET};
7+
else
8+
echo "Skip Fabric setup"
9+
fi

0 commit comments

Comments
 (0)