Skip to content

Commit 80165d0

Browse files
author
TakayukiCho
committed
Merge hotfix/skip-swizzle-on-view-not-found into master
2 parents e14bacf + 4556d5e commit 80165d0

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
| モジュール名 | Description | 最新のバージョン |
44
| :-- | :-- | :-- |
55
| KarteCore | イベントトラッキング機能を提供します。 | 2.27.0 |
6-
| KarteInAppMessaging | アプリ内メッセージ機能を提供します。 | 2.17.0 |
6+
| KarteInAppMessaging | アプリ内メッセージ機能を提供します。 | 2.17.1 |
77
| KarteRemoteNotification | プッシュ通知の受信および効果測定機能を提供します。 | 2.11.0 |
88
| KarteVariables | 設定値配信機能を提供します。 | 2.10.0 |
99
| KarteVisualTracking | ビジュアルトラッキング機能を提供します。 | 2.12.0 |
@@ -12,6 +12,11 @@
1212
| KarteUtilities | KarteCore モジュール等が利用するUtility機能を提供します。通常直接参照する必要はありません。 | 3.12.0 |
1313
| KarteNotificationServiceExtension | リッチプッシュ通知機能を提供します。 | 1.2.0 |
1414

15+
# Releases - xxxx.xx.xx
16+
17+
### InAppMessaging 2.27.0
18+
** 💊FIXED**
19+
- 一部の別ライブラリと併用した場合にcrashする不具合を修正しました。
1520

1621
# Releases - 2024.05.09
1722
## Version 2.14.0

Karte.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -3896,7 +3896,7 @@
38963896
"@executable_path/Frameworks",
38973897
"@loader_path/Frameworks",
38983898
);
3899-
MARKETING_VERSION = 2.17.0;
3899+
MARKETING_VERSION = 2.17.1;
39003900
PRODUCT_BUNDLE_IDENTIFIER = io.karte.KarteInAppMessaging;
39013901
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
39023902
SKIP_INSTALL = YES;
@@ -3929,7 +3929,7 @@
39293929
"@executable_path/Frameworks",
39303930
"@loader_path/Frameworks",
39313931
);
3932-
MARKETING_VERSION = 2.17.0;
3932+
MARKETING_VERSION = 2.17.1;
39333933
PRODUCT_BUNDLE_IDENTIFIER = io.karte.KarteInAppMessaging;
39343934
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
39353935
SKIP_INSTALL = YES;

KarteInAppMessaging.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'KarteInAppMessaging'
11-
s.version = '2.17.0'
11+
s.version = '2.17.1'
1212
s.summary = 'KARTE In-app messaging SDK'
1313
s.homepage = 'https://karte.io'
1414
s.author = { 'PLAID' => '[email protected]' }

KarteInAppMessaging/Swizzlers/UIViewControllerProxy.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ extension UIViewControllerProxy {
140140
)
141141
originalFunction(receiver, viewDidAppearSelector, animated)
142142

143-
let window = receiver.view.window
143+
guard let window = receiver.view?.window else {
144+
Logger.warn(tag: .inAppMessaging, message: "The view is nil and the window not found")
145+
return
146+
}
144147
let process = InAppMessaging.shared.retrieveProcess(window: window)
145148
process?.viewDidAppearFromViewController(receiver)
146149
}

0 commit comments

Comments
 (0)