@axelor/aos-mobile-core 8.2.5 → 8.2.7

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 (352) hide show
  1. package/lib/api/anomaly-api.js +1 -1
  2. package/lib/api/app-config-api.js +1 -1
  3. package/lib/api/attached-files-api.js +1 -1
  4. package/lib/api/login-api.d.ts +11 -0
  5. package/lib/api/login-api.js +28 -16
  6. package/lib/api/login-api.js.map +1 -1
  7. package/lib/api/mail-message-api.js +1 -1
  8. package/lib/api/meta-module-api.js +1 -1
  9. package/lib/api/metafile-api.js +1 -1
  10. package/lib/api/model-api.js +1 -1
  11. package/lib/api/net-info-utils.js +1 -1
  12. package/lib/api/print-template-api.js +1 -1
  13. package/lib/api/traceback-api.js +1 -1
  14. package/lib/api/user-api.js +1 -1
  15. package/lib/apiProviders/Action/ActionApiProvider.js +1 -1
  16. package/lib/apiProviders/Action/ActionProvider.js +1 -1
  17. package/lib/apiProviders/Action/AosActionApi.js +1 -1
  18. package/lib/apiProviders/Action/GatewayActionApi.js +1 -1
  19. package/lib/apiProviders/Action/index.js +1 -1
  20. package/lib/apiProviders/Action/utils.js +1 -1
  21. package/lib/apiProviders/Model/AopModelApi.js +1 -1
  22. package/lib/apiProviders/Model/GatewayModelApi.js +1 -1
  23. package/lib/apiProviders/Model/ModelApiProvider.js +1 -1
  24. package/lib/apiProviders/Model/Provider.js +1 -1
  25. package/lib/apiProviders/Model/index.js +1 -1
  26. package/lib/apiProviders/Model/utils.d.ts +1 -1
  27. package/lib/apiProviders/Model/utils.js +1 -1
  28. package/lib/apiProviders/Standard/AxiosProvider.js +1 -1
  29. package/lib/apiProviders/Standard/ObjectFieldsProvider.js +1 -1
  30. package/lib/apiProviders/Standard/index.d.ts +1 -1
  31. package/lib/apiProviders/Standard/index.js +2 -2
  32. package/lib/apiProviders/Standard/index.js.map +1 -1
  33. package/lib/apiProviders/Standard/requests.helper.d.ts +7 -0
  34. package/lib/apiProviders/Standard/requests.helper.js +71 -1
  35. package/lib/apiProviders/Standard/requests.helper.js.map +1 -1
  36. package/lib/apiProviders/config.js +1 -1
  37. package/lib/apiProviders/index.d.ts +1 -0
  38. package/lib/apiProviders/index.js +2 -1
  39. package/lib/apiProviders/index.js.map +1 -1
  40. package/lib/apiProviders/middlewares/fieldParser.js +1 -1
  41. package/lib/apiProviders/middlewares/index.js +1 -1
  42. package/lib/apiProviders/middlewares/translation.js +1 -1
  43. package/lib/apiProviders/utils.js +1 -1
  44. package/lib/app/Application.js +1 -1
  45. package/lib/app/ContextedApplication.js +1 -1
  46. package/lib/app/ContextsProvider.js +1 -1
  47. package/lib/app/RootNavigator.js +1 -1
  48. package/lib/app/context.helper.js +1 -1
  49. package/lib/app/index.js +1 -1
  50. package/lib/app/module-generation.helper.js +1 -1
  51. package/lib/app/modules/ModuleProvider.js +1 -1
  52. package/lib/app/modules/hooks.js +1 -1
  53. package/lib/app/modules/index.js +1 -1
  54. package/lib/app/modules/types.js +1 -1
  55. package/lib/app/types.js +1 -1
  56. package/lib/auth/api/company-api.js +1 -1
  57. package/lib/auth/api/config-api.js +1 -1
  58. package/lib/auth/api/index.js +1 -1
  59. package/lib/auth/api/localization-api.js +1 -1
  60. package/lib/auth/api/user-api.js +1 -1
  61. package/lib/auth/components/index.js +1 -1
  62. package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.js +1 -1
  63. package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.js +1 -1
  64. package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.js +1 -1
  65. package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js +1 -1
  66. package/lib/auth/components/molecules/UserCard/UserCard.js +1 -1
  67. package/lib/auth/components/molecules/index.js +1 -1
  68. package/lib/auth/features/asyncFunctionsIndex.js +1 -1
  69. package/lib/auth/features/companySlice.js +1 -1
  70. package/lib/auth/features/configSlice.js +1 -1
  71. package/lib/auth/features/index.js +1 -1
  72. package/lib/auth/features/localizationSlice.js +1 -1
  73. package/lib/auth/features/userSlice.js +1 -1
  74. package/lib/auth/hooks/use-auth-headers.js +1 -1
  75. package/lib/auth/index.js +1 -1
  76. package/lib/auth/models/index.js +1 -1
  77. package/lib/auth/models/objectFields.js +1 -1
  78. package/lib/auth/screens/SettingsScreen.js +1 -1
  79. package/lib/auth/screens/UserScreen.js +1 -1
  80. package/lib/auth/screens/index.js +1 -1
  81. package/lib/components/external/Camera/Camera.js +1 -1
  82. package/lib/components/external/Camera/CaptureButton.js +1 -1
  83. package/lib/components/external/CodeHighlighter/CodeHighlighter.js +1 -1
  84. package/lib/components/external/CodeHighlighter/code-highlighter.helper.js +1 -1
  85. package/lib/components/external/PlanningView/AgendaItemDisplay.js +1 -1
  86. package/lib/components/external/PlanningView/DayDisplay.js +1 -1
  87. package/lib/components/external/PlanningView/MonthDisplay.js +1 -1
  88. package/lib/components/external/PlanningView/NavigationButton.js +1 -1
  89. package/lib/components/external/PlanningView/PlanningView.js +1 -1
  90. package/lib/components/external/PlanningView/agenda.helpers.js +1 -1
  91. package/lib/components/external/Scanner/Scanner.d.ts +1 -1
  92. package/lib/components/external/Scanner/Scanner.js +88 -39
  93. package/lib/components/external/Scanner/Scanner.js.map +1 -1
  94. package/lib/components/external/Scanner/intent.helpers.d.ts +11 -0
  95. package/lib/components/external/Scanner/intent.helpers.js +43 -0
  96. package/lib/components/external/Scanner/intent.helpers.js.map +1 -0
  97. package/lib/components/external/Scanner/path.helpers.d.ts +15 -0
  98. package/lib/components/external/Scanner/path.helpers.js +35 -0
  99. package/lib/components/external/Scanner/path.helpers.js.map +1 -0
  100. package/lib/components/external/Stopwatch/Stopwatch.js +1 -1
  101. package/lib/components/external/Timer/Timer.js +1 -1
  102. package/lib/components/external/Toast/Toast.js +1 -1
  103. package/lib/components/external/Toast/ToastProvider.js +1 -1
  104. package/lib/components/external/Toast/index.js +1 -1
  105. package/lib/components/external/WebView/WebView.js +1 -1
  106. package/lib/components/external/index.js +1 -1
  107. package/lib/components/index.js +1 -1
  108. package/lib/components/molecules/CameraButton/CameraButton.js +1 -1
  109. package/lib/components/molecules/DateDisplay/DateDisplay.js +1 -1
  110. package/lib/components/molecules/DatePicker/DatePicker.js +1 -1
  111. package/lib/components/molecules/FocusScreen/FocusScreen.js +1 -1
  112. package/lib/components/molecules/HeaderBand/HeaderBand.js +1 -1
  113. package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js +1 -1
  114. package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js +1 -1
  115. package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.js +1 -1
  116. package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js +10 -4
  117. package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js.map +1 -1
  118. package/lib/components/molecules/TrackItem/TrackItem.js +1 -1
  119. package/lib/components/molecules/UploadFileInput/UploadFileInput.js +1 -1
  120. package/lib/components/molecules/index.js +1 -1
  121. package/lib/components/organisms/AOSImage/AOSImage.js +1 -1
  122. package/lib/components/organisms/AOSImageBubble/AOSImageBubble.js +1 -1
  123. package/lib/components/organisms/AnomalyBubble/AnomalyBubble.js +1 -1
  124. package/lib/components/organisms/AnomalyList/AnomalyList.js +1 -1
  125. package/lib/components/organisms/DateInput/DateInput.js +1 -1
  126. package/lib/components/organisms/DateInput/date-input.helper.js +1 -1
  127. package/lib/components/organisms/HeaderBandList/HeaderBandList.js +1 -1
  128. package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +1 -1
  129. package/lib/components/organisms/MailMessageCard/MailMessageCard.js +1 -1
  130. package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.js +1 -1
  131. package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.js +1 -1
  132. package/lib/components/organisms/PopupPrintTemplate/PopupPrintTemplate.js +1 -1
  133. package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +1 -1
  134. package/lib/components/organisms/SignatureInput/PictureIcon.js +1 -1
  135. package/lib/components/organisms/SignatureInput/SignatureInput.js +1 -1
  136. package/lib/components/organisms/index.js +1 -1
  137. package/lib/components/pages/CustomFieldForm/CustomFieldForm.js +1 -1
  138. package/lib/components/pages/FormView/Alerts/ConfirmationPopup.js +1 -1
  139. package/lib/components/pages/FormView/Alerts/ConstraintsValidatorPopup.js +1 -1
  140. package/lib/components/pages/FormView/Alerts/index.js +1 -1
  141. package/lib/components/pages/FormView/Buttons/FloatingTools.js +1 -1
  142. package/lib/components/pages/FormView/Buttons/index.js +1 -1
  143. package/lib/components/pages/FormView/Components/Field.js +1 -1
  144. package/lib/components/pages/FormView/Components/Panel.js +1 -1
  145. package/lib/components/pages/FormView/Components/index.js +1 -1
  146. package/lib/components/pages/FormView/Custom/CustomButton.js +1 -1
  147. package/lib/components/pages/FormView/Custom/CustomPasswordInput.js +1 -1
  148. package/lib/components/pages/FormView/Custom/CustomPicker.js +1 -1
  149. package/lib/components/pages/FormView/Custom/CustomSearchBar.js +1 -1
  150. package/lib/components/pages/FormView/Custom/CustomTagList.js +1 -1
  151. package/lib/components/pages/FormView/Custom/index.js +1 -1
  152. package/lib/components/pages/FormView/FormView.js +1 -1
  153. package/lib/components/pages/index.js +1 -1
  154. package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +1 -1
  155. package/lib/components/templates/GlobalToolBox/GlobalToolBox.js +1 -1
  156. package/lib/components/templates/MailMessageView/MailMessageView.js +1 -1
  157. package/lib/components/templates/PeriodInput/PeriodInput.d.ts +7 -4
  158. package/lib/components/templates/PeriodInput/PeriodInput.js +18 -5
  159. package/lib/components/templates/PeriodInput/PeriodInput.js.map +1 -1
  160. package/lib/components/templates/PopupApplicationInformation/PopupApplicationInformation.js +1 -1
  161. package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.js +1 -1
  162. package/lib/components/templates/PrintTemplateSearchBar/PrintTemplateSearchBar.js +1 -1
  163. package/lib/components/templates/SearchListView/SearchListView.js +1 -1
  164. package/lib/components/templates/SearchTreeView/SearchTreeView.js +1 -1
  165. package/lib/components/templates/SingleSelectSearchListView/SingleSelectSearchListView.js +1 -1
  166. package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js +1 -1
  167. package/lib/components/templates/UserSearchBar/UserSearchBar.js +1 -1
  168. package/lib/components/templates/index.js +1 -1
  169. package/lib/config/RouterProvider.js +1 -1
  170. package/lib/config/index.js +1 -1
  171. package/lib/config/routes.js +1 -1
  172. package/lib/dashboards/api.helpers.js +1 -1
  173. package/lib/dashboards/component/AOPChart/AOPChart.js +1 -1
  174. package/lib/dashboards/component/AOPChart/DynamicSearchForm.js +1 -1
  175. package/lib/dashboards/component/AOPChart/api.helpers.js +1 -1
  176. package/lib/dashboards/component/AOPChart/format.helpers.js +1 -1
  177. package/lib/dashboards/component/RefreshChart/RefreshChart.js +1 -1
  178. package/lib/dashboards/component/index.js +1 -1
  179. package/lib/dashboards/display.helpers.js +1 -1
  180. package/lib/dashboards/index.js +1 -1
  181. package/lib/dashboards/menu.helpers.js +1 -1
  182. package/lib/dashboards/view/DashboardScreen.js +1 -1
  183. package/lib/dashboards/view/DashboardView.js +1 -1
  184. package/lib/dashboards/view/index.js +1 -1
  185. package/lib/features/appConfigSlice.js +1 -1
  186. package/lib/features/attachedFilesSlice.js +1 -1
  187. package/lib/features/authSlice.js +4 -5
  188. package/lib/features/authSlice.js.map +1 -1
  189. package/lib/features/cameraScannerSlice.js +1 -1
  190. package/lib/features/cameraSlice.js +1 -1
  191. package/lib/features/formSlice.js +1 -1
  192. package/lib/features/index.js +1 -1
  193. package/lib/features/mailMessageSlice.js +1 -1
  194. package/lib/features/metaJsonFieldSlice.js +1 -1
  195. package/lib/features/metaModuleSlice.js +1 -1
  196. package/lib/features/metafileSlice.js +1 -1
  197. package/lib/features/onlineSlice.js +1 -1
  198. package/lib/features/permissionSlice.js +1 -1
  199. package/lib/features/printTemplateSlice.js +1 -1
  200. package/lib/features/scannerSlice.js +1 -1
  201. package/lib/features/userSlice.js +1 -1
  202. package/lib/forms/FormConfigsProvider.js +1 -1
  203. package/lib/forms/action.helpers.js +1 -1
  204. package/lib/forms/api.helpers.js +1 -1
  205. package/lib/forms/display.helpers.js +1 -1
  206. package/lib/forms/index.js +1 -1
  207. package/lib/forms/register.helpers.js +1 -1
  208. package/lib/forms/studio/api.helpers.js +1 -1
  209. package/lib/forms/studio/display.helpers.js +1 -1
  210. package/lib/forms/studio/formula.helpers.js +1 -1
  211. package/lib/forms/studio/index.js +1 -1
  212. package/lib/forms/studio/permission.helpers.js +1 -1
  213. package/lib/forms/types.js +1 -1
  214. package/lib/forms/validation.helpers.js +1 -1
  215. package/lib/header/HeaderActionsProvider.js +1 -1
  216. package/lib/header/HeaderBandContext.js +1 -1
  217. package/lib/header/header-band-context.helper.js +1 -1
  218. package/lib/header/hooks.js +1 -1
  219. package/lib/header/index.js +1 -1
  220. package/lib/header/types.js +1 -1
  221. package/lib/header/utils.js +1 -1
  222. package/lib/hooks/use-background-function.js +1 -1
  223. package/lib/hooks/use-effect-debugger.js +1 -1
  224. package/lib/hooks/use-header-registers.js +1 -1
  225. package/lib/hooks/use-navigation.js +1 -1
  226. package/lib/hooks/use-scan-activator.js +1 -1
  227. package/lib/hooks/use-storage-config.js +1 -1
  228. package/lib/i18n/api/translation.js +1 -1
  229. package/lib/i18n/component/Translator.js +1 -1
  230. package/lib/i18n/helpers/langages.js +1 -1
  231. package/lib/i18n/helpers/translations.js +1 -1
  232. package/lib/i18n/hooks/use-translator.js +1 -1
  233. package/lib/i18n/i18n.js +1 -1
  234. package/lib/i18n/index.js +1 -1
  235. package/lib/index.d.ts +1 -0
  236. package/lib/index.js +2 -1
  237. package/lib/index.js.map +1 -1
  238. package/lib/loader/ProcessProvider.js +1 -1
  239. package/lib/loader/ProcessStorage.js +1 -1
  240. package/lib/loader/components/atoms/ProcessCard/ProcessCard.js +1 -1
  241. package/lib/loader/components/atoms/index.js +1 -1
  242. package/lib/loader/components/index.js +1 -1
  243. package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.js +1 -1
  244. package/lib/loader/components/organisms/index.js +1 -1
  245. package/lib/loader/helpers.js +1 -1
  246. package/lib/loader/hooks.js +1 -1
  247. package/lib/loader/index.js +1 -1
  248. package/lib/loader/types.js +1 -1
  249. package/lib/models/index.js +1 -1
  250. package/lib/models/objectFields.js +1 -1
  251. package/lib/models/searchFields.js +1 -1
  252. package/lib/models/sortFields.js +1 -1
  253. package/lib/navigator/ActiveScreenProvider.js +1 -1
  254. package/lib/navigator/NavigationInformationsProvider.js +1 -1
  255. package/lib/navigator/Navigator.js +4 -2
  256. package/lib/navigator/Navigator.js.map +1 -1
  257. package/lib/navigator/drawer/AuthMenuIconButton.js +1 -1
  258. package/lib/navigator/drawer/BackIcon.js +1 -1
  259. package/lib/navigator/drawer/DrawerContent.js +1 -1
  260. package/lib/navigator/drawer/DrawerToggleButton.js +1 -1
  261. package/lib/navigator/drawer/Header.js +1 -1
  262. package/lib/navigator/drawer/Menu.js +1 -1
  263. package/lib/navigator/drawer/MenuIconButton.js +1 -1
  264. package/lib/navigator/drawer/MenuItem.js +1 -1
  265. package/lib/navigator/drawer/MenuItemEntry.js +1 -1
  266. package/lib/navigator/drawer/MenuSeparator.js +1 -1
  267. package/lib/navigator/drawer/MenuTitle.js +1 -1
  268. package/lib/navigator/drawer/SubMenuItem.js +1 -1
  269. package/lib/navigator/drawer/SubMenuItemList.js +1 -1
  270. package/lib/navigator/index.js +1 -1
  271. package/lib/navigator/menu.helper.js +1 -1
  272. package/lib/navigator/module.helper.js +1 -1
  273. package/lib/permissions/api.helpers.js +1 -1
  274. package/lib/permissions/format.helpers.js +1 -1
  275. package/lib/permissions/hooks.js +1 -1
  276. package/lib/permissions/index.js +1 -1
  277. package/lib/permissions/type.helpers.js +1 -1
  278. package/lib/redux/hooks.js +1 -1
  279. package/lib/redux/store.js +1 -1
  280. package/lib/screens/AttachedFilesScreen.js +1 -1
  281. package/lib/screens/BarcodeDisplayScreen.js +1 -1
  282. package/lib/screens/ErrorScreen.js +1 -1
  283. package/lib/screens/JsonFieldScreen.js +1 -1
  284. package/lib/screens/LoginScreen.js +1 -1
  285. package/lib/screens/MailMessageScreen.js +1 -1
  286. package/lib/screens/ProcessListScreen.js +1 -1
  287. package/lib/screens/SessionManagementScreen.js +1 -1
  288. package/lib/screens/index.js +1 -1
  289. package/lib/selections/SelectionProvider.js +1 -1
  290. package/lib/selections/api.helpers.js +1 -1
  291. package/lib/selections/format.helpers.js +1 -1
  292. package/lib/selections/hooks.js +1 -1
  293. package/lib/selections/index.js +1 -1
  294. package/lib/selections/types.js +1 -1
  295. package/lib/sessions/SessionStorage.js +1 -1
  296. package/lib/sessions/components/alerts/PopupCreateSession.js +1 -1
  297. package/lib/sessions/components/alerts/PopupEditSession.js +1 -1
  298. package/lib/sessions/components/alerts/PopupSession.js +1 -1
  299. package/lib/sessions/components/alerts/index.js +1 -1
  300. package/lib/sessions/components/display/LogoImage.js +1 -1
  301. package/lib/sessions/components/display/SessionCard.js +1 -1
  302. package/lib/sessions/components/display/SessionListCard.js +1 -1
  303. package/lib/sessions/components/display/index.js +1 -1
  304. package/lib/sessions/components/error/ErrorText.js +1 -1
  305. package/lib/sessions/components/error/index.js +1 -1
  306. package/lib/sessions/components/index.js +1 -1
  307. package/lib/sessions/components/inputs/DefaultCheckbox.js +1 -1
  308. package/lib/sessions/components/inputs/PasswordInput.js +1 -1
  309. package/lib/sessions/components/inputs/SessionInputs.js +1 -1
  310. package/lib/sessions/components/inputs/SessionNameInput.js +1 -1
  311. package/lib/sessions/components/inputs/UrlInput.js +1 -1
  312. package/lib/sessions/components/inputs/UsernameInput.js +1 -1
  313. package/lib/sessions/components/inputs/index.js +1 -1
  314. package/lib/sessions/hook.js +1 -1
  315. package/lib/sessions/index.js +1 -1
  316. package/lib/sessions/type.js +1 -1
  317. package/lib/sessions/utils.js +1 -1
  318. package/lib/storage/Storage.js +1 -1
  319. package/lib/tools/ClipboardProvider.js +1 -1
  320. package/lib/tools/ContactProvider.js +1 -1
  321. package/lib/tools/FilePicker.js +1 -1
  322. package/lib/tools/FileViewer.js +1 -1
  323. package/lib/tools/LinkingProvider.js +1 -1
  324. package/lib/tools/contact.helper.js +1 -1
  325. package/lib/tools/index.js +1 -1
  326. package/lib/tools/linking.helper.js +1 -1
  327. package/lib/types/anomaly-type.js +1 -1
  328. package/lib/types/index.js +1 -1
  329. package/lib/types/mail-message-notification-type.js +1 -1
  330. package/lib/types/mail-message-type.js +1 -1
  331. package/lib/types/stopwatch-type.js +1 -1
  332. package/lib/utils/agenda.js +1 -1
  333. package/lib/utils/api.js +1 -1
  334. package/lib/utils/date.js +1 -1
  335. package/lib/utils/displayers.js +1 -1
  336. package/lib/utils/filter.js +1 -1
  337. package/lib/utils/formatters.js +1 -1
  338. package/lib/utils/image.js +1 -1
  339. package/lib/utils/index.d.ts +1 -0
  340. package/lib/utils/index.js +2 -1
  341. package/lib/utils/index.js.map +1 -1
  342. package/lib/utils/list.js +1 -1
  343. package/lib/utils/object.js +1 -1
  344. package/lib/utils/show-toast-message.js +1 -1
  345. package/lib/utils/string.js +1 -1
  346. package/lib/utils/time.js +1 -1
  347. package/lib/webViews/api.helpers.js +1 -1
  348. package/lib/webViews/display.helpers.js +1 -1
  349. package/lib/webViews/menu.helper.js +1 -1
  350. package/lib/webViews/view/WebViewScreen.js +1 -1
  351. package/lib/webViews/view/index.js +1 -1
  352. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
