@adadapted/react-native-sdk 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/adadapted-react-native-sdk.podspec +1 -1
  2. package/lib/commonjs/api/adadaptedApiRequests.js +1 -2
  3. package/lib/commonjs/api/adadaptedApiRequests.js.map +1 -1
  4. package/lib/commonjs/api/adadaptedApiTypes.js +57 -0
  5. package/lib/commonjs/api/adadaptedApiTypes.js.map +1 -1
  6. package/lib/commonjs/componentTypes/Device.js +6 -0
  7. package/lib/commonjs/componentTypes/Device.js.map +1 -1
  8. package/lib/commonjs/componentTypes/Environment.js +27 -0
  9. package/lib/commonjs/componentTypes/Environment.js.map +1 -1
  10. package/lib/commonjs/components/AdZone.js +1 -2
  11. package/lib/commonjs/components/AdZone.js.map +1 -1
  12. package/lib/commonjs/components/ReportAdButton.js +1 -2
  13. package/lib/commonjs/components/ReportAdButton.js.map +1 -1
  14. package/lib/commonjs/index.js +1 -2
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/util.js +0 -1
  17. package/lib/commonjs/util.js.map +1 -1
  18. package/lib/module/api/adadaptedApiTypes.js +57 -0
  19. package/lib/module/api/adadaptedApiTypes.js.map +1 -1
  20. package/lib/module/componentTypes/Device.js +6 -0
  21. package/lib/module/componentTypes/Device.js.map +1 -1
  22. package/lib/module/componentTypes/Environment.js +27 -0
  23. package/lib/module/componentTypes/Environment.js.map +1 -1
  24. package/lib/module/components/AdZone.js.map +1 -1
  25. package/lib/module/index.js.map +1 -1
  26. package/lib/module/util.js +0 -1
  27. package/lib/module/util.js.map +1 -1
  28. package/lib/typescript/index.d.ts +2 -0
  29. package/lib/typescript/index.d.ts.map +1 -0
  30. package/lib/typescript/jest.setup.d.ts +6 -0
  31. package/lib/typescript/jest.setup.d.ts.map +1 -0
  32. package/lib/typescript/src/componentTypes/AdZone.d.ts +1 -1
  33. package/lib/typescript/src/componentTypes/AdZone.d.ts.map +1 -1
  34. package/lib/typescript/src/components/AdZone.d.ts.map +1 -1
  35. package/lib/typescript/src/types.d.ts.map +1 -1
  36. package/package.json +43 -34
  37. package/src/api/adadaptedApiRequests.mock.ts +2 -2
  38. package/src/api/adadaptedApiRequests.ts +10 -10
  39. package/src/componentTypes/AdZone.ts +1 -1
  40. package/src/components/AdZone.tsx +10 -10
  41. package/src/index.tsx +46 -46
  42. package/src/types.tsx +6 -5
  43. package/src/util.ts +6 -7
  44. package/android/.project +0 -34
  45. package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
  46. package/android/bin/.project +0 -34
  47. package/android/bin/.settings/org.eclipse.buildship.core.prefs +0 -13
  48. package/android/bin/build.gradle +0 -132
  49. package/android/bin/gradle.properties +0 -4
  50. package/android/bin/src/main/AndroidManifest.xml +0 -4
  51. package/android/bin/src/main/java/com/adadaptedreactnativesdk/AdadaptedReactNativeSdkModule.kt +0 -115
  52. package/android/bin/src/main/java/com/adadaptedreactnativesdk/AdadaptedReactNativeSdkPackage.kt +0 -20
  53. package/lib/module/package.json +0 -1
@@ -27,7 +27,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
27
27
  * Tracks the current ad index being shown.
28
28
  */
29
29
  const [adIndexShown, setAdIndexShown] = useState(
30
- Math.floor(Math.random() * props.adZoneData.ads.length)
30
+ Math.floor(Math.random() * props.adZoneData.ads.length),
31
31
  );
