react-native-netmera 1.11.3 → 2.0.0-alpha02

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 (280) hide show
  1. package/README.md +109 -120
  2. package/RNNetmera.podspec +31 -14
  3. package/android/build.gradle +83 -19
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +0 -5
  6. package/android/src/main/AndroidManifestNew.xml +5 -0
  7. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmera.kt +24 -0
  8. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraCategoryObject.kt +54 -0
  9. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraConfiguration.kt +108 -0
  10. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraEvent.kt +24 -0
  11. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraModule.kt +694 -0
  12. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraPackage.kt +17 -0
  13. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraPushBroadcastReceiver.kt +81 -0
  14. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraPushHeadlessService.kt +32 -0
  15. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraUtil.kt +218 -0
  16. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraWebWidgetCallbacks.kt +25 -0
  17. package/ios/AnyCodable/AnyCodable.swift +151 -0
  18. package/ios/AnyCodable/AnyDecodable.swift +192 -0
  19. package/ios/AnyCodable/AnyEncodable.swift +295 -0
  20. package/ios/RNNetmera-Bridging-Header.h +3 -0
  21. package/ios/RNNetmera.h +9 -29
  22. package/ios/RNNetmera.mm +143 -0
  23. package/ios/RNNetmera.swift +759 -0
  24. package/ios/RNNetmeraCategoryObject.swift +61 -0
  25. package/ios/RNNetmeraEvent.swift +26 -0
  26. package/ios/RNNetmeraPushLifecycleDelegate.swift +47 -0
  27. package/ios/RNNetmeraRCTEventEmitter.mm +8 -0
  28. package/ios/RNNetmeraRCTEventEmitter.swift +134 -0
  29. package/ios/RNNetmeraUtils.swift +233 -0
  30. package/lib/module/Netmera.js +256 -0
  31. package/lib/module/Netmera.js.map +1 -0
  32. package/lib/module/events/NetmeraEvent.js +8 -0
  33. package/lib/module/events/NetmeraEvent.js.map +1 -0
  34. package/lib/module/events/NetmeraEventBannerOpen.js +13 -0
  35. package/lib/module/events/NetmeraEventBannerOpen.js.map +1 -0
  36. package/lib/module/events/NetmeraEventBatteryLevel.js +10 -0
  37. package/lib/module/events/NetmeraEventBatteryLevel.js.map +1 -0
  38. package/lib/module/events/NetmeraEventCategoryView.js +13 -0
  39. package/lib/module/events/NetmeraEventCategoryView.js.map +1 -0
  40. package/lib/module/events/NetmeraEventInAppPurchase.js +28 -0
  41. package/lib/module/events/NetmeraEventInAppPurchase.js.map +1 -0
  42. package/lib/module/events/NetmeraEventLogin.js +10 -0
  43. package/lib/module/events/NetmeraEventLogin.js.map +1 -0
  44. package/lib/module/events/NetmeraEventRegister.js +10 -0
  45. package/lib/module/events/NetmeraEventRegister.js.map +1 -0
  46. package/lib/module/events/NetmeraEventScreenView.js +22 -0
  47. package/lib/module/events/NetmeraEventScreenView.js.map +1 -0
  48. package/lib/module/events/NetmeraEventSearch.js +13 -0
  49. package/lib/module/events/NetmeraEventSearch.js.map +1 -0
  50. package/lib/module/events/NetmeraEventShare.js +13 -0
  51. package/lib/module/events/NetmeraEventShare.js.map +1 -0
  52. package/lib/module/events/commerce/NetmeraEventCartAddProduct.js +13 -0
  53. package/lib/module/events/commerce/NetmeraEventCartAddProduct.js.map +1 -0
  54. package/lib/module/events/commerce/NetmeraEventCartRemoveProduct.js +10 -0
  55. package/lib/module/events/commerce/NetmeraEventCartRemoveProduct.js.map +1 -0
  56. package/lib/module/events/commerce/NetmeraEventCartView.js +13 -0
  57. package/lib/module/events/commerce/NetmeraEventCartView.js.map +1 -0
  58. package/lib/module/events/commerce/NetmeraEventOrderCancel.js +19 -0
  59. package/lib/module/events/commerce/NetmeraEventOrderCancel.js.map +1 -0
  60. package/lib/module/events/commerce/NetmeraEventProductComment.js +7 -0
  61. package/lib/module/events/commerce/NetmeraEventProductComment.js.map +1 -0
  62. package/lib/module/events/commerce/NetmeraEventProductRate.js +10 -0
  63. package/lib/module/events/commerce/NetmeraEventProductRate.js.map +1 -0
  64. package/lib/module/events/commerce/NetmeraEventProductView.js +7 -0
  65. package/lib/module/events/commerce/NetmeraEventProductView.js.map +1 -0
  66. package/lib/module/events/commerce/NetmeraEventPurchase.js +34 -0
  67. package/lib/module/events/commerce/NetmeraEventPurchase.js.map +1 -0
  68. package/lib/module/events/commerce/NetmeraEventWishList.js +7 -0
  69. package/lib/module/events/commerce/NetmeraEventWishList.js.map +1 -0
  70. package/lib/module/events/commerce/NetmeraLineItem.js +9 -0
  71. package/lib/module/events/commerce/NetmeraLineItem.js.map +1 -0
  72. package/lib/module/events/commerce/NetmeraProduct.js +46 -0
  73. package/lib/module/events/commerce/NetmeraProduct.js.map +1 -0
  74. package/lib/module/events/media/NetmeraEventContent.js +42 -0
  75. package/lib/module/events/media/NetmeraEventContent.js.map +1 -0
  76. package/lib/module/events/media/NetmeraEventContentComment.js +7 -0
  77. package/lib/module/events/media/NetmeraEventContentComment.js.map +1 -0
  78. package/lib/module/events/media/NetmeraEventContentRate.js +10 -0
  79. package/lib/module/events/media/NetmeraEventContentRate.js.map +1 -0
  80. package/lib/module/events/media/NetmeraEventContentView.js +7 -0
  81. package/lib/module/events/media/NetmeraEventContentView.js.map +1 -0
  82. package/lib/module/index.js +43 -0
  83. package/lib/module/index.js.map +1 -0
  84. package/lib/module/models/NMCategoryPreference.js +8 -0
  85. package/lib/module/models/NMCategoryPreference.js.map +1 -0
  86. package/lib/module/models/NMInboxStatus.js +11 -0
  87. package/lib/module/models/NMInboxStatus.js.map +1 -0
  88. package/lib/module/models/NMInboxStatusCountFilter.js +12 -0
  89. package/lib/module/models/NMInboxStatusCountFilter.js.map +1 -0
  90. package/lib/module/models/NetmeraCategory.js +8 -0
  91. package/lib/module/models/NetmeraCategory.js.map +1 -0
  92. package/lib/module/models/NetmeraCategoryFilter.js +8 -0
  93. package/lib/module/models/NetmeraCategoryFilter.js.map +1 -0
  94. package/lib/module/models/NetmeraCouponObject.js +8 -0
  95. package/lib/module/models/NetmeraCouponObject.js.map +1 -0
  96. package/lib/module/models/NetmeraInbox.js +8 -0
  97. package/lib/module/models/NetmeraInbox.js.map +1 -0
  98. package/lib/module/models/NetmeraInboxFilter.js +8 -0
  99. package/lib/module/models/NetmeraInboxFilter.js.map +1 -0
  100. package/lib/module/models/NetmeraProfileAttribute.js +75 -0
  101. package/lib/module/models/NetmeraProfileAttribute.js.map +1 -0
  102. package/lib/module/models/NetmeraUser.js +89 -0
  103. package/lib/module/models/NetmeraUser.js.map +1 -0
  104. package/lib/module/models/NetmeraUserProfile.js +58 -0
  105. package/lib/module/models/NetmeraUserProfile.js.map +1 -0
  106. package/lib/module/models/NotificationPermissionStatus.js +10 -0
  107. package/lib/module/models/NotificationPermissionStatus.js.map +1 -0
  108. package/lib/module/package.json +1 -0
  109. package/lib/module/utils/DeviceUtils.js +10 -0
  110. package/lib/module/utils/DeviceUtils.js.map +1 -0
  111. package/lib/module/utils/Optional.js +32 -0
  112. package/lib/module/utils/Optional.js.map +1 -0
  113. package/lib/module/utils/RNNetmera.js +16 -0
  114. package/lib/module/utils/RNNetmera.js.map +1 -0
  115. package/lib/typescript/package.json +1 -0
  116. package/lib/typescript/src/Netmera.d.ts +70 -0
  117. package/lib/typescript/src/Netmera.d.ts.map +1 -0
  118. package/lib/typescript/src/events/NetmeraEvent.d.ts +5 -0
  119. package/lib/typescript/src/events/NetmeraEvent.d.ts.map +1 -0
  120. package/lib/typescript/src/events/NetmeraEventBannerOpen.d.ts +9 -0
  121. package/lib/typescript/src/events/NetmeraEventBannerOpen.d.ts.map +1 -0
  122. package/lib/typescript/src/events/NetmeraEventBatteryLevel.d.ts +7 -0
  123. package/lib/typescript/src/events/NetmeraEventBatteryLevel.d.ts.map +1 -0
  124. package/lib/typescript/src/events/NetmeraEventCategoryView.d.ts +9 -0
  125. package/lib/typescript/src/events/NetmeraEventCategoryView.d.ts.map +1 -0
  126. package/lib/typescript/src/events/NetmeraEventInAppPurchase.d.ts +19 -0
  127. package/lib/typescript/src/events/NetmeraEventInAppPurchase.d.ts.map +1 -0
  128. package/lib/typescript/src/events/NetmeraEventLogin.d.ts +7 -0
  129. package/lib/typescript/src/events/NetmeraEventLogin.d.ts.map +1 -0
  130. package/lib/typescript/src/events/NetmeraEventRegister.d.ts +7 -0
  131. package/lib/typescript/src/events/NetmeraEventRegister.d.ts.map +1 -0
  132. package/lib/typescript/src/events/NetmeraEventScreenView.d.ts +15 -0
  133. package/lib/typescript/src/events/NetmeraEventScreenView.d.ts.map +1 -0
  134. package/lib/typescript/src/events/NetmeraEventSearch.d.ts +9 -0
  135. package/lib/typescript/src/events/NetmeraEventSearch.d.ts.map +1 -0
  136. package/lib/typescript/src/events/NetmeraEventShare.d.ts +9 -0
  137. package/lib/typescript/src/events/NetmeraEventShare.d.ts.map +1 -0
  138. package/lib/typescript/src/events/commerce/NetmeraEventCartAddProduct.d.ts +9 -0
  139. package/lib/typescript/src/events/commerce/NetmeraEventCartAddProduct.d.ts.map +1 -0
  140. package/lib/typescript/src/events/commerce/NetmeraEventCartRemoveProduct.d.ts +7 -0
  141. package/lib/typescript/src/events/commerce/NetmeraEventCartRemoveProduct.d.ts.map +1 -0
  142. package/lib/typescript/src/events/commerce/NetmeraEventCartView.d.ts +9 -0
  143. package/lib/typescript/src/events/commerce/NetmeraEventCartView.d.ts.map +1 -0
  144. package/lib/typescript/src/events/commerce/NetmeraEventOrderCancel.d.ts +13 -0
  145. package/lib/typescript/src/events/commerce/NetmeraEventOrderCancel.d.ts.map +1 -0
  146. package/lib/typescript/src/events/commerce/NetmeraEventProductComment.d.ts +5 -0
  147. package/lib/typescript/src/events/commerce/NetmeraEventProductComment.d.ts.map +1 -0
  148. package/lib/typescript/src/events/commerce/NetmeraEventProductRate.d.ts +7 -0
  149. package/lib/typescript/src/events/commerce/NetmeraEventProductRate.d.ts.map +1 -0
  150. package/lib/typescript/src/events/commerce/NetmeraEventProductView.d.ts +5 -0
  151. package/lib/typescript/src/events/commerce/NetmeraEventProductView.d.ts.map +1 -0
  152. package/lib/typescript/src/events/commerce/NetmeraEventPurchase.d.ts +24 -0
  153. package/lib/typescript/src/events/commerce/NetmeraEventPurchase.d.ts.map +1 -0
  154. package/lib/typescript/src/events/commerce/NetmeraEventWishList.d.ts +5 -0
  155. package/lib/typescript/src/events/commerce/NetmeraEventWishList.d.ts.map +1 -0
  156. package/lib/typescript/src/events/commerce/NetmeraLineItem.d.ts +6 -0
  157. package/lib/typescript/src/events/commerce/NetmeraLineItem.d.ts.map +1 -0
  158. package/lib/typescript/src/events/commerce/NetmeraProduct.d.ts +23 -0
  159. package/lib/typescript/src/events/commerce/NetmeraProduct.d.ts.map +1 -0
  160. package/lib/typescript/src/events/media/NetmeraEventContent.d.ts +23 -0
  161. package/lib/typescript/src/events/media/NetmeraEventContent.d.ts.map +1 -0
  162. package/lib/typescript/src/events/media/NetmeraEventContentComment.d.ts +5 -0
  163. package/lib/typescript/src/events/media/NetmeraEventContentComment.d.ts.map +1 -0
  164. package/lib/typescript/src/events/media/NetmeraEventContentRate.d.ts +7 -0
  165. package/lib/typescript/src/events/media/NetmeraEventContentRate.d.ts.map +1 -0
  166. package/lib/typescript/src/events/media/NetmeraEventContentView.d.ts +5 -0
  167. package/lib/typescript/src/events/media/NetmeraEventContentView.d.ts.map +1 -0
  168. package/lib/typescript/src/index.d.ts +39 -0
  169. package/lib/typescript/src/index.d.ts.map +1 -0
  170. package/lib/typescript/src/models/NMCategoryPreference.d.ts +6 -0
  171. package/lib/typescript/src/models/NMCategoryPreference.d.ts.map +1 -0
  172. package/lib/typescript/src/models/NMInboxStatus.d.ts +8 -0
  173. package/lib/typescript/src/models/NMInboxStatus.d.ts.map +1 -0
  174. package/lib/typescript/src/models/NMInboxStatusCountFilter.d.ts +7 -0
  175. package/lib/typescript/src/models/NMInboxStatusCountFilter.d.ts.map +1 -0
  176. package/lib/typescript/src/models/NetmeraCategory.d.ts +10 -0
  177. package/lib/typescript/src/models/NetmeraCategory.d.ts.map +1 -0
  178. package/lib/typescript/src/models/NetmeraCategoryFilter.d.ts +6 -0
  179. package/lib/typescript/src/models/NetmeraCategoryFilter.d.ts.map +1 -0
  180. package/lib/typescript/src/models/NetmeraCouponObject.d.ts +8 -0
  181. package/lib/typescript/src/models/NetmeraCouponObject.d.ts.map +1 -0
  182. package/lib/typescript/src/models/NetmeraInbox.d.ts +22 -0
  183. package/lib/typescript/src/models/NetmeraInbox.d.ts.map +1 -0
  184. package/lib/typescript/src/models/NetmeraInboxFilter.d.ts +7 -0
  185. package/lib/typescript/src/models/NetmeraInboxFilter.d.ts.map +1 -0
  186. package/lib/typescript/src/models/NetmeraProfileAttribute.d.ts +33 -0
  187. package/lib/typescript/src/models/NetmeraProfileAttribute.d.ts.map +1 -0
  188. package/lib/typescript/src/models/NetmeraUser.d.ts +25 -0
  189. package/lib/typescript/src/models/NetmeraUser.d.ts.map +1 -0
  190. package/lib/typescript/src/models/NetmeraUserProfile.d.ts +21 -0
  191. package/lib/typescript/src/models/NetmeraUserProfile.d.ts.map +1 -0
  192. package/lib/typescript/src/models/NotificationPermissionStatus.d.ts +7 -0
  193. package/lib/typescript/src/models/NotificationPermissionStatus.d.ts.map +1 -0
  194. package/lib/typescript/src/utils/DeviceUtils.d.ts +3 -0
  195. package/lib/typescript/src/utils/DeviceUtils.d.ts.map +1 -0
  196. package/lib/typescript/src/utils/Optional.d.ts +15 -0
  197. package/lib/typescript/src/utils/Optional.d.ts.map +1 -0
  198. package/lib/typescript/src/utils/RNNetmera.d.ts +5 -0
  199. package/lib/typescript/src/utils/RNNetmera.d.ts.map +1 -0
  200. package/package.json +104 -17
  201. package/src/Netmera.ts +139 -88
  202. package/src/events/NetmeraEvent.ts +1 -1
  203. package/src/events/NetmeraEventBannerOpen.ts +4 -4
  204. package/src/events/NetmeraEventBatteryLevel.ts +3 -3
  205. package/src/events/NetmeraEventCategoryView.ts +4 -4
  206. package/src/events/NetmeraEventInAppPurchase.ts +10 -10
  207. package/src/events/NetmeraEventLogin.ts +3 -3
  208. package/src/events/NetmeraEventRegister.ts +3 -3
  209. package/src/events/NetmeraEventScreenView.ts +7 -7
  210. package/src/events/NetmeraEventSearch.ts +4 -4
  211. package/src/events/NetmeraEventShare.ts +4 -4
  212. package/src/events/commerce/NetmeraEventCartAddProduct.ts +4 -4
  213. package/src/events/commerce/NetmeraEventCartRemoveProduct.ts +3 -3
  214. package/src/events/commerce/NetmeraEventCartView.ts +4 -4
  215. package/src/events/commerce/NetmeraEventOrderCancel.ts +6 -6
  216. package/src/events/commerce/NetmeraEventProductComment.ts +2 -2
  217. package/src/events/commerce/NetmeraEventProductRate.ts +3 -3
  218. package/src/events/commerce/NetmeraEventProductView.ts +2 -2
  219. package/src/events/commerce/NetmeraEventPurchase.ts +13 -13
  220. package/src/events/commerce/NetmeraEventWishList.ts +2 -2
  221. package/src/events/commerce/NetmeraLineItem.ts +2 -2
  222. package/src/events/commerce/NetmeraProduct.ts +10 -10
  223. package/src/events/media/NetmeraEventContent.ts +8 -8
  224. package/src/events/media/NetmeraEventContentComment.ts +2 -2
  225. package/src/events/media/NetmeraEventContentRate.ts +3 -3
  226. package/src/events/media/NetmeraEventContentView.ts +2 -2
  227. package/src/index.ts +87 -0
  228. package/src/models/NMCategoryPreference.ts +1 -1
  229. package/src/models/NMInboxStatusCountFilter.ts +1 -1
  230. package/src/models/NetmeraCategory.ts +2 -2
  231. package/src/models/NetmeraCategoryFilter.ts +1 -1
  232. package/src/models/NetmeraCouponObject.ts +1 -1
  233. package/src/models/NetmeraInbox.ts +1 -1
  234. package/src/models/NetmeraInboxFilter.ts +1 -1
  235. package/src/models/NetmeraProfileAttribute.ts +81 -0
  236. package/src/models/NetmeraUser.ts +76 -74
  237. package/src/models/NetmeraUserProfile.ts +67 -0
  238. package/src/models/NotificationPermissionStatus.ts +4 -4
  239. package/src/utils/DeviceUtils.ts +3 -3
  240. package/src/utils/Optional.ts +31 -0
  241. package/src/utils/RNNetmera.ts +24 -0
  242. package/.eslintignore +0 -7
  243. package/.gitattributes +0 -1
  244. package/.github/workflows/code_quality_check.yaml +0 -38
  245. package/.prettierignore +0 -14
  246. package/.yarnrc.yml +0 -1
  247. package/android/.project +0 -17
  248. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  249. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  250. package/android/gradlew +0 -172
  251. package/android/gradlew.bat +0 -84
  252. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmera.java +0 -24
  253. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraCategoryObject.java +0 -56
  254. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraConfiguration.java +0 -154
  255. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraEvent.java +0 -36
  256. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraModule.java +0 -631
  257. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraPackage.java +0 -35
  258. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraPushBroadcastReceiver.java +0 -86
  259. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraPushHeadlessService.java +0 -32
  260. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraUser.java +0 -24
  261. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraUtil.java +0 -354
  262. package/android/src/main/java/com/netmera/reactnativesdk/RNNetmeraWebWidgetCallbacks.java +0 -27
  263. package/index.ts +0 -80
  264. package/ios/RNNetmera.m +0 -507
  265. package/ios/RNNetmera.xcodeproj/project.pbxproj +0 -316
  266. package/ios/RNNetmera.xcodeproj/xcshareddata/xcschemes/RNNetmera.xcscheme +0 -67
  267. package/ios/RNNetmera.xcworkspace/contents.xcworkspacedata +0 -9
  268. package/ios/RNNetmeraCategoryObject.h +0 -16
  269. package/ios/RNNetmeraCategoryObject.m +0 -59
  270. package/ios/RNNetmeraEvent.h +0 -17
  271. package/ios/RNNetmeraEvent.m +0 -27
  272. package/ios/RNNetmeraRCTEventEmitter.h +0 -23
  273. package/ios/RNNetmeraRCTEventEmitter.m +0 -142
  274. package/ios/RNNetmeraUser.h +0 -15
  275. package/ios/RNNetmeraUser.m +0 -19
  276. package/ios/RNNetmeraUtils.h +0 -27
  277. package/ios/RNNetmeraUtils.m +0 -128
  278. package/scripts/update-version.js +0 -38
  279. package/scripts/yarn_rebuild.sh +0 -31
  280. package/tsconfig.json +0 -3