package/lib/app/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
package/lib/app/types.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
package/lib/auth/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -1,2 +1,2 @@
1
+ declare const Scanner: () => any;
1
2
  export default Scanner;
2
- declare function Scanner(): any;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Axelor Business Solutions
3
3
  *
4
- * Copyright (C) 2024 Axelor (<http://axelor.com>).
4
+ * Copyright (C) 2025 Axelor (<http://axelor.com>).
5
5
  *
6
6
  * This program is free software: you can redistribute it and/or modify
7
7
  * it under the terms of the GNU Affero General Public License, version 3,
@@ -15,60 +15,109 @@
15
15
  * You should have received a copy of the GNU Affero General Public License
16
16
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
  */
18
- import { useEffect } from 'react';
18
+ import { useCallback, useEffect, useMemo } from 'react';
19
19
  import { DeviceEventEmitter, Platform } from 'react-native';
20
- import { useDispatch } from 'react-redux';
21
- import { registerBroadcastReceiver } from 'react-native-datawedge-intents';
20
+ import DataWedgeIntents from 'react-native-datawedge-intents';
21
+ import DeviceInfo from 'react-native-device-info';
22
+ import { useDispatch } from '../../../redux/hooks';
22
23
  import { scanValue, useScannerSelector } from '../../../features/scannerSlice';
23
- const ean13LabelType = 'LABEL-TYPE-EAN13';
24
- function formatScan(barcodeValue, barcodeType) {
25
- if (barcodeType === ean13LabelType) {
26
- return barcodeValue.slice(0, -1);
27
- }
28
- else {
29
- return barcodeValue;
30
- }
31
- }
32
- const KEYS = {
33
- LABEL_TYPE: 'com.symbol.datawedge.label_type',
34
- DATA_DISPATCH_TIME: 'com.symbol.datawedge.data_dispatch_time',
35
- DATA_STRING: 'com.symbol.datawedge.data_string',
36
- };
37
- function castIntent(intent) {
38
- return {
39
- labelType: intent[KEYS.LABEL_TYPE],
40
- time: new Date(intent[KEYS.DATA_DISPATCH_TIME]),
41
- value: intent[KEYS.DATA_STRING],
42
- };
43
- }
24
+ import { DATAWEDGE_API } from './path.helpers';
25
+ import { castScanIntent, castVersionIntent, formatBarcode, isScanIntent, isVersionIntent, } from './intent.helpers';
44
26
  const Scanner = () => {
45
27
  const { isEnabled } = useScannerSelector();
46
28
  const dispatch = useDispatch();
29
+ const appConfig = useMemo(() => ({
30
+ profileName: `${DeviceInfo.getApplicationName().replaceAll(' ', '_')}${__DEV__ ? '_demo' : ''}`,
31
+ intentAction: `${DeviceInfo.getBundleId()}.zebra.ACTION`,
32
+ packageName: `${DeviceInfo.getBundleId()}`,
33
+ }), []);
34
+ const registerBroadcastReceiver = useCallback(() => {
35
+ DataWedgeIntents.registerBroadcastReceiver({
36
+ filterActions: [appConfig.intentAction, DATAWEDGE_API.RESULT_ACTION],
37
+ filterCategories: ['android.intent.category.DEFAULT'],
38
+ });
39
+ }, [appConfig.intentAction]);
40
+ const sendCommand = useCallback((extraName, extraValue = '') => {
41
+ DataWedgeIntents.sendBroadcastWithExtras({
42
+ action: DATAWEDGE_API.ACTION,
43
+ extras: { [extraName]: extraValue, SEND_RESULT: 'true' },
44
+ });
45
+ }, []);
46
+ const determineVersion = useCallback(() => {
47
+ sendCommand(DATAWEDGE_API.GET_VERSION_INFO);
48
+ }, [sendCommand]);
49
+ const createProfile = useCallback(() => {
50
+ sendCommand(DATAWEDGE_API.CREATE_PROFILE, appConfig.profileName);
51
+ sendCommand(DATAWEDGE_API.SET_CONFIG, {
52
+ PROFILE_NAME: appConfig.profileName,
53
+ PROFILE_ENABLED: 'true',
54
+ CONFIG_MODE: 'UPDATE',
55
+ PLUGIN_CONFIG: {
56
+ PLUGIN_NAME: 'BARCODE',
57
+ RESET_CONFIG: 'true',
58
+ PARAM_LIST: {},
59
+ },
60
+ APP_LIST: [
61
+ {
62
+ PACKAGE_NAME: appConfig.packageName,
63
+ ACTIVITY_LIST: ['*'],
64
+ },
65
+ ],
66
+ });
67
+ sendCommand(DATAWEDGE_API.SET_CONFIG, {
68
+ PROFILE_NAME: appConfig.profileName,
69
+ PROFILE_ENABLED: 'true',
70
+ CONFIG_MODE: 'UPDATE',
71
+ PLUGIN_CONFIG: {
72
+ PLUGIN_NAME: 'INTENT',
73
+ RESET_CONFIG: 'true',
74
+ PARAM_LIST: {
75
+ intent_output_enabled: 'true',
76
+ intent_action: appConfig.intentAction,
77
+ intent_delivery: '2',
78
+ },
79
+ },
80
+ });
81
+ }, [
82
+ appConfig.intentAction,
83
+ appConfig.packageName,
84
+ appConfig.profileName,
85
+ sendCommand,
86
+ ]);
87
+ const broadcastReceiver = useCallback((intent) => {
88
+ if (isScanIntent(intent)) {
89
+ const { labelType, value } = castScanIntent(intent);
90
+ const formattedValue = formatBarcode(value, labelType);
91
+ dispatch(scanValue(formattedValue));
92
+ }
93
+ if (isVersionIntent(intent)) {
94
+ const { version } = castVersionIntent(intent);
95
+ if (version >= '06.4') {
96
+ createProfile();
97
+ }
98
+ }
99
+ }, [createProfile, dispatch]);
47
100
  useEffect(() => {
48
101
  if (Platform.OS !== 'ios') {
49
- registerBroadcastReceiver({
50
- filterActions: [
51
- 'com.aosmobile.zebra.ACTION',
52
- 'com.symbol.datawedge.api.RESULT_ACTION',
53
- ],
54
- filterCategories: ['android.intent.category.DEFAULT'],
55
- });
102
+ registerBroadcastReceiver();
103
+ determineVersion();
56
104
  }
57
- }, []);
105
+ }, [determineVersion, registerBroadcastReceiver]);
58
106
  useEffect(() => {
59
107
  if (Platform.OS !== 'ios') {
60
108
  if (isEnabled) {
61
- const listener = DeviceEventEmitter.addListener('datawedge_broadcast_intent', intent => {
62
- const { labelType, value } = castIntent(intent);
63
- const formattedValue = formatScan(value, labelType);
64
- dispatch(scanValue(formattedValue));
65
- });
109
+ const listener = DeviceEventEmitter.addListener('datawedge_broadcast_intent', broadcastReceiver);
66
110
  return () => {
67
111
  listener.remove();
68
112
  };
69
113
  }
70
114
  }
71
- }, [dispatch, isEnabled]);
115
+ }, [
116
+ broadcastReceiver,
117
+ determineVersion,
118
+ isEnabled,
119
+ registerBroadcastReceiver,
120
+ ]);
72
121
  return null;
73
122
  };
74
123
  export default Scanner;