Skip to content

Commit 3e2b347

Browse files
committed
Attempt to fix compilation issue adding the flag NOTIFICATION_EXTENSION
1 parent c9557fc commit 3e2b347

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

WooCommerce/Classes/Model/MarkOrderAsReadUseCase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Networking
66
import NetworkingCore
77
#endif
88

9-
#if canImport(Yosemite)
9+
#if canImport(Yosemite) && !NOTIFICATION_EXTENSION
1010
import Yosemite
1111
#endif
1212

@@ -19,7 +19,7 @@ struct MarkOrderAsReadUseCase {
1919
case noNeedToMarkAsRead
2020
}
2121

22-
#if canImport(Yosemite)
22+
#if canImport(Yosemite) && !NOTIFICATION_EXTENSION
2323
/// Async method that marks the order note as read if it is the notification for the last order.
2424
/// We do it in a way that first we syncronize notification to get the remote `Note`
2525
/// and then we compare local `orderID` with the one from remote `Note`.

WooCommerce/WooCommerce.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17852,6 +17852,7 @@
1785217852
PRODUCT_NAME = "$(TARGET_NAME)";
1785317853
PROVISIONING_PROFILE_SPECIFIER = "WooCommerce Notification Content Exten Development";
1785417854
SKIP_INSTALL = YES;
17855+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) NOTIFICATION_EXTENSION";
1785517856
SWIFT_EMIT_LOC_STRINGS = YES;
1785617857
SWIFT_VERSION = 5.0;
1785717858
TARGETED_DEVICE_FAMILY = "1,2";
@@ -17879,6 +17880,7 @@
1787917880
PRODUCT_NAME = "$(TARGET_NAME)";
1788017881
PROVISIONING_PROFILE_SPECIFIER = "match AppStore com.automattic.woocommerce.notificationcontentextension";
1788117882
SKIP_INSTALL = YES;
17883+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) NOTIFICATION_EXTENSION";
1788217884
SWIFT_EMIT_LOC_STRINGS = YES;
1788317885
SWIFT_VERSION = 5.0;
1788417886
TARGETED_DEVICE_FAMILY = "1,2";
@@ -17906,6 +17908,7 @@
1790617908
PRODUCT_NAME = "$(TARGET_NAME)";
1790717909
PROVISIONING_PROFILE_SPECIFIER = "match InHouse com.automattic.alpha.woocommerce.notificationcontentextension";
1790817910
SKIP_INSTALL = YES;
17911+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) NOTIFICATION_EXTENSION";
1790917912
SWIFT_EMIT_LOC_STRINGS = YES;
1791017913
SWIFT_VERSION = 5.0;
1791117914
TARGETED_DEVICE_FAMILY = "1,2";

0 commit comments

Comments
 (0)