
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@moh3n95/react-native-app-builder
Advanced tools
Multiple builds for React Native with different params
The package is in node, not react native!
Parameterized Build
Build multi-configuration project
npm install @moh3n95/react-native-app-builder
⚠️ NOTE: you can download latest bundle
macOS | Windows | Linux
Create a json file and set params
{
"projectBase": "<PROJECT_PATH>",
"settingFilePath": "<YOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT>",
"workspacePath": "<YOUR_IOS_WORKSPACE>",
"schemePath": "<YOUR_IOS_SCHEME>",
"androidParams": [
{"buildName":"<YOUR_BUILD_NAME>", "<CUSTOM_PARAM>": "<CUSTOM_VALUE>"},
...
],
"iosParams": [
{"buildName":"<YOUR_BUILD_NAME>", "<CUSTOM_PARAM>": "<CUSTOM_VALUE>"},
...
]
}
See examples here
Call function or exec bundle
// import
const RNBuilder = require("@moh3n95/react-native-app-builder");
RNBuilder(<PLATFORM>, <SETTING_FILE_PATH_OR_DIRECTLY_OBJ>).then(()=>{
// Build was successful
})
.catch(e=>{
// Raised error
});
⚠️ NOTE: execute bundle with command line arguments -->
<EXEC_FILE> <PLATFORM> <SETTING_FILE_PATH>
Expected output
---------------------------------
info BUILDING A...
success A FINISHED
---------------------------------
info BUILDING B...
success B FINISHED
---------------------------------
Platform
Value | Type |
---|---|
ios | string |
android | string |
both | string |
Setting file path
OS | Type | FileType | Sample |
---|---|---|---|
macOS | string | Json | /User/<YOUR_USER_NAME>/.../<FILE_NAME>.json |
Windows | string | Json | <YOUR_DRIVE_NAME>://.../<FILE_NAME>.json |
Any | object | None | { projectBase, ... } // Only unbundled version |
MacOS
{
"projectBase": "/Users/<YOUR_OS_USERNAME>/.../<RN_PROJECT_NAME>", // e.g. : /Users/apple/Desktop/test
"settingFilePath": "<YOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT>", // e.g. : ./app.json
"workspacePath": "<YOUR_IOS_WORKSPACE>", // e.g. : ./test
"schemePath": "<YOUR_IOS_SCHEME>", // e.g. : test
...
}
Windows
{
"projectBase": "<YOUR_DRIVE_NAME>://.../<RN_PROJECT_NAME>", // e.g. : C://test
"settingFilePath": "<YOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT>", // e.g. : ./app.json
...
}
Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.
If you think this project is helpful just give me a ⭐️ Star is enough because i don't drink coffee 😃
This project is licensed under the MIT License - see the LICENSE.md file for details
Made with ❤️ by Mohsen Madani.
FAQs
Multiple builds with different params
We found that @moh3n95/react-native-app-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.