@@ -1,316 +0,0 @@
1
- // !$*UTF8*$!
2
- {
3
- archiveVersion = 1;
4
- classes = {
5
- };
6
- objectVersion = 46;
7
- objects = {
8
-
9
- /* Begin PBXBuildFile section */
10
- 1D2C2640243DC9E3002E230A /* RNNetmeraRCTEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D2C263F243DC9E3002E230A /* RNNetmeraRCTEventEmitter.m */; };
11
- 1D35D7F422E4FCE6006B07E6 /* RNNetmeraUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D35D7F322E4FCE6006B07E6 /* RNNetmeraUtils.m */; };
12
- 1D3CCF9A2269F935004A06A1 /* RNNetmeraUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3CCF992269F935004A06A1 /* RNNetmeraUser.m */; };
13
- 1DC61EF1225A424F00FEB171 /* RNNetmeraEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DC61EF0225A424F00FEB171 /* RNNetmeraEvent.m */; };
14
- B3E7B58A1CC2AC0600A0062D /* RNNetmera.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNNetmera.m */; };
15
- /* End PBXBuildFile section */
16
-
17
- /* Begin PBXCopyFilesBuildPhase section */
18
- 58B511D91A9E6C8500147676 /* CopyFiles */ = {
19
- isa = PBXCopyFilesBuildPhase;
20
- buildActionMask = 2147483647;
21
- dstPath = "include/$(PRODUCT_NAME)";
22
- dstSubfolderSpec = 16;
23
- files = (
24
- );
25
- runOnlyForDeploymentPostprocessing = 0;
26
- };
27
- /* End PBXCopyFilesBuildPhase section */
28
-
29
- /* Begin PBXFileReference section */
30
- 134814201AA4EA6300B7C361 /* libRNNetmera.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNNetmera.a; sourceTree = BUILT_PRODUCTS_DIR; };
31
- 1D2C263E243DC9E3002E230A /* RNNetmeraRCTEventEmitter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNNetmeraRCTEventEmitter.h; sourceTree = "<group>"; };
32
- 1D2C263F243DC9E3002E230A /* RNNetmeraRCTEventEmitter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNNetmeraRCTEventEmitter.m; sourceTree = "<group>"; };
33
- 1D35D7F222E4FCE6006B07E6 /* RNNetmeraUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNNetmeraUtils.h; sourceTree = "<group>"; };
34
- 1D35D7F322E4FCE6006B07E6 /* RNNetmeraUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNNetmeraUtils.m; sourceTree = "<group>"; };
35
- 1D3CCF982269F935004A06A1 /* RNNetmeraUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNNetmeraUser.h; sourceTree = "<group>"; };
36
- 1D3CCF992269F935004A06A1 /* RNNetmeraUser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNNetmeraUser.m; sourceTree = "<group>"; };
37
- 1DC61EEF225A424F00FEB171 /* RNNetmeraEvent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNNetmeraEvent.h; sourceTree = "<group>"; };
38
- 1DC61EF0225A424F00FEB171 /* RNNetmeraEvent.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNNetmeraEvent.m; sourceTree = "<group>"; };
39
- 1DEEC2DE2546E33B00142C61 /* libRNNetmera.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNNetmera.a; sourceTree = BUILT_PRODUCTS_DIR; };
40
- B3E7B5881CC2AC0600A0062D /* RNNetmera.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNetmera.h; sourceTree = "<group>"; };
41
- B3E7B5891CC2AC0600A0062D /* RNNetmera.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNetmera.m; sourceTree = "<group>"; };
42
- /* End PBXFileReference section */
43
-
44
- /* Begin PBXFrameworksBuildPhase section */
45
- 58B511D81A9E6C8500147676 /* Frameworks */ = {
46
- isa = PBXFrameworksBuildPhase;
47
- buildActionMask = 2147483647;
48
- files = (
49
- );
50
- runOnlyForDeploymentPostprocessing = 0;
51
- };
52
- /* End PBXFrameworksBuildPhase section */
53
-
54
- /* Begin PBXGroup section */
55
- 134814211AA4EA7D00B7C361 /* Products */ = {
56
- isa = PBXGroup;
57
- children = (
58
- 134814201AA4EA6300B7C361 /* libRNNetmera.a */,
59
- );
60
- name = Products;
61
- sourceTree = "<group>";
62
- };
63
- 1DEEC2DD2546E33B00142C61 /* Frameworks */ = {
64
- isa = PBXGroup;
65
- children = (
66
- 1DEEC2DE2546E33B00142C61 /* libRNNetmera.a */,
67
- );
68
- name = Frameworks;
69
- sourceTree = "<group>";
70
- };
71
- 58B511D21A9E6C8500147676 = {
72
- isa = PBXGroup;
73
- children = (
74
- 1D2C263E243DC9E3002E230A /* RNNetmeraRCTEventEmitter.h */,
75
- 1D2C263F243DC9E3002E230A /* RNNetmeraRCTEventEmitter.m */,
76
- 1D35D7F222E4FCE6006B07E6 /* RNNetmeraUtils.h */,
77
- 1D35D7F322E4FCE6006B07E6 /* RNNetmeraUtils.m */,
78
- 1D3CCF982269F935004A06A1 /* RNNetmeraUser.h */,
79
- 1D3CCF992269F935004A06A1 /* RNNetmeraUser.m */,
80
- 1DC61EEF225A424F00FEB171 /* RNNetmeraEvent.h */,
81
- 1DC61EF0225A424F00FEB171 /* RNNetmeraEvent.m */,
82
- B3E7B5881CC2AC0600A0062D /* RNNetmera.h */,
83
- B3E7B5891CC2AC0600A0062D /* RNNetmera.m */,
84
- 134814211AA4EA7D00B7C361 /* Products */,
85
- 1DEEC2DD2546E33B00142C61 /* Frameworks */,
86
- );
87
- sourceTree = "<group>";
88
- };
89
- /* End PBXGroup section */
90
-
91
- /* Begin PBXNativeTarget section */
92
- 58B511DA1A9E6C8500147676 /* RNNetmera */ = {
93
- isa = PBXNativeTarget;
94
- buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNNetmera" */;
95
- buildPhases = (
96
- 58B511D71A9E6C8500147676 /* Sources */,
97
- 58B511D81A9E6C8500147676 /* Frameworks */,
98
- 58B511D91A9E6C8500147676 /* CopyFiles */,
99
- );
100
- buildRules = (
101
- );
102
- dependencies = (
103
- );
104
- name = RNNetmera;
105
- productName = RCTDataManager;
106
- productReference = 134814201AA4EA6300B7C361 /* libRNNetmera.a */;
107
- productType = "com.apple.product-type.library.static";
108
- };
109
- /* End PBXNativeTarget section */
110
-
111
- /* Begin PBXProject section */
112
- 58B511D31A9E6C8500147676 /* Project object */ = {
113
- isa = PBXProject;
114
- attributes = {
115
- LastUpgradeCheck = 1140;
116
- ORGANIZATIONNAME = Facebook;
117
- TargetAttributes = {
118
- 58B511DA1A9E6C8500147676 = {
119
- CreatedOnToolsVersion = 6.1.1;
120
- };
121
- };
122
- };
123
- buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNNetmera" */;
124
- compatibilityVersion = "Xcode 3.2";
125
- developmentRegion = English;
126
- hasScannedForEncodings = 0;
127
- knownRegions = (
128
- English,
129
- en,
130
- );
131
- mainGroup = 58B511D21A9E6C8500147676;
132
- productRefGroup = 58B511D21A9E6C8500147676;
133
- projectDirPath = "";
134
- projectRoot = "";
135
- targets = (
136
- 58B511DA1A9E6C8500147676 /* RNNetmera */,
137
- );
138
- };
139
- /* End PBXProject section */
140
-
141
- /* Begin PBXSourcesBuildPhase section */
142
- 58B511D71A9E6C8500147676 /* Sources */ = {
143
- isa = PBXSourcesBuildPhase;
144
- buildActionMask = 2147483647;
145
- files = (
146
- 1D35D7F422E4FCE6006B07E6 /* RNNetmeraUtils.m in Sources */,
147
- 1D3CCF9A2269F935004A06A1 /* RNNetmeraUser.m in Sources */,
148
- B3E7B58A1CC2AC0600A0062D /* RNNetmera.m in Sources */,
149
- 1D2C2640243DC9E3002E230A /* RNNetmeraRCTEventEmitter.m in Sources */,
150
- 1DC61EF1225A424F00FEB171 /* RNNetmeraEvent.m in Sources */,
151
- );
152
- runOnlyForDeploymentPostprocessing = 0;
153
- };
154
- /* End PBXSourcesBuildPhase section */
155
-
156
- /* Begin XCBuildConfiguration section */
157
- 58B511ED1A9E6C8500147676 /* Debug */ = {
158
- isa = XCBuildConfiguration;
159
- buildSettings = {
160
- ALWAYS_SEARCH_USER_PATHS = NO;
161
- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
162
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
163
- CLANG_CXX_LIBRARY = "libc++";
164
- CLANG_ENABLE_MODULES = YES;
165
- CLANG_ENABLE_OBJC_ARC = YES;
166
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
167
- CLANG_WARN_BOOL_CONVERSION = YES;
168
- CLANG_WARN_COMMA = YES;
169
- CLANG_WARN_CONSTANT_CONVERSION = YES;
170
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
171
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
172
- CLANG_WARN_EMPTY_BODY = YES;
173
- CLANG_WARN_ENUM_CONVERSION = YES;
174
- CLANG_WARN_INFINITE_RECURSION = YES;
175
- CLANG_WARN_INT_CONVERSION = YES;
176
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
177
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
178
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
179
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
180
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
181
- CLANG_WARN_STRICT_PROTOTYPES = YES;
182
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
183
- CLANG_WARN_UNREACHABLE_CODE = YES;
184
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185
- COPY_PHASE_STRIP = NO;
186
- ENABLE_STRICT_OBJC_MSGSEND = YES;
187
- ENABLE_TESTABILITY = YES;
188
- GCC_C_LANGUAGE_STANDARD = gnu99;
189
- GCC_DYNAMIC_NO_PIC = NO;
190
- GCC_NO_COMMON_BLOCKS = YES;
191
- GCC_OPTIMIZATION_LEVEL = 0;
192
- GCC_PREPROCESSOR_DEFINITIONS = (
193
- "DEBUG=1",
194
- "$(inherited)",
195
- );
196
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
197
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
198
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
199
- GCC_WARN_UNDECLARED_SELECTOR = YES;
200
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
201
- GCC_WARN_UNUSED_FUNCTION = YES;
202
- GCC_WARN_UNUSED_VARIABLE = YES;
203
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
204
- MTL_ENABLE_DEBUG_INFO = YES;
205
- ONLY_ACTIVE_ARCH = YES;
206
- SDKROOT = iphoneos;
207
- };
208
- name = Debug;
209
- };
210
- 58B511EE1A9E6C8500147676 /* Release */ = {
211
- isa = XCBuildConfiguration;
212
- buildSettings = {
213
- ALWAYS_SEARCH_USER_PATHS = NO;
214
- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
215
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
216
- CLANG_CXX_LIBRARY = "libc++";
217
- CLANG_ENABLE_MODULES = YES;
218
- CLANG_ENABLE_OBJC_ARC = YES;
219
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
220
- CLANG_WARN_BOOL_CONVERSION = YES;
221
- CLANG_WARN_COMMA = YES;
222
- CLANG_WARN_CONSTANT_CONVERSION = YES;
223
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
224
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
225
- CLANG_WARN_EMPTY_BODY = YES;
226
- CLANG_WARN_ENUM_CONVERSION = YES;
227
- CLANG_WARN_INFINITE_RECURSION = YES;
228
- CLANG_WARN_INT_CONVERSION = YES;
229
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
230
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
231
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
232
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
233
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
234
- CLANG_WARN_STRICT_PROTOTYPES = YES;
235
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
236
- CLANG_WARN_UNREACHABLE_CODE = YES;
237
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
238
- COPY_PHASE_STRIP = YES;
239
- ENABLE_NS_ASSERTIONS = NO;
240
- ENABLE_STRICT_OBJC_MSGSEND = YES;
241
- GCC_C_LANGUAGE_STANDARD = gnu99;
242
- GCC_NO_COMMON_BLOCKS = YES;
243
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
244
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
245
- GCC_WARN_UNDECLARED_SELECTOR = YES;
246
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
247
- GCC_WARN_UNUSED_FUNCTION = YES;
248
- GCC_WARN_UNUSED_VARIABLE = YES;
249
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
250
- MTL_ENABLE_DEBUG_INFO = NO;
251
- SDKROOT = iphoneos;
252
- VALIDATE_PRODUCT = YES;
253
- };
254
- name = Release;
255
- };
256
- 58B511F01A9E6C8500147676 /* Debug */ = {
257
- isa = XCBuildConfiguration;
258
- buildSettings = {
259
- HEADER_SEARCH_PATHS = (
260
- "$(inherited)/**",
261
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
262
- "$(SRCROOT)/../../../React/**",
263
- "$(SRCROOT)/../../react-native/React/**",
264
- );
265
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
266
- LD_RUNPATH_SEARCH_PATHS = "$executable_path/Frameworks $(inherited)";
267
- LIBRARY_SEARCH_PATHS = "$(inherited)";
268
- OTHER_LDFLAGS = "-ObjC";
269
- PRODUCT_NAME = RNNetmera;
270
- SKIP_INSTALL = YES;
271
- };
272
- name = Debug;
273
- };
274
- 58B511F11A9E6C8500147676 /* Release */ = {
275
- isa = XCBuildConfiguration;
276
- buildSettings = {
277
- HEADER_SEARCH_PATHS = (
278
- "$(inherited)/**",
279
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
280
- "$(SRCROOT)/../../../React/**",
281
- "$(SRCROOT)/../../react-native/React/**",
282
- );
283
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
284
- LD_RUNPATH_SEARCH_PATHS = "$executable_path/Frameworks $(inherited)";
285
- LIBRARY_SEARCH_PATHS = "$(inherited)";
286
- OTHER_LDFLAGS = "-ObjC";
287
- PRODUCT_NAME = RNNetmera;
288
- SKIP_INSTALL = YES;
289
- };
290
- name = Release;
291
- };
292
- /* End XCBuildConfiguration section */
293
-
294
- /* Begin XCConfigurationList section */
295
- 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNNetmera" */ = {
296
- isa = XCConfigurationList;
297
- buildConfigurations = (
298
- 58B511ED1A9E6C8500147676 /* Debug */,
299
- 58B511EE1A9E6C8500147676 /* Release */,
300
- );
301
- defaultConfigurationIsVisible = 0;
302
- defaultConfigurationName = Release;
303
- };
304
- 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNNetmera" */ = {
305
- isa = XCConfigurationList;
306
- buildConfigurations = (
307
- 58B511F01A9E6C8500147676 /* Debug */,
308
- 58B511F11A9E6C8500147676 /* Release */,
309
- );
310
- defaultConfigurationIsVisible = 0;
311
- defaultConfigurationName = Release;
312
- };
313
- /* End XCConfigurationList section */
314
- };
315
- rootObject = 58B511D31A9E6C8500147676 /* Project object */;
316
- }
@@ -1,67 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1140"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
18
- BuildableName = "libRNNetmera.a"
19
- BlueprintName = "RNNetmera"
20
- ReferencedContainer = "container:RNNetmera.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- </Testables>
32
- </TestAction>
33
- <LaunchAction
34
- buildConfiguration = "Debug"
35
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37
- launchStyle = "0"
38
- useCustomWorkingDirectory = "NO"
39
- ignoresPersistentStateOnLaunch = "NO"
40
- debugDocumentVersioning = "YES"
41
- debugServiceExtension = "internal"
42
- allowLocationSimulation = "YES">
43
- </LaunchAction>
44
- <ProfileAction
45
- buildConfiguration = "Release"
46
- shouldUseLaunchSchemeArgsEnv = "YES"
47
- savedToolIdentifier = ""
48
- useCustomWorkingDirectory = "NO"
49
- debugDocumentVersioning = "YES">
50
- <MacroExpansion>
51
- <BuildableReference
52
- BuildableIdentifier = "primary"
53
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
54
- BuildableName = "libRNNetmera.a"
55
- BlueprintName = "RNNetmera"
56
- ReferencedContainer = "container:RNNetmera.xcodeproj">
57
- </BuildableReference>
58
- </MacroExpansion>
59
- </ProfileAction>
60
- <AnalyzeAction
61
- buildConfiguration = "Debug">
62
- </AnalyzeAction>
63
- <ArchiveAction
64
- buildConfiguration = "Release"
65
- revealArchiveInOrganizer = "YES">
66
- </ArchiveAction>
67
- </Scheme>
@@ -1,9 +0,0 @@
1
- // !$*UTF8*$!
2
- <?xml version="1.0" encoding="UTF-8"?>
3
- <Workspace
4
- version = "1.0">
5
- <FileRef
6
- location = "group:RNNetmera.xcodeproj">
7
- </FileRef>
8
- </Workspace>
9
-
@@ -1,16 +0,0 @@
1
- //
2
- // RNNetmeraCategoryObject.h
3
- // Netmera SDK
4
- //
5
- // Created by Ensar Bayhan on 06.01.2022.
6
- // Copyright © 2022 Netmera. All rights reserved.
7
- //
8
-
9
- #import <Netmera/Netmera.h>
10
-
11
- @interface RNNetmeraCategoryObject : NSObject
12
-
13
- +(NSArray<NSDictionary*>*) mapCategoryObjects: (NSMutableArray<NetmeraInboxCategoryObject *>*) categoryObjects;
14
- +(NetmeraInboxCategoryFilter*) getCategoryObject: (NSDictionary*) inboxDictionary;
15
-
16
- @end
@@ -1,59 +0,0 @@
1
- //
2
- // RNNetmeraCategoryObject.m
3
- // Netmera SDK
4
- //
5
- // Created by Ensar Bayhan on 06.01.2022.
6
- // Copyright © 2022 Netmera. All rights reserved.
7
- //
8
-
9
- #import "RNNetmeraCategoryObject.h"
10
- #import "RNNetmeraUtils.h"
11
-
12
- @implementation RNNetmeraCategoryObject
13
-
14
- +(NSArray<NSDictionary*>*) mapCategoryObjects: (NSMutableArray<NetmeraInboxCategoryObject *>*) categoryObjects {
15
- NSMutableArray<NSDictionary*> *categoryObjectList = [[NSMutableArray alloc]init];
16
- for (int i = 0; i < [categoryObjects count]; i++) {
17
- [categoryObjectList addObject: [self getCategoryObjectMap:categoryObjects[i]]];
18
- }
19
- return categoryObjectList;
20
- }
21
-
22
- +(NSDictionary*) getCategoryObjectMap:(NetmeraInboxCategoryObject*) categoryObject {
23
- NSMutableDictionary *data = [NSMutableDictionary dictionary];
24
- [data setValue:[categoryObject categoryName] forKey:@"categoryName"];
25
- [data setValue:@([[categoryObject status] readCount]) forKey:@"readCount"];
26
- [data setValue:@([[categoryObject status] unreadCount]) forKey:@"unreadCount"];
27
- [data setValue:@([[categoryObject status] deletedCount]) forKey:@"deletedCount"];
28
- NSDictionary * lastMsg = [[RNNetmeraUtils shared] dictionaryFromPushObject:[categoryObject lastMessage]];
29
-
30
- NSError *error;
31
- NSData *dataxx = [NSJSONSerialization dataWithJSONObject:lastMsg options:0 error:&error];
32
- NSString *jsonStr = [[NSString alloc] initWithData:dataxx encoding:NSUTF8StringEncoding];
33
-
34
- [data setValue:jsonStr forKey:@"lastMessage"];
35
- //[data setValue:[jsonData toJSONString] forKey:@"categoryStatus"];
36
-
37
- return data;
38
- }
39
-
40
- +(NetmeraInboxCategoryFilter*) getCategoryObject: (NSDictionary*) inboxDictionary{
41
- NetmeraInboxCategoryFilter *filter = [[NetmeraInboxCategoryFilter alloc] init];
42
-
43
- if(inboxDictionary[@"status"]){
44
- NetmeraInboxStatus netmeraInboxStatus =[inboxDictionary[@"status"] integerValue];
45
- filter.status = netmeraInboxStatus;
46
- }
47
-
48
- if(inboxDictionary[@"pageSize"]){
49
- filter.pageSize = [inboxDictionary[@"pageSize"] intValue];
50
- }
51
-
52
- if(inboxDictionary[@"includeExpiredObjects"]){
53
- filter.shouldIncludeExpiredObjects = [inboxDictionary[@"includeExpiredObjects"] boolValue];
54
- }
55
-
56
- return filter;
57
- }
58
-
59
- @end
@@ -1,17 +0,0 @@
1
- //
2
- // RNNetmeraEvent.h
3
- // Netmera SDK
4
- //
5
- // Created by Huseyin Kocoglu on 22.04.2019.
6
- // Copyright © 2019 Netmera. All rights reserved.
7
- //
8
-
9
-
10
- #import <NetmeraCore/NetmeraEvent.h>
11
-
12
- @interface RNNetmeraEvent : NetmeraEvent
13
-
14
- @property (nonatomic, strong) NSString *netmeraEventKey;
15
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> *eventParameters;
16
-
17
- @end
@@ -1,27 +0,0 @@
1
- //
2
- // RNNetmeraEvent.m
3
- // Netmera SDK
4
- //
5
- // Created by Huseyin Kocoglu on 22.04.2019.
6
- // Copyright © 2019 Netmera. All rights reserved.
7
- //
8
-
9
- #import "RNNetmeraEvent.h"
10
-
11
- @implementation RNNetmeraEvent
12
-
13
- - (NSString *)eventKey {
14
- if (super.eventKey != nil) {
15
- return super.eventKey;
16
- } else {
17
- return _netmeraEventKey;
18
- }
19
- }
20
-
21
- + (NSDictionary *)keyPathPropertySelectorMapping {
22
- return @{
23
- @"prms" : NSStringFromSelector(@selector(eventParameters)),
24
- };
25
- }
26
-
27
- @end
@@ -1,23 +0,0 @@
1
- //
2
- // RNNetmeraRCTEventEmitter.h
3
- //
4
- // Created by Initial Code
5
- // Copyright © 2019 Netmera. All rights reserved.
6
- //
7
-
8
- #import <React/RCTBridgeModule.h>
9
- #import <React/RCTEventEmitter.h>
10
- #import <Netmera/Netmera.h>
11
-
12
- @interface RNNetmeraRCTEventEmitter : RCTEventEmitter <RCTBridgeModule>
13
-
14
- +(NSURL *) getInitialUrl;
15
- +(void) handleOpenURL:(NSURL *)url forPushObject:(NetmeraPushObject *)object;
16
- +(void) onDeeplinkTriggered:(NSURL *)url;
17
- +(void) onPushRegister:(NSDictionary*)dict;
18
- +(void) onPushReceive:(NSDictionary*)dict;
19
- +(void) onPushDismiss:(NSDictionary*)dict;
20
- +(void) onPushOpen:(NSDictionary *)dict;
21
-
22
- @end
23
-
@@ -1,142 +0,0 @@
1
- //
2
- // RNNetmeraRCTEventEmitter.m
3
- //
4
- // Created by Initial Code
5
- // Copyright © 2019 Netmera. All rights reserved.
6
- //
7
-
8
- #import "RNNetmeraRCTEventEmitter.h"
9
-
10
- @implementation RNNetmeraRCTEventEmitter
11
-
12
- RCT_EXPORT_MODULE();
13
-
14
- bool isReactBridgeInitialized;
15
-
16
- NSURL* waitingDeeplink = nil;
17
- NSDictionary* waitingOnPushRegister = nil;
18
- NSDictionary* waitingOnPushReceive = nil;
19
- NSDictionary* waitingOnPushOpen = nil;
20
- NSDictionary* waitingOnPushDismiss = nil;
21
-
22
- -(void)startObserving {
23
- isReactBridgeInitialized = YES;
24
-
25
- if (waitingOnPushRegister != nil) {
26
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushRegister" object:nil userInfo: waitingOnPushRegister];
27
- waitingOnPushRegister = nil;
28
- }
29
- if (waitingOnPushReceive != nil) {
30
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushReceive" object:nil userInfo: waitingOnPushReceive];
31
- waitingOnPushReceive = nil;
32
- }
33
- if (waitingOnPushOpen != nil) {
34
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushOpen" object:nil userInfo: waitingOnPushOpen];
35
- waitingOnPushOpen = nil;
36
- }
37
- if (waitingOnPushDismiss != nil) {
38
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushDismiss" object:nil userInfo: waitingOnPushDismiss];
39
- waitingOnPushDismiss = nil;
40
- }
41
- }
42
-
43
- -(void)stopObserving {
44
- isReactBridgeInitialized = NO;
45
- }
46
-
47
- - (NSArray<NSString *> *)supportedEvents
48
- {
49
- return @[@"onWidgetUrlTriggered", @"onPushReceive", @"onPushOpen", @"onPushRegister", @"onPushDismiss"];
50
- }
51
-
52
- + (BOOL)requiresMainQueueSetup
53
- {
54
- return NO;
55
- }
56
-
57
- -(instancetype)init {
58
- if (self = [super init]) {
59
- for (NSString *eventName in [self supportedEvents])
60
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(emitEvent:) name:eventName object:nil];
61
- }
62
-
63
- return self;
64
- }
65
-
66
- - (void)emitEvent:(NSNotification *)notification {
67
- if (isReactBridgeInitialized) {
68
- [self sendEventWithName:notification.name body:notification.userInfo];
69
- }
70
- }
71
-
72
- + (NSURL * _Nullable)getInitialUrl {
73
- return waitingDeeplink;
74
- }
75
-
76
- + (void)handleOpenURL:(NSURL *)url forPushObject:(NetmeraPushObject *)object {
77
- if (object.pushType == NetmeraPushTypeWebWidget) {
78
- NSDictionary* urlDictionary = @{@"url" : url.absoluteString};
79
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onWidgetUrlTriggered" object:nil userInfo:urlDictionary];
80
- }
81
- }
82
-
83
- + (void)onDeeplinkTriggered:(NSURL *)url {
84
- if (!isReactBridgeInitialized) {
85
- waitingDeeplink = url;
86
- }
87
- }
88
-
89
- + (void)onPushRegister:(NSDictionary *)body {
90
- NSData *deviceToken = body[@"pushToken"];
91
- const unsigned char *bytes = deviceToken.bytes;
92
-
93
- NSMutableString *deviceTokenString = [NSMutableString string];
94
- for (NSUInteger i = 0; i < deviceToken.length; i++) {
95
- [deviceTokenString appendFormat:@"%02x", bytes[i]];
96
- }
97
- NSDictionary* pushToken = @{@"pushToken" : deviceTokenString};
98
-
99
- if (isReactBridgeInitialized) {
100
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushRegister" object:nil userInfo:pushToken];
101
- } else {
102
- waitingOnPushRegister = pushToken;
103
- }
104
- }
105
-
106
- + (void)onPushReceive:(NSDictionary *)body {
107
- if ([[body objectForKey:@"userInfo"] objectForKey:@"_nm"] == nil) {
108
- return;
109
- }
110
-
111
- if (isReactBridgeInitialized) {
112
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushReceive" object:nil userInfo:body];
113
- } else {
114
- waitingOnPushReceive = body;
115
- }
116
- }
117
-
118
- + (void)onPushOpen:(NSDictionary *)body {
119
- if ([[body objectForKey:@"userInfo"] objectForKey:@"_nm"] == nil) {
120
- return;
121
- }
122
-
123
- if (isReactBridgeInitialized) {
124
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushOpen" object:nil userInfo:body];
125
- } else {
126
- waitingOnPushOpen = body;
127
- }
128
- }
129
-
130
- + (void)onPushDismiss:(NSDictionary *)body {
131
- if ([[body objectForKey:@"userInfo"] objectForKey:@"_nm"] == nil) {
132
- return;
133
- }
134
-
135
- if (isReactBridgeInitialized) {
136
- [[NSNotificationCenter defaultCenter] postNotificationName:@"onPushDismiss" object:nil userInfo:body];
137
- } else {
138
- waitingOnPushDismiss = body;
139
- }
140
- }
141
-
142
- @end