32
32
  /**
33
33
  * Tracks the coordinates when the user started touching the Ad View.
@@ -96,7 +96,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
96
96
  * @returns the styles needed for the component.
97
97
  */
98
98
  function generateStyles(): AdZoneTypes.StyleDef {
99
- return StyleSheet.create({
99
+ return StyleSheet.create<AdZoneTypes.StyleDef>({
100
100
  mainView: {
101
101
  width: "100%",
102
102
  height: "100%",
@@ -146,7 +146,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
146
146
  ) {
147
147
  safeInvoke(
148
148
  props.onAddToListTriggered,
149
- currentlyDisplayedAd.payload.detailed_list_items
149
+ currentlyDisplayedAd.payload.detailed_list_items,
150
150
  );
151
151
  }
152
152
 
@@ -165,7 +165,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
165
165
  if (item.product_title === itemName) {
166
166
  triggerReportAdEvent(
167
167
  ad,
168
- ReportedEventType.INTERACTION
168
+ ReportedEventType.INTERACTION,
169
169
  );
170
170
  }
171
171
  });
@@ -200,7 +200,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
200
200
  ],
201
201
  },
202
202
  props.deviceOs,
203
- props.apiEnv
203
+ props.apiEnv,
204
204
  )
205
205
  .then(() => {
206
206
  // Do nothing with the response for now...
@@ -244,7 +244,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
244
244
  // Send invisible ad impression if ad was not visible before end of timer cycle.
245
245
  triggerReportAdEvent(
246
246
  lastAd,
247
- ReportedEventType.INVISIBLE_IMPRESSION
247
+ ReportedEventType.INVISIBLE_IMPRESSION,
248
248
  );
249
249
  }
250
250
 
@@ -286,7 +286,7 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
286
286
  onTouchStart={(e) => {
287
287
  triggerReportAdEvent(
288
288
  props.adZoneData.ads[adIndexShown],
289
- ReportedEventType.INTERACTION
289
+ ReportedEventType.INTERACTION,
290
290
  );
291
291
  setTouchStartCoords({
292
292
  x: e.nativeEvent.pageX,
@@ -303,14 +303,14 @@ export const AdZone = (props: AdZoneTypes.Props): React.ReactElement => {
303
303
 
304
304
  if (
305
305
  Math.abs(
306
- touchStartCoords.x - touchEndCoords.x
306
+ touchStartCoords.x - touchEndCoords.x,
307
307
  ) < props.xyDragDistanceAllowed &&
308
308
  Math.abs(
309
- touchStartCoords.y - touchEndCoords.y
309
+ touchStartCoords.y - touchEndCoords.y,
310
310
  ) < props.xyDragDistanceAllowed
311
311
  ) {
312
312
  onAdZoneSelected(
313
- props.adZoneData.ads[adIndexShown]
313
+ props.adZoneData.ads[adIndexShown],
314
314
  );
315
315
  }
316
316
 
package/src/index.tsx CHANGED
@@ -190,7 +190,7 @@ export class AdadaptedReactNativeSdk {
190
190
  */
191
191
  private onAddToListTriggered: (
192
192
  items: DetailedListItem[],
193
- isExternalPayload?: boolean
193
+ isExternalPayload?: boolean,
194
194
  ) => void | undefined;
195
195
  /**
196
196
  * If provided, triggers when an "add to list"
@@ -198,7 +198,7 @@ export class AdadaptedReactNativeSdk {
198
198
  * @param payloads - All payloads the client must go through.
199
199
  */
200
200
  private onOutOfAppPayloadAvailable: (
201
- payloads: OutOfAppDataPayload[]
201
+ payloads: OutOfAppDataPayload[],
202
202
  ) => void | undefined;
203
203
  /**
204
204
  * Deeplink event listener.
@@ -309,7 +309,7 @@ export class AdadaptedReactNativeSdk {
309
309
  NativeModules.AdadaptedReactNativeSdk.getDeviceInfo().then(
310
310
  (response: string) => {
311
311
  resolve(response);
312
- }
312
+ },
313
313
  );
314
314
  });
315
315
  }
@@ -317,7 +317,7 @@ export class AdadaptedReactNativeSdk {
317
317
  private adZoneTemplate(
318
318
  adZones: { [key: number]: Zone },
319
319
  zoneId: string,
320
- offScreenAdZone: boolean
320
+ offScreenAdZone: boolean,
321
321
  ): AdZoneInfo {
322
322
  return {
323
323
  zoneId: adZones[Number(zoneId)].id,
@@ -352,7 +352,7 @@ export class AdadaptedReactNativeSdk {
352
352
  */
353
353
  private generateAdZones(
354
354
  adZones: { [key: number]: Zone },
355
- offScreenAdZone: boolean = false
355
+ offScreenAdZone: boolean = false,
356
356
  ): AdZoneInfo[] {
357
357
  const adZoneInfoList: AdZoneInfo[] = [];
358
358
  const offScreenAdZoneList: AdZoneInfo[] = [];
@@ -362,7 +362,7 @@ export class AdadaptedReactNativeSdk {
362
362
  if (Object.prototype.hasOwnProperty.call(adZones, adZoneId)) {
363
363
  if (this.offScreenAdZoneIds.includes(Number(adZoneId))) {
364
364
  offScreenAdZoneList.push(
365
- this.adZoneTemplate(adZones, adZoneId, true)
365
+ this.adZoneTemplate(adZones, adZoneId, true),
366
366
  );
367
367
  }
368
368
  }
@@ -371,7 +371,7 @@ export class AdadaptedReactNativeSdk {
371
371
  for (const adZoneId in adZones) {
372
372
  if (Object.prototype.hasOwnProperty.call(adZones, adZoneId)) {
373
373
  adZoneInfoList.push(
374
- this.adZoneTemplate(adZones, adZoneId, false)
374
+ this.adZoneTemplate(adZones, adZoneId, false),
375
375
  );
376
376
  }
377
377
  }
@@ -393,8 +393,8 @@ export class AdadaptedReactNativeSdk {
393
393
  const timerMs = immediateRefresh
394
394
  ? 0
395
395
  : this.sessionInfo!.polling_interval_ms >= 300000
396
- ? this.sessionInfo!.polling_interval_ms
397
- : 300000;
396
+ ? this.sessionInfo!.polling_interval_ms
397
+ : 300000;
398
398
 
399
399
  this.refreshAdZonesTimer = setTimeout(() => {
400
400
  adadaptedApiRequests
@@ -407,7 +407,7 @@ export class AdadaptedReactNativeSdk {
407
407
  adContext: this.adContext,
408
408
  },
409
409
  this.deviceOs!,
410
- this.apiEnv
410
+ this.apiEnv,
411
411
  )
412
412
  .then((response) => {
413
413
  this.sessionInfo = response.data;
@@ -415,7 +415,7 @@ export class AdadaptedReactNativeSdk {
415
415
  if (this.offScreenAdZones.length > 0) {
416
416
  this.offScreenAdZones = this.generateAdZones(
417
417
  response.data.zones,
418
- true
418
+ true,
419
419
  );
420
420
  }
421
421
 
@@ -451,7 +451,7 @@ export class AdadaptedReactNativeSdk {
451
451
  uid: this.deviceInfo!.udid,
452
452
  },
453
453
  this.deviceOs!,
454
- this.apiEnv
454
+ this.apiEnv,
455
455
  )
456
456
  .then((response) => {
457
457
  this.keywordIntercepts = response.data;
@@ -464,7 +464,7 @@ export class AdadaptedReactNativeSdk {
464
464
  * @returns the term if it was found based on the provided term ID.
465
465
  */
466
466
  private getKeywordInterceptTerm(
467
- termId: string
467
+ termId: string,
468
468
  ): KeywordSearchTerm | undefined {
469
469
  let term: KeywordSearchTerm | undefined;
470
470
 
@@ -499,7 +499,7 @@ export class AdadaptedReactNativeSdk {
499
499
  eventSource: ListManagerEventSource,
500
500
  eventName: ListManagerEventName,
501
501
  itemNames: string[],
502
- listName?: string
502
+ listName?: string,
503
503
  ): ReportListManagerDataRequest {
504
504
  const eventList: ListManagerEvent[] = [];
505
505
 
@@ -534,7 +534,7 @@ export class AdadaptedReactNativeSdk {
534
534
 
535
535
  if (dataIndex !== -1) {
536
536
  const encodedData: string = event.url.substr(
537
- `${dataIndex}${searchStr.length}`
537
+ `${dataIndex}${searchStr.length}`,
538
538
  );
539
539
  const payloadData = JSON.parse(base64.decode(encodedData));
540
540
  const payloadId = payloadData.payload_id;
@@ -587,7 +587,7 @@ export class AdadaptedReactNativeSdk {
587
587
  session_id: this.sessionId!,
588
588
  udid: this.deviceInfo!.udid,
589
589
  },
590
- this.payloadApiEnv
590
+ this.payloadApiEnv,
591
591
  )
592
592
  .then((response) => {
593
593
  const finalItemList: OutOfAppDataPayload[] = [];
@@ -697,7 +697,7 @@ export class AdadaptedReactNativeSdk {
697
697
  this.getDeviceInformation()
698
698
  .then((deviceInfoObj) => {
699
699
  const deviceInfo = JSON.parse(
700
- deviceInfoObj
700
+ deviceInfoObj,
701
701
  ) as DeviceTypes.DeviceInfo;
702
702
  this.deviceInfo = deviceInfo;
703
703
  this.deviceOs = deviceInfo.systemName.includes("ios")
@@ -719,11 +719,11 @@ export class AdadaptedReactNativeSdk {
719
719
  sdk_version: packageJson.version,
720
720
  device_width: parseInt(
721
721
  deviceInfo.deviceWidth,
722
- 10
722
+ 10,
723
723
  ),
724
724
  device_height: parseInt(
725
725
  deviceInfo.deviceHeight,
726
- 10
726
+ 10,
727
727
  ),
728
728
  device_density: deviceInfo.deviceScreenDensity,
729
729
  device_carrier: deviceInfo.deviceCarrier,
@@ -738,23 +738,23 @@ export class AdadaptedReactNativeSdk {
738
738
  deviceInfo.isAdTrackingEnabled,
739
739
  },
740
740
  this.deviceOs,
741
- this.apiEnv
741
+ this.apiEnv,
742
742
  )
743
743
  .then((response) => {
744
744
  NativeModules.AdadaptedReactNativeSdk.storeCurrentSessionId(
745
- response.data.session_id
745
+ response.data.session_id,
746
746
  );
747
747
  this.sessionId = response.data.session_id;
748
748
  this.sessionInfo = response.data;
749
749
 
750
750
  this.adZones = this.generateAdZones(
751
- response.data.zones
751
+ response.data.zones,
752
752
  );
753
753
 
754
754
  if ((props.offScreenAdZoneIds ?? []).length > 0) {
755
755
  this.offScreenAdZones = this.generateAdZones(
756
756
  response.data.zones,
757
- true
757
+ true,
758
758
  );
759
759
  }
760
760
 
@@ -785,7 +785,7 @@ export class AdadaptedReactNativeSdk {
785
785
  this.deepLinkOnEventListener =
786
786
  Linking.addEventListener(
787
787
  "url",
788
- this.handleDeepLink
788
+ this.handleDeepLink,
789
789
  );
790
790
 
791
791
  // // Initialize an event listener to intercept App state changes.
@@ -821,11 +821,11 @@ export class AdadaptedReactNativeSdk {
821
821
 
822
822
  if (!this.deviceInfo) {
823
823
  console.error(
824
- "AdAdapted SDK has not been initialized with device info."
824
+ "AdAdapted SDK has not been initialized with device info.",
825
825
  );
826
826
  } else if (!this.sessionId) {
827
827
  console.error(
828
- "AdAdapted SDK has not been initialized with session id."
828
+ "AdAdapted SDK has not been initialized with session id.",
829
829
  );
830
830
  } else if (!this.keywordIntercepts) {
831
831
  console.error("No available keyword intercepts.");
@@ -863,10 +863,10 @@ export class AdadaptedReactNativeSdk {
863
863
 
864
864
  // Sort the final results by priority.
865
865
  finalResultListStartsWith.sort((a, b) =>
866
- a.priority > b.priority ? 1 : -1
866
+ a.priority > b.priority ? 1 : -1,
867
867
  );
868
868
  finalResultListContains.sort((a, b) =>
869
- a.priority > b.priority ? 1 : -1
869
+ a.priority > b.priority ? 1 : -1,
870
870
  );
871
871
 
872
872
  // If there are no events to report at this point,
@@ -893,7 +893,7 @@ export class AdadaptedReactNativeSdk {
893
893
  events: finalEventsList,
894
894
  },
895
895
  this.deviceOs!,
896
- this.apiEnv
896
+ this.apiEnv,
897
897
  )
898
898
  .then(() => {
899
899
  // Do nothing with the response for now...
@@ -920,11 +920,11 @@ export class AdadaptedReactNativeSdk {
920
920
 
921
921
  if (!this.deviceInfo) {
922
922
  console.error(
923
- "AdAdapted SDK has not been initialized with device info."
923
+ "AdAdapted SDK has not been initialized with device info.",
924
924
  );
925
925
  } else if (!this.sessionId) {
926
926
  console.error(
927
- "AdAdapted SDK has not been initialized with session id."
927
+ "AdAdapted SDK has not been initialized with session id.",
928
928
  );
929
929
  } else if (!this.keywordIntercepts) {
930
930
  console.error("No available keyword intercepts.");
@@ -949,7 +949,7 @@ export class AdadaptedReactNativeSdk {
949
949
  ],
950
950
  },
951
951
  this.deviceOs!,
952
- this.apiEnv
952
+ this.apiEnv,
953
953
  )
954
954
  .then(() => {
955
955
  // Do nothing with the response for now...
@@ -979,11 +979,11 @@ export class AdadaptedReactNativeSdk {
979
979
 
980
980
  if (!this.deviceInfo) {
981
981
  console.error(
982
- "AdAdapted SDK has not been initialized with device info."
982
+ "AdAdapted SDK has not been initialized with device info.",
983
983
  );
984
984
  } else if (!this.sessionId) {
985
985
  console.error(
986
- "AdAdapted SDK has not been initialized with session id."
986
+ "AdAdapted SDK has not been initialized with session id.",
987
987
  );
988
988
  } else if (!this.keywordIntercepts) {
989
989
  console.error("No available keyword intercepts.");
@@ -1013,7 +1013,7 @@ export class AdadaptedReactNativeSdk {
1013
1013
  events: termEvents,
1014
1014
  },
1015
1015
  this.deviceOs!,
1016
- this.apiEnv
1016
+ this.apiEnv,
1017
1017
  )
1018
1018
  .then(() => {
1019
1019
  // Do nothing with the response for now...
@@ -1029,20 +1029,20 @@ export class AdadaptedReactNativeSdk {
1029
1029
  */
1030
1030
  public reportItemsAddedToList(
1031
1031
  itemNames: string[],
1032
- listName?: string
1032
+ listName?: string,
1033
1033
  ): void {
1034
1034
  const requestData = this.getListManagerApiRequestData(
1035
1035
  ListManagerEventSource.APP,
1036
1036
  ListManagerEventName.ADDED_TO_LIST,
1037
1037
  itemNames,
1038
- listName
1038
+ listName,
1039
1039
  );
1040
1040
 
1041
1041
  adadaptedApiRequests
1042
1042
  .reportListManagerEvents(
1043
1043
  requestData,
1044
1044
  this.deviceOs!,
1045
- this.listManagerApiEnv
1045
+ this.listManagerApiEnv,
1046
1046
  )
1047
1047
  .then()
1048
1048
  .catch(() => {
@@ -1058,20 +1058,20 @@ export class AdadaptedReactNativeSdk {
1058
1058
  */
1059
1059
  public reportItemsCrossedOffList(
1060
1060
  itemNames: string[],
1061
- listName?: string
1061
+ listName?: string,
1062
1062
  ): void {
1063
1063
  const requestData = this.getListManagerApiRequestData(
1064
1064
  ListManagerEventSource.APP,
1065
1065
  ListManagerEventName.CROSSED_OFF_LIST,
1066
1066
  itemNames,
1067
- listName
1067
+ listName,
1068
1068
  );
1069
1069
 
1070
1070
  adadaptedApiRequests
1071
1071
  .reportListManagerEvents(
1072
1072
  requestData,
1073
1073
  this.deviceOs!,
1074
- this.listManagerApiEnv
1074
+ this.listManagerApiEnv,
1075
1075
  )
1076
1076
  .then()
1077
1077
  .catch(() => {
@@ -1087,20 +1087,20 @@ export class AdadaptedReactNativeSdk {
1087
1087
  */
1088
1088
  public reportItemsDeletedFromList(
1089
1089
  itemNames: string[],
1090
- listName?: string
1090
+ listName?: string,
1091
1091
  ): void {
1092
1092
  const requestData = this.getListManagerApiRequestData(
1093
1093
  ListManagerEventSource.APP,
1094
1094
  ListManagerEventName.DELETED_FROM_LIST,
1095
1095
  itemNames,
1096
- listName
1096
+ listName,
1097
1097
  );
1098
1098
 
1099
1099
  adadaptedApiRequests
1100
1100
  .reportListManagerEvents(
1101
1101
  requestData,
1102
1102
  this.deviceOs!,
1103
- this.listManagerApiEnv
1103
+ this.listManagerApiEnv,
1104
1104
  )
1105
1105
  .then()
1106
1106
  .catch(() => {
@@ -1128,7 +1128,7 @@ export class AdadaptedReactNativeSdk {
1128
1128
  },
1129
1129
  ],
1130
1130
  },
1131
- this.payloadApiEnv
1131
+ this.payloadApiEnv,
1132
1132
  )
1133
1133
  .then()
1134
1134
  .catch(() => {
@@ -1156,7 +1156,7 @@ export class AdadaptedReactNativeSdk {
1156
1156
  },
1157
1157
  ],
1158
1158
  },
1159
- this.payloadApiEnv
1159
+ this.payloadApiEnv,
1160
1160
  )
1161
1161
  .then()
1162
1162
  .catch(() => {
package/src/types.tsx CHANGED
@@ -9,8 +9,9 @@ export type nil = null | undefined;
9
9
  * Extracts the type of a React component's props from the React component type T.
10
10
  * Usage example: type MyComponentProps = ExtractReactPropsType<typeof MyComponent>;
11
11
  */
12
- export type ExtractReactPropsType<T> = T extends React.ComponentType<infer P>
13
- ? P
14
- : T extends React.Component<infer P>
15
- ? P
16
- : never;
12
+ export type ExtractReactPropsType<T> =
13
+ T extends React.ComponentType<infer P>
14
+ ? P
15
+ : T extends React.Component<infer P>
16
+ ? P
17
+ : never;
package/src/util.ts CHANGED
@@ -19,7 +19,7 @@ export function safeInvoke<R>(func: (() => R) | nil): R | undefined;
19
19
  */
20
20
  export function safeInvoke<A1, R>(
21
21
  func: ((arg1: A1) => R) | nil,
22
- arg1: NoInfer<A1>
22
+ arg1: NoInfer<A1>,
23
23
  ): R | undefined;
24
24
  /**
25
25
  * See main definition above.
@@ -32,7 +32,7 @@ export function safeInvoke<A1, R>(
32
32
  export function safeInvoke<A1, A2, R>(
33
33
  func: ((arg1: A1, arg2: A2) => R) | nil,
34
34
  arg1: NoInfer<A1>,
35
- arg2: NoInfer<A2>
35
+ arg2: NoInfer<A2>,
36
36
  ): R | undefined;
37
37
  /**
38
38
  * See main definition above.
@@ -47,7 +47,7 @@ export function safeInvoke<A1, A2, A3, R>(
47
47
  func: ((arg1: A1, arg2: A2, arg3: A3) => R) | nil,
48
48
  arg1: NoInfer<A1>,
49
49
  arg2: NoInfer<A2>,
50
- arg3: NoInfer<A3>
50
+ arg3: NoInfer<A3>,
51
51
  ): R | undefined;
52
52
  /**
53
53
  * See main definition above.
@@ -64,7 +64,7 @@ export function safeInvoke<A1, A2, A3, A4, R>(
64
64
  arg1: NoInfer<A1>,
65
65
  arg2: NoInfer<A2>,
66
66
  arg3: NoInfer<A3>,
67
- arg4: NoInfer<A4>
67
+ arg4: NoInfer<A4>,
68
68
  ): R | undefined;
69
69
  /**
70
70
  * See main definition above.
@@ -83,7 +83,7 @@ export function safeInvoke<A1, A2, A3, A4, A5, R>(
83
83
  arg2: NoInfer<A2>,
84
84
  arg3: NoInfer<A3>,
85
85
  arg4: NoInfer<A4>,
86
- arg5: NoInfer<A5>
86
+ arg5: NoInfer<A5>,
87
87
  ): R | undefined;
88
88
  /**
89
89
  * See main definition above.
@@ -106,7 +106,7 @@ export function safeInvoke<A1, A2, A3, A4, A5, A6, R>(
106
106
  arg3: NoInfer<A3>,
107
107
  arg4: NoInfer<A4>,
108
108
  arg5: NoInfer<A5>,
109
- arg6: NoInfer<A6>
109
+ arg6: NoInfer<A6>,
110
110
  ): R | undefined;
111
111
  /**
112
112
  * See main definition above.
@@ -114,7 +114,6 @@ export function safeInvoke<A1, A2, A3, A4, A5, A6, R>(
114
114
  * @param args - All arguments to call with the function.
115
115
  * @returns the method to be called if its defined.
116
116
  */
117
- // eslint-disable-next-line @typescript-eslint/ban-types
118
117
  export function safeInvoke(func: Function | nil, ...args: any[]): any {
119
118
  if (func) {
120
119
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
package/android/.project DELETED
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>adadaptedreactnativesdk</name>
4
- <comment>Project android_ created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.jdt.core.javabuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>org.eclipse.jdt.core.javanature</nature>
21
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
- </natures>
23
- <filteredResources>
24
- <filter>
25
- <id>0</id>
26
- <name></name>
27
- <type>30</type>
28
- <matcher>
29
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
- <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
- </matcher>
32
- </filter>
33
- </filteredResources>
34
- </projectDescription>
@@ -1,13 +0,0 @@
1
- arguments=--init-script /var/folders/vw/1yz06gyj201f5y15zm_xv9gr0000gn/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/vw/1yz06gyj201f5y15zm_xv9gr0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
5
- connection.project.dir=../example/android
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>android</name>
4
- <comment>Project android_ created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.jdt.core.javabuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>org.eclipse.jdt.core.javanature</nature>
21
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
- </natures>
23
- <filteredResources>
24
- <filter>
25
- <id>0</id>
26
- <name></name>
27
- <type>30</type>
28
- <matcher>
29
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
- <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
- </matcher>
32
- </filter>
33
- </filteredResources>
34
- </projectDescription>
@@ -1,13 +0,0 @@
1
- arguments=--init-script /var/folders/vw/1yz06gyj201f5y15zm_xv9gr0000gn/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/vw/1yz06gyj201f5y15zm_xv9gr0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
5
- connection.project.dir=
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true