Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ios/MindboxJsDeliveryBridge.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Foundation
import UserNotifications

@objc(MindboxJsDeliveryBridge)
public final class MindboxJsDeliveryBridge: NSObject {

@objc public static func emit(_ response: UNNotificationResponse) {
MindboxJsDelivery.emitEvent(response)
}
}
1 change: 0 additions & 1 deletion ios/MindboxSdk.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Mindbox
import MindboxLogger
import CoreFoundation

enum CustomError: Error {
case tokenAPNSisNull
Expand Down
4 changes: 4 additions & 0 deletions ios/MindboxSdk.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
61249CFA2719673B00FC4033 /* MindboxJsDelivery.m in Sources */ = {isa = PBXBuildFile; fileRef = 61249CF92719673B00FC4033 /* MindboxJsDelivery.m */; };
D0F7B0012B1C4A1A00A1B2C3 /* MindboxJsDeliveryBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = D0F7B0002B1C4A1A00A1B2C3 /* MindboxJsDeliveryBridge.swift */; };
F4FF95D7245B92E800C19C63 /* MindboxSdk.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* MindboxSdk.swift */; };
/* End PBXBuildFile section */

Expand All @@ -28,6 +29,7 @@
61249CF82719673B00FC4033 /* MindboxJsDelivery.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MindboxJsDelivery.h; sourceTree = "<group>"; };
61249CF92719673B00FC4033 /* MindboxJsDelivery.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MindboxJsDelivery.m; sourceTree = "<group>"; };
B3E7B5891CC2AC0600A0062D /* MindboxSdk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MindboxSdk.m; sourceTree = "<group>"; };
D0F7B0002B1C4A1A00A1B2C3 /* MindboxJsDeliveryBridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MindboxJsDeliveryBridge.swift; sourceTree = "<group>"; };
F4FF95D5245B92E700C19C63 /* MindboxSdk-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MindboxSdk-Bridging-Header.h"; sourceTree = "<group>"; };
F4FF95D6245B92E800C19C63 /* MindboxSdk.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MindboxSdk.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -56,6 +58,7 @@
children = (
61249CF82719673B00FC4033 /* MindboxJsDelivery.h */,
61249CF92719673B00FC4033 /* MindboxJsDelivery.m */,
D0F7B0002B1C4A1A00A1B2C3 /* MindboxJsDeliveryBridge.swift */,
F4FF95D6245B92E800C19C63 /* MindboxSdk.swift */,
B3E7B5891CC2AC0600A0062D /* MindboxSdk.m */,
F4FF95D5245B92E700C19C63 /* MindboxSdk-Bridging-Header.h */,
Expand Down Expand Up @@ -121,6 +124,7 @@
buildActionMask = 2147483647;
files = (
61249CFA2719673B00FC4033 /* MindboxJsDelivery.m in Sources */,
D0F7B0012B1C4A1A00A1B2C3 /* MindboxJsDeliveryBridge.swift in Sources */,
F4FF95D7245B92E800C19C63 /* MindboxSdk.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down