Skip to content

Commit

Permalink
fix: Fix TARGET_OS_OSX and TARGET_OS_WATCH undefined issues using…
Browse files Browse the repository at this point in the history
… custom macros
  • Loading branch information
rakuyoMo committed May 10, 2024
1 parent be1de41 commit 0e2cde5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ let package = Package(

.target(
name: "RAKFixCrashOnInputKeyboard",
path: "Sources/FixCrashOnInputKeyboard"
path: "Sources/FixCrashOnInputKeyboard",
cSettings: [
.define("RAK_NOT_SUPPORT", .when(platforms: [.watchOS, .macOS])),
]
),

.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// Copyright © 2024 RakuyoKit. All rights reserved.
//

#if !TARGET_OS_OSX && !TARGET_OS_WATCH
#ifdef RAK_NOT_SUPPORT
#else

#import "UIWindow+FixCrashOnInputKeyboard.h"
#import <objc/runtime.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// Copyright © 2024 RakuyoKit. All rights reserved.
//

#if !TARGET_OS_OSX && !TARGET_OS_WATCH
#ifdef RAK_NOT_SUPPORT
#else

#import <UIKit/UIKit.h>

Expand Down

0 comments on commit 0e2cde5

Please sign in to comment.