https://github.com/moh3n9595/react-native-app-builder
🏛️ Parameterized Build for React Native
https://github.com/moh3n9595/react-native-app-builder
abtesting bundler-plugin parametrized-tests react-native
Last synced: about 1 year ago
JSON representation
🏛️ Parameterized Build for React Native
- Host: GitHub
- URL: https://github.com/moh3n9595/react-native-app-builder
- Owner: moh3n9595
- License: mit
- Created: 2019-11-25T13:47:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:30:53.000Z (over 3 years ago)
- Last Synced: 2025-03-24T21:03:35.528Z (about 1 year ago)
- Topics: abtesting, bundler-plugin, parametrized-tests, react-native
- Language: TypeScript
- Homepage:
- Size: 1.41 MB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-app-builder · [](https://circleci.com/gh/moh3n9595/react-native-app-builder) [](https://github.com/moh3n9595/react-native-app-builder/blob/master/LICENSE) [](https://github.com/moh3n9595/react-native-app-builder/compare) [](https://codecov.io/gh/moh3n9595/react-native-app-builder)
Multiple builds for [React Native](https://github.com/facebook/react-native) with different params
The package is in node, **not react native**!
## Advantages
Parameterized Build
Build multi-configuration project
## Installation
```
npm install @moh3n95/react-native-app-builder
```
> ⚠️ **NOTE:** you can [download](https://github.com/moh3n9595/react-native-app-builder/releases) latest bundle ` macOS | Windows | Linux `
## Usage
- Create a json file and set params
```
{
"projectBase": "",
"settingFilePath": "",
"workspacePath": "",
"schemePath": "",
"androidParams": [
{"buildName":"", "": ""},
...
],
"iosParams": [
{"buildName":"", "": ""},
...
]
}
```
> See examples [here](#setting-file-example)
- Call function or exec bundle
```
// import
const RNBuilder = require("@moh3n95/react-native-app-builder");
RNBuilder(, ).then(()=>{
// Build was successful
})
.catch(e=>{
// Raised error
});
```
> ⚠️ **NOTE:** execute bundle with command line arguments --> ` `
- Expected output
```
---------------------------------
info BUILDING A...
success A FINISHED
---------------------------------
info BUILDING B...
success B FINISHED
---------------------------------
```
## Arguments
- Platform
| Value | Type |
| ------- | ---------- |
| ios | `string` |
| android | `string` |
| both | `string` |
- Setting file path
| OS | Type | FileType | Sample |
| -------- | ---------- | -------- | ------------------------------------------------- |
| macOS | `string` | `Json` | `/User//.../.json` |
| Windows | `string` | `Json` | `://.../.json` |
| Any | `object` | `None` | `{ projectBase, ... } // Only unbundled version` |
## Setting file example
- MacOS
```
{
"projectBase": "/Users//.../", // e.g. : /Users/apple/Desktop/test
"settingFilePath": "", // e.g. : ./app.json
"workspacePath": "", // e.g. : ./test
"schemePath": "", // e.g. : test
...
}
```
- Windows
```
{
"projectBase": "://.../", // e.g. : C://test
"settingFilePath": "", // e.g. : ./app.json
...
}
```
## Contributing
Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.
## Todo
- Enable Hermes
- Change version code
- Change build number
- Convert xarchive to IPA
- Add Test & Deploy
## Give me a Star
If you think this project is helpful just give me a ⭐️ Star is enough because i don't drink coffee 😃
## License
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/moh3n9595/react-native-app-builder/blob/master/LICENSE) file for details
## Author
Made with ❤️ by [Mohsen Madani](https://github.com/moh3n9595).