Skip to content

Commit ea3e407

Browse files
committed
HACK to test removal on debug and prototype builds
1 parent e84f472 commit ea3e407

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

Scripts/build-phases/strip-wormholy-from-release.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/bash -eu
22

3-
if [ "${CONFIGURATION}" != "Release" ]; then
4-
echo "info: Skipping Wormholy removal – not a Release build."
5-
exit 0
6-
fi
3+
# if [ "${CONFIGURATION}" != "Release" ]; then
4+
# echo "info: Skipping Wormholy removal – not a Release build."
5+
# exit 0
6+
# fi
7+
8+
# FIXME: Delete from all builds to test the implementation
79

810
BUILT_PRODUCTS_DIR=${BUILT_PRODUCTS_DIR:-"$TARGET_BUILD_DIR"}
911

WooCommerce/Classes/AppDelegate.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import class Yosemite.ScreenshotStoresManager
1919
// In that way, Inject will be available in the entire target.
2020
@_exported import Inject
2121

22-
#if DEBUG
23-
import WormholySwift
24-
#endif
22+
//#if DEBUG
23+
//import WormholySwift
24+
//#endif
2525

2626
// MARK: - Woo's App Delegate!
2727
//
@@ -415,10 +415,10 @@ private extension AppDelegate {
415415
/// Set up Wormholy only in Debug build configuration
416416
///
417417
func setupWormholy() {
418-
#if DEBUG
419-
// We want to activate it programmatically, not using the shake.
420-
Wormholy.shakeEnabled = false
421-
#endif
418+
//#if DEBUG
419+
// // We want to activate it programmatically, not using the shake.
420+
// Wormholy.shakeEnabled = false
421+
//#endif
422422
}
423423

424424
/// Set up `KeyboardStateProvider`

0 commit comments

Comments
 (0)