Skip to content

Commit

Permalink
revert nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Nov 20, 2024
1 parent 808c0ec commit 8860cd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ios/wrappers/CioRctWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

@interface RCT_EXTERN_REMAP_MODULE (NativeCustomerIO, CioRctWrapper, NSObject)

RCT_EXTERN_METHOD(initialize : (id)config args : (id _Nullable)args)
RCT_EXTERN_METHOD(identify : (NSString* _Nullable)userId traits : (NSDictionary* _Nullable)traits)
RCT_EXTERN_METHOD(initialize : (id)config args : (id)args)
RCT_EXTERN_METHOD(identify : (NSString*)userId traits : (NSDictionary*)traits)
RCT_EXTERN_METHOD(clearIdentify)
RCT_EXTERN_METHOD(track : (NSString*)name properties : (NSDictionary* _Nullable)properties)
RCT_EXTERN_METHOD(screen : (NSString*)title properties : (NSDictionary* _Nullable)properties)
RCT_EXTERN_METHOD(track : (NSString*)name properties : (NSDictionary*)properties)
RCT_EXTERN_METHOD(screen : (NSString*)title properties : (NSDictionary*)properties)
RCT_EXTERN_METHOD(setProfileAttributes : (NSDictionary*)attributes)
RCT_EXTERN_METHOD(setDeviceAttributes : (NSDictionary*)attributes)
RCT_EXTERN_METHOD(registerDeviceToken : (NSString*)token)
Expand Down
2 changes: 1 addition & 1 deletion ios/wrappers/inapp/CioRctInAppMessaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CioRctInAppMessaging: RCTEventEmitter {
/**
* Dismisses any currently displayed in-app message
*/
@objc
@objc(dismissMessage)
func dismissMessage() {
MessagingInApp.shared.dismissMessage()
}
Expand Down
4 changes: 2 additions & 2 deletions ios/wrappers/push/CioRctPushMessaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CioRctPushMessaging: NSObject {
}

// Get the currently registered device token for the app
@objc
@objc(getRegisteredDeviceToken:rejecter:)
func getRegisteredDeviceToken(resolver resolve: @escaping (RCTPromiseResolveBlock), rejecter reject: @escaping (RCTPromiseRejectBlock)) {
guard let token = CustomerIO.shared.registeredDeviceToken else {
reject(CustomerioConstants.cioTag, CustomerioConstants.showDeviceTokenFailureError, nil)
Expand Down Expand Up @@ -66,7 +66,7 @@ class CioRctPushMessaging: NSObject {
}
}

@objc
@objc(getPushPermissionStatus:rejecter:)
func getPushPermissionStatus(resolver resolve: @escaping (RCTPromiseResolveBlock), rejecter _: @escaping (RCTPromiseRejectBlock)) {
getPushNotificationPermissionStatus { status in
resolve(status.value)
Expand Down

0 comments on commit 8860cd6

Please sign in to comment.