@@ -106,7 +106,7 @@ - (void)getUserId:(RCTPromiseResolveBlock)resolve
106
106
[_swiftAPI getUserId: resolve rejecter: reject];
107
107
}
108
108
109
- - (void )setInAppShowResponse : (NSNumber *)inAppShowResponse {
109
+ - (void )setInAppShowResponse : (NSNumber *_Nonnull )inAppShowResponse {
110
110
[_swiftAPI setInAppShowResponse: inAppShowResponse];
111
111
}
112
112
@@ -137,8 +137,8 @@ - (void)showMessage:(NSString *)messageId
137
137
}
138
138
139
139
- (void )removeMessage : (NSString *)messageId
140
- location : (NSNumber *)location
141
- source : (NSNumber *)source {
140
+ location : (NSNumber *_Nonnull )location
141
+ source : (NSNumber *_Nonnull )source {
142
142
[_swiftAPI removeMessage: messageId location: location source: source];
143
143
}
144
144
@@ -154,8 +154,8 @@ - (void)trackEvent:(NSString *)name dataFields:(NSDictionary *)dataFields {
154
154
[_swiftAPI trackEvent: name dataFields: dataFields];
155
155
}
156
156
157
- - (void )trackPushOpenWithCampaignId : (NSNumber *)campaignId
158
- templateId : (NSNumber *)templateId
157
+ - (void )trackPushOpenWithCampaignId : (NSNumber *_Nonnull )campaignId
158
+ templateId : (NSNumber *_Nonnull )templateId
159
159
messageId : (NSString *)messageId
160
160
appAlreadyRunning : (BOOL )appAlreadyRunning
161
161
dataFields : (NSDictionary *)dataFields {
@@ -166,19 +166,20 @@ - (void)trackPushOpenWithCampaignId:(NSNumber *)campaignId
166
166
dataFields: dataFields];
167
167
}
168
168
169
- - (void )trackInAppOpen : (NSString *)messageId location : (NSNumber *)location {
169
+ - (void )trackInAppOpen : (NSString *)messageId
170
+ location : (NSNumber *_Nonnull)location {
170
171
[_swiftAPI trackInAppOpen: messageId location: location];
171
172
}
172
173
173
174
- (void )trackInAppClick : (NSString *)messageId
174
- location : (NSNumber *)location
175
+ location : (NSNumber *_Nonnull )location
175
176
clickedUrl : (NSString *)clickedUrl {
176
177
[_swiftAPI trackInAppClick: messageId location: location clickedUrl: clickedUrl];
177
178
}
178
179
179
180
- (void )trackInAppClose : (NSString *)messageId
180
- location : (NSNumber *)location
181
- source : (NSNumber *)source
181
+ location : (NSNumber *_Nonnull )location
182
+ source : (NSNumber *_Nonnull )source
182
183
clickedUrl : (NSString *)clickedUrl {
183
184
[_swiftAPI trackInAppClose: messageId
184
185
location: location
@@ -187,16 +188,16 @@ - (void)trackInAppClose:(NSString *)messageId
187
188
}
188
189
189
190
- (void )inAppConsume : (NSString *)messageId
190
- location : (NSNumber *)location
191
- source : (NSNumber *)source {
191
+ location : (NSNumber *_Nonnull )location
192
+ source : (NSNumber *_Nonnull )source {
192
193
[_swiftAPI inAppConsume: messageId location: location source: source];
193
194
}
194
195
195
196
- (void )updateCart : (NSArray *)items {
196
197
[_swiftAPI updateCart: items];
197
198
}
198
199
199
- - (void )trackPurchase : (NSNumber *)total
200
+ - (void )trackPurchase : (NSNumber *_Nonnull )total
200
201
items : (NSArray *)items
201
202
dataFields : (NSDictionary *)dataFields {
202
203
[_swiftAPI trackPurchase: total items: items dataFields: dataFields];
@@ -247,8 +248,8 @@ - (void)updateSubscriptions:(NSArray *)emailListIds
247
248
unsubscribedChannelIds : (NSArray *)unsubscribedChannelIds
248
249
unsubscribedMessageTypeIds : (NSArray *)unsubscribedMessageTypeIds
249
250
subscribedMessageTypeIds : (NSArray *)subscribedMessageTypeIds
250
- campaignId : (NSNumber *)campaignId
251
- templateId : (NSNumber *)templateId {
251
+ campaignId : (NSNumber *_Nonnull )campaignId
252
+ templateId : (NSNumber *_Nonnull )templateId {
252
253
[_swiftAPI updateSubscriptions: emailListIds
253
254
unsubscribedChannelIds: unsubscribedChannelIds
254
255
unsubscribedMessageTypeIds: unsubscribedMessageTypeIds
@@ -335,7 +336,8 @@ - (void)passAlongAuthToken:(NSString *)authToken {
335
336
[_swiftAPI getUserId: resolve rejecter: reject];
336
337
}
337
338
338
- RCT_EXPORT_METHOD (setInAppShowResponse : (NSNumber *)inAppShowResponse) {
339
+ RCT_EXPORT_METHOD (setInAppShowResponse : (NSNumber *_Nonnull)
340
+ inAppShowResponse) {
339
341
[_swiftAPI setInAppShowResponse: inAppShowResponse];
340
342
}
341
343
@@ -363,8 +365,8 @@ - (void)passAlongAuthToken:(NSString *)authToken {
363
365
rejecter: reject];
364
366
}
365
367
366
- RCT_EXPORT_METHOD (removeMessage : (NSString *)messageId location : (NSNumber *)
367
- location source : (NSNumber *)source) {
368
+ RCT_EXPORT_METHOD (removeMessage : (NSString *)messageId location : (
369
+ NSNumber *_Nonnull) location source : (NSNumber *_Nonnull )source) {
368
370
[_swiftAPI removeMessage: messageId location: location source: source];
369
371
}
370
372
@@ -382,46 +384,46 @@ - (void)passAlongAuthToken:(NSString *)authToken {
382
384
}
383
385
384
386
RCT_EXPORT_METHOD (
385
- trackPushOpenWithCampaignId : (NSNumber *)
386
- campaignId templateId : ( NSNumber *)templateId messageId : (NSString *)
387
- messageId appAlreadyRunning : (BOOL )
388
- appAlreadyRunning dataFields : (NSDictionary *)dataFields) {
387
+ trackPushOpenWithCampaignId : (NSNumber *_Nonnull)campaignId templateId : (
388
+ NSNumber *_Nonnull )templateId messageId : (NSString *)
389
+ messageId appAlreadyRunning : (BOOL )
390
+ appAlreadyRunning dataFields : (NSDictionary *)dataFields) {
389
391
[_swiftAPI trackPushOpenWithCampaignId: campaignId
390
392
templateId: templateId
391
393
messageId: messageId
392
394
appAlreadyRunning: appAlreadyRunning
393
395
dataFields: dataFields];
394
396
}
395
397
396
- RCT_EXPORT_METHOD (trackInAppOpen : (NSString *)messageId location : ( NSNumber *)
397
- location) {
398
+ RCT_EXPORT_METHOD (trackInAppOpen : (NSString *)
399
+ messageId location : ( NSNumber *_Nonnull) location) {
398
400
[_swiftAPI trackInAppOpen: messageId location: location];
399
401
}
400
402
401
403
RCT_EXPORT_METHOD (trackInAppClick : (NSString *)messageId location : (
402
- NSNumber *)location clickedUrl : (NSString *)clickedUrl) {
404
+ NSNumber *_Nonnull )location clickedUrl : (NSString *)clickedUrl) {
403
405
[_swiftAPI trackInAppClick: messageId location: location clickedUrl: clickedUrl];
404
406
}
405
407
406
408
RCT_EXPORT_METHOD (trackInAppClose : (NSString *)messageId location : (
407
- NSNumber *)location source : (NSNumber *)source clickedUrl : ( NSString * )
408
- clickedUrl) {
409
+ NSNumber *_Nonnull )location source : (NSNumber *_Nonnull )
410
+ source clickedUrl : ( NSString *) clickedUrl) {
409
411
[_swiftAPI trackInAppClose: messageId
410
412
location: location
411
413
source: source
412
414
clickedUrl: clickedUrl];
413
415
}
414
416
415
- RCT_EXPORT_METHOD (inAppConsume : (NSString *)messageId location : (NSNumber *)
416
- location source : (NSNumber *)source) {
417
+ RCT_EXPORT_METHOD (inAppConsume : (NSString *)messageId location : (
418
+ NSNumber *_Nonnull) location source : (NSNumber *_Nonnull )source) {
417
419
[_swiftAPI inAppConsume: messageId location: location source: source];
418
420
}
419
421
420
422
RCT_EXPORT_METHOD (updateCart : (NSArray *)items) {
421
423
[_swiftAPI updateCart: items];
422
424
}
423
425
424
- RCT_EXPORT_METHOD (trackPurchase : (NSNumber *)total items : (NSArray *)
426
+ RCT_EXPORT_METHOD (trackPurchase : (NSNumber *_Nonnull )total items : (NSArray *)
425
427
items dataFields : (NSDictionary *)dataFields) {
426
428
[_swiftAPI trackPurchase: total items: items dataFields: dataFields];
427
429
}
@@ -471,8 +473,8 @@ - (void)passAlongAuthToken:(NSString *)authToken {
471
473
NSArray *)
472
474
unsubscribedChannelIds unsubscribedMessageTypeIds : (NSArray *)
473
475
unsubscribedMessageTypeIds subscribedMessageTypeIds : (NSArray *)
474
- subscribedMessageTypeIds campaignId : (NSNumber *)
475
- campaignId templateId : (NSNumber *)templateId) {
476
+ subscribedMessageTypeIds campaignId : (NSNumber *_Nonnull )
477
+ campaignId templateId : (NSNumber *_Nonnull )templateId) {
476
478
[_swiftAPI updateSubscriptions: emailListIds
477
479
unsubscribedChannelIds: unsubscribedChannelIds
478
480
unsubscribedMessageTypeIds: unsubscribedMessageTypeIds
0 commit comments