Skip to content

Commit 1da5c6b

Browse files
Ahmed ElsayedUrazAkgultan
authored andcommitted
fix(mobile-resources-native): update changelog
1 parent ba95d30 commit 1da5c6b

File tree

7 files changed

+41
-12
lines changed

7 files changed

+41
-12
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"setup-android": "node ./detox/scripts/setup-android.js",
3535
"setup-ios": "node ./detox/scripts/setup-ios.js",
3636
"patch-package": "./scripts/patch/patch-package.sh",
37-
"build:widgets": "node ./scripts/widget/buildWidgets.js"
37+
"build:widgets": "node ./scripts/widget/buildWidgets.js",
38+
"build:widgets:dev": "node ./scripts/widget/buildWidgets.js --delete-dist --dev"
3839
},
3940
"workspaces": {
4041
"packages": [

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

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

77
## [Unreleased]
88

9-
### Changed
9+
## [6.0.2] Native Mobile Resources - 2024-03-29
10+
11+
### Fixed
12+
13+
- Fixed an Android issue in Download file action with encrypted files enabled projects.
14+
15+
## [6.0.1] Native Mobile Resources - 2024-02-02
16+
17+
[2.2.1] - Accordion
18+
19+
### Fixed
20+
21+
- Fixed a bug where the accordion state was not updating correctly when the "Collapsed" attribute was selected.
22+
23+
- Resolved an issue where the accordion's dynamic content was not updating its height after the initial render.
24+
25+
## [1.0.3] - Gallery
26+
27+
### Fixed
1028

11-
- fixed an Android issue in Download file action.
29+
- 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.
1230

1331
## [6.0.0] Native Mobile Resources - 2024-01-24
1432

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

Lines changed: 1 addition & 1 deletion
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": "6.0.0",
4+
"version": "6.0.2",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
77
"repository": {

packages/pluggableWidgets/accordion-native/CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [2.2.1] - 2024-01-02
10+
911
### Fixed
1012

1113
- Fixed a bug where the accordion state was not updating correctly when the "Collapsed" attribute was selected.

packages/pluggableWidgets/floating-action-button-native/CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [4.0.2] - 2023-04-05
10+
911
### Fixed
1012

1113
- We have fixed an issue where icons within Floating Action Buttons were not properly centered.

scripts/widget/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ When running the build script, all widgets are built individually within their r
88

99
## Usage
1010

11-
The script supports two parameters:
11+
The script supports these parameters:
1212

13-
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.
13+
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.
1414
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.
15+
3. `--dev`: Specifies the build to be in development mode.
1516

1617
## Running the Script
1718

scripts/widget/buildWidgets.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const readline = require("readline");
55

66
const deleteDist = process.argv.includes("--delete-dist");
77
const skipYarnBuild = process.argv.includes("--skip-build");
8+
const devMode = process.argv.includes("--dev");
9+
810
const rl = readline.createInterface({
911
input: process.stdin,
1012
output: process.stdout
@@ -69,14 +71,15 @@ const deleteDistFolders = () => {
6971

7072
const runYarnBuild = () => {
7173
return new Promise((resolve, reject) => {
74+
const buildCommand = devMode ? "build" : "release";
7275
if (skipYarnBuild) {
73-
log.warning("Skipping 'yarn build'...");
76+
log.warning(`Skipping 'yarn ${buildCommand}'...`);
7477
resolve();
7578
return;
7679
}
77-
log.info("Running 'yarn build'...");
80+
log.info(`Running 'yarn ${buildCommand}'...`);
7881

79-
const buildProcess = spawn("yarn", ["build"], { stdio: "pipe", shell: true });
82+
const buildProcess = spawn("yarn", [buildCommand], { stdio: "pipe", shell: true });
8083

8184
buildProcess.stdout.on("data", data => {
8285
process.stdout.write(`\r${colors.yellow}Building widgets... ${data.toString().trim()}${colors.reset}`);
@@ -88,11 +91,11 @@ const runYarnBuild = () => {
8891

8992
buildProcess.on("close", code => {
9093
if (code !== 0) {
91-
log.error(`'yarn build' failed with code ${code}`);
94+
log.error(`'yarn ${buildCommand}' failed with code ${code}`);
9295
resolve();
9396
return;
9497
}
95-
log.success("\n'yarn build' completed.");
98+
log.success(`\n'yarn ${buildCommand}' completed.`);
9699
resolve();
97100
});
98101
});
@@ -173,7 +176,7 @@ const main = async () => {
173176
);
174177
if (answer.toLowerCase() !== "yes") {
175178
console.log("Operation cancelled.");
176-
return;
179+
process.exit(1);
177180
}
178181
}
179182

@@ -183,8 +186,10 @@ const main = async () => {
183186

184187
await copyMPKFiles();
185188
console.log("Script completed successfully!");
189+
process.exit(0);
186190
} catch (error) {
187191
console.error("Script error:", error);
192+
process.exit(1);
188193
}
189194
};
190195

0 commit comments

Comments
 (0)