Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Scripts/build-phases/strip-wormholy-from-release.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash -eu

if [ "${CONFIGURATION}" != "Release" ]; then
echo "info: Skipping Wormholy removal – not a Release build."
exit 0
fi
# if [ "${CONFIGURATION}" != "Release" ]; then
# echo "info: Skipping Wormholy removal – not a Release build."
# exit 0
# fi

# FIXME: Delete from all builds to test the implementation
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously we should remove the comments before merging.


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

Expand Down
14 changes: 7 additions & 7 deletions WooCommerce/Classes/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import class Yosemite.ScreenshotStoresManager
// In that way, Inject will be available in the entire target.
@_exported import Inject

#if DEBUG
import WormholySwift
#endif
//#if DEBUG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was gonna say something about trying condition: .when(configuration: .debug) but just seen this discussion 😞

SwiftPM allows conditional platform dependencies, but not conditional configurations.

//import WormholySwift
//#endif

// MARK: - Woo's App Delegate!
//
Expand Down Expand Up @@ -415,10 +415,10 @@ private extension AppDelegate {
/// Set up Wormholy only in Debug build configuration
///
func setupWormholy() {
#if DEBUG
// We want to activate it programmatically, not using the shake.
Wormholy.shakeEnabled = false
#endif
//#if DEBUG
// // We want to activate it programmatically, not using the shake.
// Wormholy.shakeEnabled = false
//#endif
}

/// Set up `KeyboardStateProvider`
Expand Down