Skip to content

Commit 75e41d7

Browse files
Merge branch 'version/mx/10' into moo/moo-2083/location-permission-request
2 parents 89aa47d + 2a6de0f commit 75e41d7

File tree

28 files changed

+333
-426
lines changed

28 files changed

+333
-426
lines changed

.github/scripts/determine-widget-scope.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ input_workspace="$2"
77
before_commit="$3"
88
current_commit="$4"
99

10-
# List of all native widgets
11-
all_widgets='["accordion-native","activity-indicator-native","animation-native","app-events-native","background-gradient-native","background-image-native","badge-native","bar-chart-native","barcode-scanner-native","bottom-sheet-native","carousel-native","color-picker-native","column-chart-native","feedback-native","floating-action-button-native","gallery-native","gallery-text-filter-native","image-native","intro-screen-native","line-chart-native","listview-swipe-native","maps-native","pie-doughnut-chart-native","popup-menu-native","progress-bar-native","progress-circle-native","qr-code-native","radio-buttons-native","range-slider-native","rating-native","repeater-native","safe-area-view-native","signature-native","slider-native","switch-native","toggle-buttons-native","video-player-native","web-view-native"]'
10+
# Dynamically discover all native widgets from the packages/pluggableWidgets directory
11+
# This ensures we don't miss any widgets when new ones are added
12+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
13+
repo_root="$(cd "$script_dir/../.." && pwd)"
14+
widget_dirs=$(find "$repo_root/packages/pluggableWidgets" -maxdepth 1 -type d -name "*-native" -exec basename {} \; | sort)
15+
all_widgets=$(echo "$widget_dirs" | jq -R -s -c 'split("\n") | map(select(length > 0))')
1216

1317
# Combined widgets and JS actions for default cases
14-
all_widgets_and_js='["accordion-native","activity-indicator-native","animation-native","app-events-native","background-gradient-native","background-image-native","badge-native","bar-chart-native","barcode-scanner-native","bottom-sheet-native","carousel-native","color-picker-native","column-chart-native","feedback-native","floating-action-button-native","gallery-native","gallery-text-filter-native","image-native","intro-screen-native","line-chart-native","listview-swipe-native","maps-native","pie-doughnut-chart-native","popup-menu-native","progress-bar-native","progress-circle-native","qr-code-native","radio-buttons-native","range-slider-native","rating-native","repeater-native","safe-area-view-native","signature-native","slider-native","switch-native","toggle-buttons-native","video-player-native","web-view-native","mobile-resources-native","nanoflow-actions-native"]'
18+
all_widgets_and_js=$(echo "$widget_dirs" | jq -R -s -c 'split("\n") | map(select(length > 0)) + ["mobile-resources-native", "nanoflow-actions-native"]')
1519

1620
if [ "$event_name" == "pull_request" ]; then
1721
if git cat-file -e "$before_commit" 2>/dev/null; then

.github/workflows/NativePipeline.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
required: true
2525
default: "*-native"
2626
type: choice
27+
# NOTE: This list must be kept in sync with packages/pluggableWidgets/*-native folders
28+
# The determine-widget-scope.sh script automatically discovers widgets, but GitHub Actions
29+
# doesn't support dynamic dropdown options, so this list must be updated manually when
30+
# adding or removing widgets.
2731
options:
2832
- "*-native"
2933
- js-actions
@@ -49,6 +53,7 @@ on:
4953
- line-chart-native
5054
- listview-swipe-native
5155
- maps-native
56+
- notifications-native
5257
- pie-doughnut-chart-native
5358
- popup-menu-native
5459
- progress-bar-native
@@ -68,6 +73,8 @@ on:
6873

6974
# Trigger on PR
7075
pull_request:
76+
branches:
77+
- version/mx/10
7178

