@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.
- package/lib/api/anomaly-api.js +1 -1
- package/lib/api/app-config-api.js +1 -1
- package/lib/api/attached-files-api.js +1 -1
- package/lib/api/login-api.d.ts +11 -0
- package/lib/api/login-api.js +28 -16
- package/lib/api/login-api.js.map +1 -1
- package/lib/api/mail-message-api.js +1 -1
- package/lib/api/meta-module-api.js +1 -1
- package/lib/api/metafile-api.js +1 -1
- package/lib/api/model-api.js +1 -1
- package/lib/api/net-info-utils.js +1 -1
- package/lib/api/print-template-api.js +1 -1
- package/lib/api/traceback-api.js +1 -1
- package/lib/api/user-api.js +1 -1
- package/lib/apiProviders/Action/ActionApiProvider.js +1 -1
- package/lib/apiProviders/Action/ActionProvider.js +1 -1
- package/lib/apiProviders/Action/AosActionApi.js +1 -1
- package/lib/apiProviders/Action/GatewayActionApi.js +1 -1
- package/lib/apiProviders/Action/index.js +1 -1
- package/lib/apiProviders/Action/utils.js +1 -1
- package/lib/apiProviders/Model/AopModelApi.js +1 -1
- package/lib/apiProviders/Model/GatewayModelApi.js +1 -1
- package/lib/apiProviders/Model/ModelApiProvider.js +1 -1
- package/lib/apiProviders/Model/Provider.js +1 -1
- package/lib/apiProviders/Model/index.js +1 -1
- package/lib/apiProviders/Model/utils.d.ts +1 -1
- package/lib/apiProviders/Model/utils.js +1 -1
- package/lib/apiProviders/Standard/AxiosProvider.js +1 -1
- package/lib/apiProviders/Standard/ObjectFieldsProvider.js +1 -1
- package/lib/apiProviders/Standard/index.d.ts +1 -1
- package/lib/apiProviders/Standard/index.js +2 -2
- package/lib/apiProviders/Standard/index.js.map +1 -1
- package/lib/apiProviders/Standard/requests.helper.d.ts +7 -0
- package/lib/apiProviders/Standard/requests.helper.js +71 -1
- package/lib/apiProviders/Standard/requests.helper.js.map +1 -1
- package/lib/apiProviders/config.js +1 -1
- package/lib/apiProviders/index.d.ts +1 -0
- package/lib/apiProviders/index.js +2 -1
- package/lib/apiProviders/index.js.map +1 -1
- package/lib/apiProviders/middlewares/fieldParser.js +1 -1
- package/lib/apiProviders/middlewares/index.js +1 -1
- package/lib/apiProviders/middlewares/translation.js +1 -1
- package/lib/apiProviders/utils.js +1 -1
- package/lib/app/Application.js +1 -1
- package/lib/app/ContextedApplication.js +1 -1
- package/lib/app/ContextsProvider.js +1 -1
- package/lib/app/RootNavigator.js +1 -1
- package/lib/app/context.helper.js +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/module-generation.helper.js +1 -1
- package/lib/app/modules/ModuleProvider.js +1 -1
- package/lib/app/modules/hooks.js +1 -1
- package/lib/app/modules/index.js +1 -1
- package/lib/app/modules/types.js +1 -1
- package/lib/app/types.js +1 -1
- package/lib/auth/api/company-api.js +1 -1
- package/lib/auth/api/config-api.js +1 -1
- package/lib/auth/api/index.js +1 -1
- package/lib/auth/api/localization-api.js +1 -1
- package/lib/auth/api/user-api.js +1 -1
- package/lib/auth/components/index.js +1 -1
- package/lib/auth/components/molecules/DashboardsCard/DashboardsCard.js +1 -1
- package/lib/auth/components/molecules/NavigationToolsButton/NavigationToolsButton.js +1 -1
- package/lib/auth/components/molecules/ShortcutsCard/ShortcutsCard.js +1 -1
- package/lib/auth/components/molecules/TranslationsButton/TranslationsButton.js +1 -1
- package/lib/auth/components/molecules/UserCard/UserCard.js +1 -1
- package/lib/auth/components/molecules/index.js +1 -1
- package/lib/auth/features/asyncFunctionsIndex.js +1 -1
- package/lib/auth/features/companySlice.js +1 -1
- package/lib/auth/features/configSlice.js +1 -1
- package/lib/auth/features/index.js +1 -1
- package/lib/auth/features/localizationSlice.js +1 -1
- package/lib/auth/features/userSlice.js +1 -1
- package/lib/auth/hooks/use-auth-headers.js +1 -1
- package/lib/auth/index.js +1 -1
- package/lib/auth/models/index.js +1 -1
- package/lib/auth/models/objectFields.js +1 -1
- package/lib/auth/screens/SettingsScreen.js +1 -1
- package/lib/auth/screens/UserScreen.js +1 -1
- package/lib/auth/screens/index.js +1 -1
- package/lib/components/external/Camera/Camera.js +1 -1
- package/lib/components/external/Camera/CaptureButton.js +1 -1
- package/lib/components/external/CodeHighlighter/CodeHighlighter.js +1 -1
- package/lib/components/external/CodeHighlighter/code-highlighter.helper.js +1 -1
- package/lib/components/external/PlanningView/AgendaItemDisplay.js +1 -1
- package/lib/components/external/PlanningView/DayDisplay.js +1 -1
- package/lib/components/external/PlanningView/MonthDisplay.js +1 -1
- package/lib/components/external/PlanningView/NavigationButton.js +1 -1
- package/lib/components/external/PlanningView/PlanningView.js +1 -1
- package/lib/components/external/PlanningView/agenda.helpers.js +1 -1
- package/lib/components/external/Scanner/Scanner.d.ts +1 -1
- package/lib/components/external/Scanner/Scanner.js +88 -39
- package/lib/components/external/Scanner/Scanner.js.map +1 -1
- package/lib/components/external/Scanner/intent.helpers.d.ts +11 -0
- package/lib/components/external/Scanner/intent.helpers.js +43 -0
- package/lib/components/external/Scanner/intent.helpers.js.map +1 -0
- package/lib/components/external/Scanner/path.helpers.d.ts +15 -0
- package/lib/components/external/Scanner/path.helpers.js +35 -0
- package/lib/components/external/Scanner/path.helpers.js.map +1 -0
- package/lib/components/external/Stopwatch/Stopwatch.js +1 -1
- package/lib/components/external/Timer/Timer.js +1 -1
- package/lib/components/external/Toast/Toast.js +1 -1
- package/lib/components/external/Toast/ToastProvider.js +1 -1
- package/lib/components/external/Toast/index.js +1 -1
- package/lib/components/external/WebView/WebView.js +1 -1
- package/lib/components/external/index.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/molecules/CameraButton/CameraButton.js +1 -1
- package/lib/components/molecules/DateDisplay/DateDisplay.js +1 -1
- package/lib/components/molecules/DatePicker/DatePicker.js +1 -1
- package/lib/components/molecules/FocusScreen/FocusScreen.js +1 -1
- package/lib/components/molecules/HeaderBand/HeaderBand.js +1 -1
- package/lib/components/molecules/HeaderOptionsMenuItem/HeaderOptionMenuItem.js +1 -1
- package/lib/components/molecules/InputBarCodeCard/InputBarCodeCard.js +1 -1
- package/lib/components/molecules/MailMessageReadIcon/MailMessageReadIcon.js +1 -1
- package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js +10 -4
- package/lib/components/molecules/PeriodDisplay/PeriodDisplay.js.map +1 -1
- package/lib/components/molecules/TrackItem/TrackItem.js +1 -1
- package/lib/components/molecules/UploadFileInput/UploadFileInput.js +1 -1
- package/lib/components/molecules/index.js +1 -1
- package/lib/components/organisms/AOSImage/AOSImage.js +1 -1
- package/lib/components/organisms/AOSImageBubble/AOSImageBubble.js +1 -1
- package/lib/components/organisms/AnomalyBubble/AnomalyBubble.js +1 -1
- package/lib/components/organisms/AnomalyList/AnomalyList.js +1 -1
- package/lib/components/organisms/DateInput/DateInput.js +1 -1
- package/lib/components/organisms/DateInput/date-input.helper.js +1 -1
- package/lib/components/organisms/HeaderBandList/HeaderBandList.js +1 -1
- package/lib/components/organisms/HeaderOptionsMenu/HeaderOptionsMenu.js +1 -1
- package/lib/components/organisms/MailMessageCard/MailMessageCard.js +1 -1
- package/lib/components/organisms/MailMessageCommentCard/MailMessageCommentCard.js +1 -1
- package/lib/components/organisms/MailMessageNotificationCard/MailMessageNotificationCard.js +1 -1
- package/lib/components/organisms/PopupPrintTemplate/PopupPrintTemplate.js +1 -1
- package/lib/components/organisms/ScannerAutocompleteSearch/ScannerAutocompleteSearch.js +1 -1
- package/lib/components/organisms/SignatureInput/PictureIcon.js +1 -1
- package/lib/components/organisms/SignatureInput/SignatureInput.js +1 -1
- package/lib/components/organisms/index.js +1 -1
- package/lib/components/pages/CustomFieldForm/CustomFieldForm.js +1 -1
- package/lib/components/pages/FormView/Alerts/ConfirmationPopup.js +1 -1
- package/lib/components/pages/FormView/Alerts/ConstraintsValidatorPopup.js +1 -1
- package/lib/components/pages/FormView/Alerts/index.js +1 -1
- package/lib/components/pages/FormView/Buttons/FloatingTools.js +1 -1
- package/lib/components/pages/FormView/Buttons/index.js +1 -1
- package/lib/components/pages/FormView/Components/Field.js +1 -1
- package/lib/components/pages/FormView/Components/Panel.js +1 -1
- package/lib/components/pages/FormView/Components/index.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomButton.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomPasswordInput.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomPicker.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomSearchBar.js +1 -1
- package/lib/components/pages/FormView/Custom/CustomTagList.js +1 -1
- package/lib/components/pages/FormView/Custom/index.js +1 -1
- package/lib/components/pages/FormView/FormView.js +1 -1
- package/lib/components/pages/index.js +1 -1
- package/lib/components/templates/AttachedFilesView/AttachedFilesView.js +1 -1
- package/lib/components/templates/GlobalToolBox/GlobalToolBox.js +1 -1
- package/lib/components/templates/MailMessageView/MailMessageView.js +1 -1
- package/lib/components/templates/PeriodInput/PeriodInput.d.ts +7 -4
- package/lib/components/templates/PeriodInput/PeriodInput.js +18 -5
- package/lib/components/templates/PeriodInput/PeriodInput.js.map +1 -1
- package/lib/components/templates/PopupApplicationInformation/PopupApplicationInformation.js +1 -1
- package/lib/components/templates/PopupMinimalRequiredVersion/PopupMinimalRequiredVersion.js +1 -1
- package/lib/components/templates/PrintTemplateSearchBar/PrintTemplateSearchBar.js +1 -1
- package/lib/components/templates/SearchListView/SearchListView.js +1 -1
- package/lib/components/templates/SearchTreeView/SearchTreeView.js +1 -1
- package/lib/components/templates/SingleSelectSearchListView/SingleSelectSearchListView.js +1 -1
- package/lib/components/templates/SocialNetworkLinks/SocialNetworkLinks.js +1 -1
- package/lib/components/templates/UserSearchBar/UserSearchBar.js +1 -1
- package/lib/components/templates/index.js +1 -1
- package/lib/config/RouterProvider.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/config/routes.js +1 -1
- package/lib/dashboards/api.helpers.js +1 -1
- package/lib/dashboards/component/AOPChart/AOPChart.js +1 -1
- package/lib/dashboards/component/AOPChart/DynamicSearchForm.js +1 -1
- package/lib/dashboards/component/AOPChart/api.helpers.js +1 -1
- package/lib/dashboards/component/AOPChart/format.helpers.js +1 -1
- package/lib/dashboards/component/RefreshChart/RefreshChart.js +1 -1
- package/lib/dashboards/component/index.js +1 -1
- package/lib/dashboards/display.helpers.js +1 -1
- package/lib/dashboards/index.js +1 -1
- package/lib/dashboards/menu.helpers.js +1 -1
- package/lib/dashboards/view/DashboardScreen.js +1 -1
- package/lib/dashboards/view/DashboardView.js +1 -1
- package/lib/dashboards/view/index.js +1 -1
- package/lib/features/appConfigSlice.js +1 -1
- package/lib/features/attachedFilesSlice.js +1 -1
- package/lib/features/authSlice.js +4 -5
- package/lib/features/authSlice.js.map +1 -1
- package/lib/features/cameraScannerSlice.js +1 -1
- package/lib/features/cameraSlice.js +1 -1
- package/lib/features/formSlice.js +1 -1
- package/lib/features/index.js +1 -1
- package/lib/features/mailMessageSlice.js +1 -1
- package/lib/features/metaJsonFieldSlice.js +1 -1
- package/lib/features/metaModuleSlice.js +1 -1
- package/lib/features/metafileSlice.js +1 -1
- package/lib/features/onlineSlice.js +1 -1
- package/lib/features/permissionSlice.js +1 -1
- package/lib/features/printTemplateSlice.js +1 -1
- package/lib/features/scannerSlice.js +1 -1
- package/lib/features/userSlice.js +1 -1
- package/lib/forms/FormConfigsProvider.js +1 -1
- package/lib/forms/action.helpers.js +1 -1
- package/lib/forms/api.helpers.js +1 -1
- package/lib/forms/display.helpers.js +1 -1
- package/lib/forms/index.js +1 -1
- package/lib/forms/register.helpers.js +1 -1
- package/lib/forms/studio/api.helpers.js +1 -1
- package/lib/forms/studio/display.helpers.js +1 -1
- package/lib/forms/studio/formula.helpers.js +1 -1
- package/lib/forms/studio/index.js +1 -1
- package/lib/forms/studio/permission.helpers.js +1 -1
- package/lib/forms/types.js +1 -1
- package/lib/forms/validation.helpers.js +1 -1
- package/lib/header/HeaderActionsProvider.js +1 -1
- package/lib/header/HeaderBandContext.js +1 -1
- package/lib/header/header-band-context.helper.js +1 -1
- package/lib/header/hooks.js +1 -1
- package/lib/header/index.js +1 -1
- package/lib/header/types.js +1 -1
- package/lib/header/utils.js +1 -1
- package/lib/hooks/use-background-function.js +1 -1
- package/lib/hooks/use-effect-debugger.js +1 -1
- package/lib/hooks/use-header-registers.js +1 -1
- package/lib/hooks/use-navigation.js +1 -1
- package/lib/hooks/use-scan-activator.js +1 -1
- package/lib/hooks/use-storage-config.js +1 -1
- package/lib/i18n/api/translation.js +1 -1
- package/lib/i18n/component/Translator.js +1 -1
- package/lib/i18n/helpers/langages.js +1 -1
- package/lib/i18n/helpers/translations.js +1 -1
- package/lib/i18n/hooks/use-translator.js +1 -1
- package/lib/i18n/i18n.js +1 -1
- package/lib/i18n/index.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/loader/ProcessProvider.js +1 -1
- package/lib/loader/ProcessStorage.js +1 -1
- package/lib/loader/components/atoms/ProcessCard/ProcessCard.js +1 -1
- package/lib/loader/components/atoms/index.js +1 -1
- package/lib/loader/components/index.js +1 -1
- package/lib/loader/components/organisms/LoaderPopup/LoaderPopup.js +1 -1
- package/lib/loader/components/organisms/index.js +1 -1
- package/lib/loader/helpers.js +1 -1
- package/lib/loader/hooks.js +1 -1
- package/lib/loader/index.js +1 -1
- package/lib/loader/types.js +1 -1
- package/lib/models/index.js +1 -1
- package/lib/models/objectFields.js +1 -1
- package/lib/models/searchFields.js +1 -1
- package/lib/models/sortFields.js +1 -1
- package/lib/navigator/ActiveScreenProvider.js +1 -1
- package/lib/navigator/NavigationInformationsProvider.js +1 -1
- package/lib/navigator/Navigator.js +4 -2
- package/lib/navigator/Navigator.js.map +1 -1
- package/lib/navigator/drawer/AuthMenuIconButton.js +1 -1
- package/lib/navigator/drawer/BackIcon.js +1 -1
- package/lib/navigator/drawer/DrawerContent.js +1 -1
- package/lib/navigator/drawer/DrawerToggleButton.js +1 -1
- package/lib/navigator/drawer/Header.js +1 -1
- package/lib/navigator/drawer/Menu.js +1 -1
- package/lib/navigator/drawer/MenuIconButton.js +1 -1
- package/lib/navigator/drawer/MenuItem.js +1 -1
- package/lib/navigator/drawer/MenuItemEntry.js +1 -1
- package/lib/navigator/drawer/MenuSeparator.js +1 -1
- package/lib/navigator/drawer/MenuTitle.js +1 -1
- package/lib/navigator/drawer/SubMenuItem.js +1 -1
- package/lib/navigator/drawer/SubMenuItemList.js +1 -1
- package/lib/navigator/index.js +1 -1
- package/lib/navigator/menu.helper.js +1 -1
- package/lib/navigator/module.helper.js +1 -1
- package/lib/permissions/api.helpers.js +1 -1
- package/lib/permissions/format.helpers.js +1 -1
- package/lib/permissions/hooks.js +1 -1
- package/lib/permissions/index.js +1 -1
- package/lib/permissions/type.helpers.js +1 -1
- package/lib/redux/hooks.js +1 -1
- package/lib/redux/store.js +1 -1
- package/lib/screens/AttachedFilesScreen.js +1 -1
- package/lib/screens/BarcodeDisplayScreen.js +1 -1
- package/lib/screens/ErrorScreen.js +1 -1
- package/lib/screens/JsonFieldScreen.js +1 -1
- package/lib/screens/LoginScreen.js +1 -1
- package/lib/screens/MailMessageScreen.js +1 -1
- package/lib/screens/ProcessListScreen.js +1 -1
- package/lib/screens/SessionManagementScreen.js +1 -1
- package/lib/screens/index.js +1 -1
- package/lib/selections/SelectionProvider.js +1 -1
- package/lib/selections/api.helpers.js +1 -1
- package/lib/selections/format.helpers.js +1 -1
- package/lib/selections/hooks.js +1 -1
- package/lib/selections/index.js +1 -1
- package/lib/selections/types.js +1 -1
- package/lib/sessions/SessionStorage.js +1 -1
- package/lib/sessions/components/alerts/PopupCreateSession.js +1 -1
- package/lib/sessions/components/alerts/PopupEditSession.js +1 -1
- package/lib/sessions/components/alerts/PopupSession.js +1 -1
- package/lib/sessions/components/alerts/index.js +1 -1
- package/lib/sessions/components/display/LogoImage.js +1 -1
- package/lib/sessions/components/display/SessionCard.js +1 -1
- package/lib/sessions/components/display/SessionListCard.js +1 -1
- package/lib/sessions/components/display/index.js +1 -1
- package/lib/sessions/components/error/ErrorText.js +1 -1
- package/lib/sessions/components/error/index.js +1 -1
- package/lib/sessions/components/index.js +1 -1
- package/lib/sessions/components/inputs/DefaultCheckbox.js +1 -1
- package/lib/sessions/components/inputs/PasswordInput.js +1 -1
- package/lib/sessions/components/inputs/SessionInputs.js +1 -1
- package/lib/sessions/components/inputs/SessionNameInput.js +1 -1
- package/lib/sessions/components/inputs/UrlInput.js +1 -1
- package/lib/sessions/components/inputs/UsernameInput.js +1 -1
- package/lib/sessions/components/inputs/index.js +1 -1
- package/lib/sessions/hook.js +1 -1
- package/lib/sessions/index.js +1 -1
- package/lib/sessions/type.js +1 -1
- package/lib/sessions/utils.js +1 -1
- package/lib/storage/Storage.js +1 -1
- package/lib/tools/ClipboardProvider.js +1 -1
- package/lib/tools/ContactProvider.js +1 -1
- package/lib/tools/FilePicker.js +1 -1
- package/lib/tools/FileViewer.js +1 -1
- package/lib/tools/LinkingProvider.js +1 -1
- package/lib/tools/contact.helper.js +1 -1
- package/lib/tools/index.js +1 -1
- package/lib/tools/linking.helper.js +1 -1
- package/lib/types/anomaly-type.js +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/mail-message-notification-type.js +1 -1
- package/lib/types/mail-message-type.js +1 -1
- package/lib/types/stopwatch-type.js +1 -1
- package/lib/utils/agenda.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/displayers.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatters.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +2 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/list.js +1 -1
- package/lib/utils/object.js +1 -1
- package/lib/utils/show-toast-message.js +1 -1
- package/lib/utils/string.js +1 -1
- package/lib/utils/time.js +1 -1
- package/lib/webViews/api.helpers.js +1 -1
- package/lib/webViews/display.helpers.js +1 -1
- package/lib/webViews/menu.helper.js +1 -1
- package/lib/webViews/view/WebViewScreen.js +1 -1
- package/lib/webViews/view/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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/RootNavigator.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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/modules/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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/modules/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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/modules/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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)
|
|
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)
|
|
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)
|
|
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/api/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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)
|
|
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/api/user-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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/models/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Axelor Business Solutions
|
|
3
3
|
*
|
|
4
|
-
* Copyright (C)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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
|
|
21
|
-
import
|
|
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
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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',
|
|
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
|
-
}, [
|
|
115
|
+
}, [
|
|
116
|
+
broadcastReceiver,
|
|
117
|
+
determineVersion,
|
|
118
|
+
isEnabled,
|
|
119
|
+
registerBroadcastReceiver,
|
|
120
|
+
]);
|
|
72
121
|
return null;
|
|
73
122
|
};
|
|
74
123
|
export default Scanner;
|