Skip to content

Commit 4efa5e0

Browse files
committed
chore: auto patch generated mocks
Signed-off-by: William Richter <[email protected]>
1 parent 543be53 commit 4efa5e0

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

fearless.xcodeproj/project.pbxproj

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15414,6 +15414,7 @@ AA1111000011223344556676 /* WalletSelectAccountCommandFactory.swift */ = {isa =
1541415414
21F8A6D4168E40BE9DA1D44D /* [CP] Check Pods Manifest.lock */,
1541515415
842D1E8824D207C700C30A7A /* Modules Mock */,
1541615416
842D1E8924D207D900C30A7A /* Common Mock */,
15417+
FAE4F6D12D0BA4A5006D4A3B /* Patch Cuckoo Mocks */,
1541715418

1541815419
849013BA24A80986008F705E /* Sources */,
1541915420
849013BB24A80986008F705E /* Frameworks */,
@@ -15656,8 +15657,8 @@ true
1565615657
";
1565715658
};
1565815659
842D1E8924D207D900C30A7A /* Common Mock */ = {
15659-
isa = PBXShellScriptBuildPhase;
15660-
alwaysOutOfDate = 1;
15660+
isa = PBXShellScriptBuildPhase;
15661+
alwaysOutOfDate = 1;
1566115662
buildActionMask = 2147483647;
1566215663
files = (
1566315664
);
@@ -15675,6 +15676,33 @@ true
1567515676
shellScript = "#! /bin/sh
1567615677
# Locate Cuckoo run script\nif [ -n \"${PODS_ROOT:-}\" ] && [ -x \"${PODS_ROOT}/Cuckoo/run\" ]; then\n CUCKOO=\"${PODS_ROOT}/Cuckoo/run\"\nelif [ -n \"${SRCROOT:-}\" ] && [ -x \"${SRCROOT}/Pods/Cuckoo/run\" ]; then\n CUCKOO=\"${SRCROOT}/Pods/Cuckoo/run\"\nelif [ -x \"Pods/Cuckoo/run\" ]; then\n CUCKOO=\"Pods/Cuckoo/run\"\nelse\n echo \"warning: Cuckoo not installed; skipping mock generation\"\n exit 0\nfi\n# Define output file. Change \"$PROJECT_DIR/${PROJECT_NAME}Tests\" to your test's root source folder, if it's not the default name.\nOUTPUT_FILE=\"${PROJECT_NAME}Tests/Mocks/CommonMocks.swift\"\necho \"Generated Mocks File = $OUTPUT_FILE\"\n\n# Ensure output directory exists\nmkdir -p \"$(dirname \"$OUTPUT_FILE\")\"\n\n# Ensure output directory exists\nmkdir -p \"$(dirname \"$OUTPUT_FILE\")\"\n\n# Define input directory. Change \"${PROJECT_DIR}/${PROJECT_NAME}\" to your project's root source folder, if it's not the default name.\nINPUT_DIR=\"${PROJECT_NAME}\"\necho \"Mocks Input Directory = $INPUT_DIR\"\n\n# Generate mock files, include as many input files as you'd like to create mocks for.\n\"${CUCKOO}\" generate --testable \"${PROJECT_NAME},SoraKeystore\" \\\n--exclude \"\" \\\n--output \"${OUTPUT_FILE}\" \\\n\"$INPUT_DIR/Common/Helpers/Scheduler.swift\" \\\n\"$INPUT_DIR/Common/LocalAuthentication/BiometryAuth.swift\" \\\n\"$INPUT_DIR/Common/EventCenter/EventProtocols.swift\" \\\n\"$INPUT_DIR/Common/Network/Misc/SubstrateOperationFactory.swift\" \\\n\"$INPUT_DIR/Common/Helpers/AccountRepositoryFactory.swift\" \\\n\"$INPUT_DIR/../Pods/SoraKeystore/SoraKeystore/Classes/Keychain/KeystoreProtocols.swift\" \\\n\"$INPUT_DIR/../Pods/FearlessUtils/FearlessUtils/Classes/Network/JSONRPCEngine.swift\" \\\n\"$INPUT_DIR/Common/Operation/EraCountdownOperationFactory/EraCountdownOperationFactory.swift\" \\\n\"$INPUT_DIR/Common/Network/JSONRPC/ConnectionAutobalancing.swift\" \\\n\"$INPUT_DIR/Common/Network/JSONRPC/ConnectionStateReporting.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/ConnectionPool/ConnectionFactory.swift\" \\\n\"$INPUT_DIR/Common/Network/Misc/DataOperationFactory.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeFilesOperationFactory.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeProviderPool/RuntimeProviderPool.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeProviderPool/RuntimeProviderFactory.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeProviderPool/RuntimeCodingService.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeProviderPool/RuntimeSyncService.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeProviderPool/CommonTypesSyncService.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/RuntimeProviderPool/RuntimeProvider.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/ConnectionPool/ConnectionPool.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/SpecVersionSubscriptionFactory.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/SpecVersionSubscription.swift\" \\\n\"$INPUT_DIR/Common/Services/ChainRegistry/ChainRegistry.swift\" \\\n\"$INPUT_DIR/Common/Services/RemoteSubscription/CrowdloanRemoteSubscriptionService.swift\" \\\n\"$INPUT_DIR/Common/Services/RemoteSubscription/WalletRemoteSubscriptionService.swift\" \\\n\"$INPUT_DIR/Common/Services/RemoteSubscription/StakingRemoteSubscriptionService.swift\" \\\n\"$INPUT_DIR/Common/Services/RemoteSubscription/StakingAccountUpdatingService.swift\" \\\n\"$INPUT_DIR/Modules/Staking/Services/StakingServiceFactory.swift\" \\\n\"$INPUT_DIR/Common/ViewModel/Amount/AmountInputViewModelProtocol.swift\" \\\n\n
1567715678
true
15679+
";
15680+
};
15681+
FAE4F6D12D0BA4A5006D4A3B /* Patch Cuckoo Mocks */ = {
15682+
isa = PBXShellScriptBuildPhase;
15683+
alwaysOutOfDate = 1;
15684+
buildActionMask = 2147483647;
15685+
files = (
15686+
);
15687+
inputFileListPaths = (
15688+
);
15689+
inputPaths = (
15690+
);
15691+
name = "Patch Cuckoo Mocks";
15692+
outputFileListPaths = (
15693+
);
15694+
outputPaths = (
15695+
);
15696+
runOnlyForDeploymentPostprocessing = 0;
15697+
shellPath = /bin/sh;
15698+
shellScript = "#!/bin/sh
15699+
PATCH_SCRIPT=\"${SRCROOT}/scripts/tests/patch-mocks.sh\"
15700+
if [ -x \"$PATCH_SCRIPT\" ]; then
15701+
echo \"Patching Cuckoo mocks via $PATCH_SCRIPT\"
15702+
(cd \"${SRCROOT}\" && \"$PATCH_SCRIPT\" \"${PROJECT_NAME}Tests/Mocks/CommonMocks.swift\" \"${PROJECT_NAME}Tests/Mocks/ModuleMocks.swift\")
15703+
else
15704+
echo \"warning: $PATCH_SCRIPT not found or not executable; skipping mock patch\"
15705+
fi
1567815706
";
1567915707
};
1568015708
/* removed */

0 commit comments

Comments
 (0)