Skip to content

Commit 0701251

Browse files
committed
Remove Wormholy while waiting for a SwiftPM compatible version
1 parent dcabc22 commit 0701251

File tree

4 files changed

+20
-25
lines changed

4 files changed

+20
-25
lines changed

Podfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ target 'WooCommerce' do
5151
pod 'WPMediaPicker', '~> 1.8'
5252
# pod 'WPMediaPicker', git: 'https://github.com/wordpress-mobile/MediaPicker-iOS.git', commit: ''
5353

54-
# External Libraries
55-
# ==================
56-
#
57-
pod 'Wormholy', '~> 1.6.6', configurations: ['Debug']
58-
5954
# Unit Tests
6055
# ==========
6156
#

Podfile.lock

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
PODS:
22
- WordPressShared (2.1.0)
33
- WordPressUI (1.15.1)
4-
- Wormholy (1.6.6)
54
- WPMediaPicker (1.8.12)
65

76
DEPENDENCIES:
87
- WordPressShared (~> 2.1-beta)
98
- WordPressUI (~> 1.15)
10-
- Wormholy (~> 1.6.6)
119
- WPMediaPicker (~> 1.8)
1210

1311
SPEC REPOS:
1412
trunk:
1513
- WordPressShared
1614
- WordPressUI
17-
- Wormholy
1815
- WPMediaPicker
1916

2017
SPEC CHECKSUMS:
2118
WordPressShared: 0aa459e5257a77184db87805a998f447443c9706
2219
WordPressUI: 700e3ec5a9f77b6920c8104c338c85788036ab3c
23-
Wormholy: 09da0b876f9276031fd47383627cb75e194fc068
2420
WPMediaPicker: e9eaa804e1b0288d7969776608053ae0ea2941f2
2521

26-
PODFILE CHECKSUM: bba16ee5a26e554750998f34114b2c9de00861a0
22+
PODFILE CHECKSUM: b6412eeca60cfd3a8be308f43ef4e8dbd03c2bd8
2723

2824
COCOAPODS: 1.16.2

WooCommerce/Classes/AppDelegate.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ 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 Wormholy
24-
#endif
25-
26-
2722
// MARK: - Woo's App Delegate!
2823
//
2924
class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -82,7 +77,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
8277
setupLogLevel(.verbose)
8378
setupPushNotificationsManagerIfPossible(pushNotesManager, stores: stores)
8479
setupAppRatingManager()
85-
setupWormholy()
8680
setupKeyboardStateProvider()
8781
handleLaunchArguments()
8882
setupUserNotificationCenter()
@@ -413,15 +407,6 @@ private extension AppDelegate {
413407
appRating.setVersion(version)
414408
}
415409

416-
/// Set up Wormholy only in Debug build configuration
417-
///
418-
func setupWormholy() {
419-
#if DEBUG
420-
/// We want to activate it programmatically, not using the shake.
421-
Wormholy.shakeEnabled = false
422-
#endif
423-
}
424-
425410
/// Set up `KeyboardStateProvider`
426411
///
427412
func setupKeyboardStateProvider() {

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewController.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,21 @@ private extension SettingsViewController {
514514
func wormholyWasPressed() {
515515
// Fire a local notification, which fires Wormholy if enabled.
516516
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "wormholy_fire"), object: nil)
517+
518+
// See https://github.com/woocommerce/woocommerce-ios/pull/15663
519+
let alert = UIAlertController(
520+
title: nil,
521+
message: "Wormholy is temporarily disabled in the app.",
522+
preferredStyle: .alert
523+
)
524+
alert.addAction(
525+
UIAlertAction(
526+
title: "Dismiss",
527+
style: .default,
528+
handler: nil
529+
)
530+
)
531+
present(alert, animated: true, completion: nil)
517532
}
518533

519534
func whatsNewWasPressed() {
@@ -761,6 +776,10 @@ extension SettingsViewController {
761776

762777
// Other
763778
case deviceSettings
779+
/// Notice that Wormholy has been temporarily removed from the app.
780+
/// Ideally, we'll introduce it again, hence why the code for it is still present.
781+
///
782+
/// See also https://github.com/woocommerce/woocommerce-ios/pull/15663.
764783
case wormholy
765784

766785
// Account settings

0 commit comments

Comments
 (0)