7279
# Use default name in case no input
7380
run-name: ${{ github.event.inputs.run_name || 'Run Native Pipeline' }}
@@ -285,14 +292,16 @@ jobs:
285292
- name: "Move mobile-resources"
286293
shell: bash
287294
run: |
288-
if compgen -G 'resources/jsActions/mobile-resources-native/*' > /dev/null; then
289-
mv -f resources/jsActions/mobile-resources-native/* Native-Mobile-Resources-mx10/javascriptsource/nativemobileresources/actions/
295+
if compgen -G 'resources/jsActions/mobile-resources-native/dist/*' > /dev/null; then
296+
rm -rf Native-Mobile-Resources-mx10/javascriptsource/nativemobileresources/actions/node_modules
297+
mv -f resources/jsActions/mobile-resources-native/dist/* Native-Mobile-Resources-mx10/javascriptsource/nativemobileresources/actions/
290298
fi
291299
- name: "Move nanoflow-actions"
292300
shell: bash
293301
run: |
294-
if compgen -G 'resources/jsActions/mobile-resources-native/*' > /dev/null; then
295-
mv -f resources/jsActions/nanoflow-actions-native/* Native-Mobile-Resources-mx10/javascriptsource/nanoflowcommons/actions/
302+
if compgen -G 'resources/jsActions/nanoflow-actions-native/dist/*' > /dev/null; then
303+
rm -rf Native-Mobile-Resources-mx10/javascriptsource/nanoflowcommons/actions/node_modules
304+
mv -f resources/jsActions/nanoflow-actions-native/dist/* Native-Mobile-Resources-mx10/javascriptsource/nanoflowcommons/actions/
296305
fi
297306
- name: "Force rebuild test project"
298307
run: |

configs/e2e/native_dependencies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"react-native-system-navigation-bar": "2.6.3",
1111
"react-native-video": "6.10.0",
1212
"@react-native-async-storage/async-storage": "2.0.0",
13-
"react-native-camera": "3.40.0",
13+
"react-native-vision-camera": "4.7.3",
1414
"react-native-view-shot": "4.0.3",
1515
"react-native-blob-util": "0.21.2",
1616
"react-native-file-viewer": "2.1.5",

packages/jsActions/mobile-resources-native/CHANGELOG.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,107 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [10.1.8] Native Mobile Resources - 2025-11-7
10+
## [] Notifications
11+
12+
### BREAKING
13+
14+
- Updated the react-native-firebase to v20.1.0. Ensure that the Native Template and Native Builder are updated accordingly.
15+
16+
## [4.2.0] Notifications
17+
## BREAKING
18+
19+
- Updated the react-native-firebase to v20.1.0. Ensure that the Native Template and Native Builder are updated accordingly.
20+
21+
## [10.1.6] Native Mobile Resources - 2025-10-17
22+
23+
24+
## [2.0.1] Gallery
25+
### Fixed
26+
27+
- We've fixed an issue where the Gallery widget would not properly load more items when scrolling down quickly.
28+
29+
## [6.1.2] VideoPlayer
30+
- We have updated `react-native-video` version to 6.10.2.
31+
- We have fixed an issue where videos were muted in iOS silent mode. The video player now plays sound even when the device is set to silent.
32+
933
## [10.1.5] Native Mobile Resources - 2025-10-6
1034

35+
- Updated the react-native-firebase to v20.1.0. Ensure that the Native Template and Native Builder are updated accordingly.
36+
37+
## [10.1.5] Native Mobile Resources - 2025-10-6
1138

1239
## [5.0.1] BottomSheet
40+
1341
### Fixed
1442

1543
- Fixed React Native Reanimated worklet function errors by properly memoizing snap points.
1644

1745
## [10.1.3] Native Mobile Resources - 2025-9-9
1846

19-
2047
## [4.1.0] IntroScreen
48+
2149
### Fixed
2250

2351
- We have fixed defaultProps deprecation warning.
2452
- Initial slide now correctly positioned on mount.
2553

2654
## [3.1.1] SafeAreaView
55+
2756
- We fixed the issue where navigation buttons were being overlapped due to improper safe area handling.
2857

2958
## [2.3.0] Signature
59+
3060
- Updated react-native-webview from version v13.12.5 to latest
3161

3262
## [6.1.1] VideoPlayer
63+
3364
### Changed
3465

3566
- We have updated `react-native-video` version to 6.10.0
3667

3768
## [4.3.0] WebView
69+
3870
- Updated react-native-webview from version v13.12.5 to latest to support react-native 0.77
3971

4072
## [10.0.0] Native Mobile Resources - 2025-3-31
73+
4174
- We migrated from react-native-inappbrowser-reborn to @swan-io/react-native-browser to prevent issues for next rn upgrade.
4275

4376
- We migrated from @react-native-community/cameraroll to @react-native-camera-roll/camera-roll to prevent issues for next rn upgrade.
4477

4578
- We also updated several dependencies such as react-native-blob-util, react-native-image-picker to their latest version.
4679

4780
## [5.0.0] AppEvents
81+
4882
### Changed
4983

5084
- Updated @react-native-community/netinfo from version v5.9.7 to v11.4.1.
5185

5286
## [5.0.0] BottomSheet
87+
5388
### Changed
5489

5590
- Rewrote all bottomsheet widgets (customModalSheet, ExpandingDrawer, and NativeBottomSheet) using @gorhom/bottom-sheet.
5691

5792
## [3.4.0] Feedback
93+
5894
### Changed
5995

6096
- Updated react-native-view-shot from version v3.1.2 to v4.0.3.
6197

6298
## [3.3.0] ListViewSwipe
63-
- Updated react-native-gesture-handler from version v2.16.2 to 2.24.0
99+
100+
- Updated react-native-gesture-handler from version v2.16.2 to 2.24.0
64101

65102
## [2.2.0] Signature
103+
66104
### Changed
67105

68106
- Updated react-native-webview from version v9.0.0 to v10.15.0.
69107

70108
## [4.2.0] WebView
109+
71110
### Changed
72111

73112
- Updated react-native-webview from version v11.26.1 to v13.13.2

packages/jsActions/mobile-resources-native/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mobile-resources-native",
33
"moduleName": "Native Mobile Resources",
4-
"version": "10.1.5",
4+
"version": "10.1.8",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
77
"repository": {
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"@react-native-camera-roll/camera-roll": "7.4.0",
3030
"@react-native-community/push-notification-ios": "1.10.1",
31-
"@react-native-firebase/messaging": "17.3.0",
31+
"@react-native-firebase/messaging": "20.1.0",
3232
"@swan-io/react-native-browser": "^0.4.1",
3333
"fbjs": "3.0.4",
3434
"mime": "3.0.0",
@@ -54,4 +54,4 @@
5454
"rimraf": "^4.4.1",
5555
"rollup": "^2.79.2"
5656
}
57-
}
57+
}

packages/jsActions/nanoflow-actions-native/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
- We've migrated from using @react-native-community/geolocation to react-native-permissions for handling location permissions.
1010

11+
## [5.1.5] Nanoflow Commons - 2025-12-02
12+
13+
### Fixed
14+
15+
- We've fixed isConnectedToServer succeeding without internet on offline apps when service worker is enabled.
16+
17+
## [5.1.4] Nanoflow Commons - 2025-11-18
18+
19+
### Fixed
20+
21+
- Updated the react-native-firebase to v20.1.0. Ensure that the Native Template and Native Builder are updated accordingly.
22+
1123
## [5.1.3] Nanoflow Commons - 2025-9-24
1224

1325
### Fixed

packages/jsActions/nanoflow-actions-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nanoflow-actions-native",
33
"moduleName": "Nanoflow Commons",
4-
"version": "5.1.3",
4+
"version": "5.1.5",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
77
"repository": {

packages/jsActions/nanoflow-actions-native/src/client/IsConnectedToServer.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@
1515
export async function IsConnectedToServer(): Promise<boolean> {
1616
// BEGIN USER CODE
1717
try {
18-
const response = await fetch(mx.remoteUrl);
18+
const headers = new Headers();
19+
headers.append("Content-Type", "application/json");
20+
const body = JSON.stringify({ action: "info" });
21+
22+
const requestOptions = {
23+
method: "POST",
24+
headers,
25+
body
26+
};
27+
28+
// mx.remoteUrl always has / at the end, therefore we don't add it.
29+
const response = await fetch(`${mx.remoteUrl}xas/`, requestOptions);
1930
return response.ok;
2031
} catch (err) {
2132
console.error(err);

packages/pluggableWidgets/barcode-scanner-native/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
- We migrated to react-native-vision-camera from react-native-camera.
10+
- Updated react-native-vision-camera from version v4.7.1 to v4.7.3.
11+
912
## [4.1.0] - 2024-12-3
1013

1114
### Changed

packages/pluggableWidgets/barcode-scanner-native/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "barcode-scanner-native",
33
"widgetName": "BarcodeScanner",
4-
"version": "4.1.0",
4+
"version": "4.2.0",
55
"license": "Apache-2.0",
66
"repository": {
77
"type": "git",
@@ -21,9 +21,8 @@
2121
"dependencies": {
2222
"@mendix/piw-native-utils-internal": "*",
2323
"@mendix/piw-utils-internal": "*",
24-
"deprecated-react-native-prop-types": "^4.0.0",
2524
"react-native-barcode-mask": "^1.2.4",
26-
"react-native-camera": "3.40.0"
25+
"react-native-vision-camera": "4.7.3"
2726
},
2827
"devDependencies": {
2928
"@mendix/pluggable-widgets-tools": "~10.0.1",

0 commit comments

Comments
 (0)