Skip to content

Commit

Permalink
Merge hotfix/skip-swizzle-on-view-not-found into master
Browse files Browse the repository at this point in the history
  • Loading branch information
TakayukiCho committed May 29, 2024
2 parents e14bacf + 4556d5e commit 80165d0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| モジュール名 | Description | 最新のバージョン |
| :-- | :-- | :-- |
| KarteCore | イベントトラッキング機能を提供します。 | 2.27.0 |
| KarteInAppMessaging | アプリ内メッセージ機能を提供します。 | 2.17.0 |
| KarteInAppMessaging | アプリ内メッセージ機能を提供します。 | 2.17.1 |
| KarteRemoteNotification | プッシュ通知の受信および効果測定機能を提供します。 | 2.11.0 |
| KarteVariables | 設定値配信機能を提供します。 | 2.10.0 |
| KarteVisualTracking | ビジュアルトラッキング機能を提供します。 | 2.12.0 |
Expand All @@ -12,6 +12,11 @@
| KarteUtilities | KarteCore モジュール等が利用するUtility機能を提供します。通常直接参照する必要はありません。 | 3.12.0 |
| KarteNotificationServiceExtension | リッチプッシュ通知機能を提供します。 | 1.2.0 |

# Releases - xxxx.xx.xx

### InAppMessaging 2.27.0
** 💊FIXED**
- 一部の別ライブラリと併用した場合にcrashする不具合を修正しました。

# Releases - 2024.05.09
## Version 2.14.0
Expand Down
4 changes: 2 additions & 2 deletions Karte.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3896,7 +3896,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.17.0;
MARKETING_VERSION = 2.17.1;
PRODUCT_BUNDLE_IDENTIFIER = io.karte.KarteInAppMessaging;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -3929,7 +3929,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.17.0;
MARKETING_VERSION = 2.17.1;
PRODUCT_BUNDLE_IDENTIFIER = io.karte.KarteInAppMessaging;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 1 addition & 1 deletion KarteInAppMessaging.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'KarteInAppMessaging'
s.version = '2.17.0'
s.version = '2.17.1'
s.summary = 'KARTE In-app messaging SDK'
s.homepage = 'https://karte.io'
s.author = { 'PLAID' => '[email protected]' }
Expand Down
5 changes: 4 additions & 1 deletion KarteInAppMessaging/Swizzlers/UIViewControllerProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ extension UIViewControllerProxy {
)
originalFunction(receiver, viewDidAppearSelector, animated)

let window = receiver.view.window
guard let window = receiver.view?.window else {
Logger.warn(tag: .inAppMessaging, message: "The view is nil and the window not found")
return
}
let process = InAppMessaging.shared.retrieveProcess(window: window)
process?.viewDidAppearFromViewController(receiver)
}
Expand Down

0 comments on commit 80165d0

Please sign in to comment.