Skip to content

Commit

Permalink
[Regression Fix] Braze Segment Integration Crash (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
msadoon committed Feb 2, 2023
1 parent 01b4f0e commit 1e1c01d
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 60 deletions.
15 changes: 2 additions & 13 deletions Kickstarter-iOS/AppDelegate.swift
@@ -1,4 +1,4 @@
import AppboyUI
import AppboyKit
import AppCenter
import AppCenterDistribute
import FBSDKCoreKit
Expand Down Expand Up @@ -265,7 +265,7 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate {
guard let strongSelf = self else { return }

let factoryInstance = SEGAppboyIntegrationFactory.instance()
factoryInstance?.saveLaunchOptions(launchOptions)

factoryInstance?.appboyOptions = [
ABKInAppMessageControllerDelegateKey: strongSelf,
ABKMinimumTriggerTimeIntervalKey: 5
Expand Down Expand Up @@ -301,17 +301,6 @@ internal final class AppDelegate: UIResponder, UIApplicationDelegate {
self?.viewModel.inputs.perimeterXCaptchaTriggeredWithUserInfo(note.userInfo)
}

NotificationCenter.default
.addObserver(
forName: Notification.Name.ksr_appboyCreated,
object: nil,
queue: nil
) { [weak self] _ in
guard let strongSelf = self else { return }

Appboy.sharedInstance()?.inAppMessageController.delegate = strongSelf
}

self.window?.tintColor = .ksr_create_700

self.viewModel.inputs.applicationDidFinishLaunching(
Expand Down

0 comments on commit 1e1c01d

Please sign in to comment.