@@ -172,7 +172,7 @@ public void getUserId(Promise promise) {
172172 promise .resolve (RNIterableInternal .getUserId ());
173173 }
174174
175- public void trackEvent (String name , ReadableMap dataFields ) {
175+ public void trackEvent (String name , @ Nullable ReadableMap dataFields ) {
176176 IterableLogger .v (TAG , "trackEvent" );
177177 IterableApi .getInstance ().track (name , optSerializedDataFields (dataFields ));
178178 }
@@ -182,16 +182,16 @@ public void updateCart(ReadableArray items) {
182182 IterableApi .getInstance ().updateCart (Serialization .commerceItemsFromReadableArray (items ));
183183 }
184184
185- public void trackPurchase (double total , ReadableArray items , ReadableMap dataFields ) {
185+ public void trackPurchase (double total , ReadableArray items , @ Nullable ReadableMap dataFields ) {
186186 IterableLogger .v (TAG , "trackPurchase" );
187187 IterableApi .getInstance ().trackPurchase (total , Serialization .commerceItemsFromReadableArray (items ), optSerializedDataFields (dataFields ));
188188 }
189189
190190 public void trackPushOpenWithCampaignId (double campaignId , @ Nullable Double templateId , String messageId , boolean appAlreadyRunning , @ Nullable ReadableMap dataFields ) {
191- RNIterableInternal .trackPushOpenWithCampaignId ((int ) campaignId , templateId != null ? ( int ) templateId : null , messageId , optSerializedDataFields (dataFields ));
191+ RNIterableInternal .trackPushOpenWithCampaignId ((int ) campaignId , templateId != null ? templateId . intValue () : null , messageId , optSerializedDataFields (dataFields ));
192192 }
193193
194- public void updateSubscriptions (ReadableArray emailListIds , ReadableArray unsubscribedChannelIds , ReadableArray unsubscribedMessageTypeIds , ReadableArray subscribedMessageTypeIds , double campaignId , double templateId ) {
194+ public void updateSubscriptions (@ Nullable ReadableArray emailListIds , @ Nullable ReadableArray unsubscribedChannelIds , @ Nullable ReadableArray unsubscribedMessageTypeIds , @ Nullable ReadableArray subscribedMessageTypeIds , double campaignId , double templateId ) {
195195 IterableLogger .v (TAG , "updateSubscriptions" );
196196 Integer finalCampaignId = null , finalTemplateId = null ;
197197 if (campaignId > 0 ) {
@@ -270,7 +270,7 @@ public void getAttributionInfo(Promise promise) {
270270 }
271271 }
272272
273- public void setAttributionInfo (ReadableMap attributionInfoReadableMap ) {
273+ public void setAttributionInfo (@ Nullable ReadableMap attributionInfoReadableMap ) {
274274 IterableLogger .printInfo ();
275275 try {
276276 JSONObject attributionInfoJson = Serialization .convertMapToJson (attributionInfoReadableMap );
@@ -598,7 +598,7 @@ public void removeListeners(double count) {
598598 // Keep: Required for RN built in Event Emitter Calls.
599599 }
600600
601- public void passAlongAuthToken (String authToken ) {
601+ public void passAlongAuthToken (@ Nullable String authToken ) {
602602 passedAuthToken = authToken ;
603603
604604 if (authHandlerCallbackLatch != null ) {
0 commit comments