diff --git a/package.json b/package.json index a4ff1d38b..1acc2d744 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "setup-android": "node ./detox/scripts/setup-android.js", "setup-ios": "node ./detox/scripts/setup-ios.js", "patch-package": "./scripts/patch/patch-package.sh", - "build:widgets": "node ./scripts/widget/buildWidgets.js" + "build:widgets": "node ./scripts/widget/buildWidgets.js", + "build:widgets:dev": "node ./scripts/widget/buildWidgets.js --delete-dist --dev" }, "workspaces": { "packages": [ diff --git a/packages/jsActions/mobile-resources-native/CHANGELOG.md b/packages/jsActions/mobile-resources-native/CHANGELOG.md index 2b936acbb..6dc9e7ec4 100644 --- a/packages/jsActions/mobile-resources-native/CHANGELOG.md +++ b/packages/jsActions/mobile-resources-native/CHANGELOG.md @@ -6,9 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] -### Changed +## [6.0.2] Native Mobile Resources - 2024-03-29 + +### Fixed + +- Fixed an Android issue in Download file action with encrypted files enabled projects. + +## [6.0.1] Native Mobile Resources - 2024-02-02 + +[2.2.1] - Accordion + +### Fixed + +- Fixed a bug where the accordion state was not updating correctly when the "Collapsed" attribute was selected. + +- Resolved an issue where the accordion's dynamic content was not updating its height after the initial render. + +## [1.0.3] - Gallery + +### Fixed -- fixed an Android issue in Download file action. +- We've resolved an issue where the loading indicator was triggered when pulling down the list, even in the absence of a pull-down event. ## [6.0.0] Native Mobile Resources - 2024-01-24 diff --git a/packages/jsActions/mobile-resources-native/package.json b/packages/jsActions/mobile-resources-native/package.json index c3af87247..83f3bb3d2 100644 --- a/packages/jsActions/mobile-resources-native/package.json +++ b/packages/jsActions/mobile-resources-native/package.json @@ -1,7 +1,7 @@ { "name": "mobile-resources-native", "moduleName": "Native Mobile Resources", - "version": "6.0.0", + "version": "6.0.2", "license": "Apache-2.0", "copyright": "© Mendix Technology BV 2022. All rights reserved.", "repository": { diff --git a/packages/pluggableWidgets/accordion-native/CHANGELOG.md b/packages/pluggableWidgets/accordion-native/CHANGELOG.md index 9860391a8..6612c4f43 100644 --- a/packages/pluggableWidgets/accordion-native/CHANGELOG.md +++ b/packages/pluggableWidgets/accordion-native/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [2.2.1] - 2024-01-02 + ### Fixed - Fixed a bug where the accordion state was not updating correctly when the "Collapsed" attribute was selected. diff --git a/packages/pluggableWidgets/floating-action-button-native/CHANGELOG.md b/packages/pluggableWidgets/floating-action-button-native/CHANGELOG.md index ad7982156..72c9b11d9 100644 --- a/packages/pluggableWidgets/floating-action-button-native/CHANGELOG.md +++ b/packages/pluggableWidgets/floating-action-button-native/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## [4.0.2] - 2023-04-05 + ### Fixed - We have fixed an issue where icons within Floating Action Buttons were not properly centered. diff --git a/scripts/widget/README.md b/scripts/widget/README.md index b1cced9a1..4a5e0811a 100644 --- a/scripts/widget/README.md +++ b/scripts/widget/README.md @@ -8,10 +8,11 @@ When running the build script, all widgets are built individually within their r ## Usage -The script supports two parameters: +The script supports these parameters: -1. `--delete-dist`: Deletes the dist folders within each widget's directory. This is useful to prevent conflicts in case multiple versions of a widget are present in the same `dist` directory. +1. `--delete-dist`: Deletes the `dist` folders within each widget's directory. This is useful to prevent conflicts in case multiple versions of a widget are present in the same `dist` directory. 2. `--skip-build`: Skips the build process for widgets. This is helpful when there are already built widgets, and you want to avoid rebuilding them. +3. `--dev`: Specifies the build to be in development mode. ## Running the Script diff --git a/scripts/widget/buildWidgets.js b/scripts/widget/buildWidgets.js index e4fab0a59..5ac2fdebd 100644 --- a/scripts/widget/buildWidgets.js +++ b/scripts/widget/buildWidgets.js @@ -5,6 +5,8 @@ const readline = require("readline"); const deleteDist = process.argv.includes("--delete-dist"); const skipYarnBuild = process.argv.includes("--skip-build"); +const devMode = process.argv.includes("--dev"); + const rl = readline.createInterface({ input: process.stdin, output: process.stdout @@ -69,14 +71,15 @@ const deleteDistFolders = () => { const runYarnBuild = () => { return new Promise((resolve, reject) => { + const buildCommand = devMode ? "build" : "release"; if (skipYarnBuild) { - log.warning("Skipping 'yarn build'..."); + log.warning(`Skipping 'yarn ${buildCommand}'...`); resolve(); return; } - log.info("Running 'yarn build'..."); + log.info(`Running 'yarn ${buildCommand}'...`); - const buildProcess = spawn("yarn", ["build"], { stdio: "pipe", shell: true }); + const buildProcess = spawn("yarn", [buildCommand], { stdio: "pipe", shell: true }); buildProcess.stdout.on("data", data => { process.stdout.write(`\r${colors.yellow}Building widgets... ${data.toString().trim()}${colors.reset}`); @@ -88,11 +91,11 @@ const runYarnBuild = () => { buildProcess.on("close", code => { if (code !== 0) { - log.error(`'yarn build' failed with code ${code}`); + log.error(`'yarn ${buildCommand}' failed with code ${code}`); resolve(); return; } - log.success("\n'yarn build' completed."); + log.success(`\n'yarn ${buildCommand}' completed.`); resolve(); }); }); @@ -173,7 +176,7 @@ const main = async () => { ); if (answer.toLowerCase() !== "yes") { console.log("Operation cancelled."); - return; + process.exit(1); } } @@ -183,8 +186,10 @@ const main = async () => { await copyMPKFiles(); console.log("Script completed successfully!"); + process.exit(0); } catch (error) { console.error("Script error:", error); + process.exit(1); } };