Skip to content

Commit 369e2d3

Browse files
committed
'WITH_ENCRYPTION' tests compiler flag defined in Package.swift
1 parent 41ef55c commit 369e2d3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ let package = Package(
2828
name: "PusherSwiftWithEncryptionTests",
2929
dependencies: ["PusherSwiftWithEncryption"],
3030
path: "Tests",
31-
exclude: ["Unit/PusherSwift-Only"]
31+
exclude: ["Unit/PusherSwift-Only"],
32+
swiftSettings: [.define("WITH_ENCRYPTION")]
3233
)
3334
],
3435
swiftLanguageVersions: [.v5]

PusherSwift.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,6 @@
13171317
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
13181318
MTL_ENABLE_DEBUG_INFO = YES;
13191319
ONLY_ACTIVE_ARCH = YES;
1320-
OTHER_SWIFT_FLAGS = "-DWITH_ENCRYPTION";
13211320
PRODUCT_BUNDLE_IDENTIFIER = "com.pusher.$(PRODUCT_NAME:rfc1034identifier)";
13221321
PRODUCT_NAME = "$(TARGET_NAME)";
13231322
SDKROOT = "";
@@ -1362,7 +1361,6 @@
13621361
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
13631362
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
13641363
MTL_ENABLE_DEBUG_INFO = NO;
1365-
OTHER_SWIFT_FLAGS = "-DWITH_ENCRYPTION";
13661364
PRODUCT_BUNDLE_IDENTIFIER = "com.pusher.$(PRODUCT_NAME:rfc1034identifier)";
13671365
PRODUCT_NAME = "$(TARGET_NAME)";
13681366
SDKROOT = "";

0 commit comments

Comments
 (0)