Skip to content

Commit

Permalink
fix(mobile-resources-native): update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Elsayed authored and UrazAkgultan committed Apr 11, 2024
1 parent ba95d30 commit 1da5c6b
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 12 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
22 changes: 20 additions & 2 deletions packages/jsActions/mobile-resources-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/jsActions/mobile-resources-native/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions packages/pluggableWidgets/accordion-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions scripts/widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 11 additions & 6 deletions scripts/widget/buildWidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}`);
Expand All @@ -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();
});
});
Expand Down Expand Up @@ -173,7 +176,7 @@ const main = async () => {
);
if (answer.toLowerCase() !== "yes") {
console.log("Operation cancelled.");
return;
process.exit(1);
}
}

Expand All @@ -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);
}
};

Expand Down

0 comments on commit 1da5c6b

Please sign in to comment.