{"id":17291157,"url":"https://github.com/moh3n9595/react-native-app-builder","last_synced_at":"2025-04-14T11:51:20.481Z","repository":{"id":40827552,"uuid":"223959119","full_name":"moh3n9595/react-native-app-builder","owner":"moh3n9595","description":"🏛️ Parameterized Build for React Native","archived":false,"fork":false,"pushed_at":"2023-01-06T04:30:53.000Z","size":1482,"stargazers_count":14,"open_issues_count":9,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T21:03:35.528Z","etag":null,"topics":["abtesting","bundler-plugin","parametrized-tests","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moh3n9595.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-25T13:47:55.000Z","updated_at":"2024-08-12T19:55:11.000Z","dependencies_parsed_at":"2023-02-05T07:46:21.089Z","dependency_job_id":null,"html_url":"https://github.com/moh3n9595/react-native-app-builder","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moh3n9595%2Freact-native-app-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moh3n9595%2Freact-native-app-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moh3n9595%2Freact-native-app-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moh3n9595%2Freact-native-app-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moh3n9595","download_url":"https://codeload.github.com/moh3n9595/react-native-app-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877986,"owners_count":21176239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abtesting","bundler-plugin","parametrized-tests","react-native"],"created_at":"2024-10-15T10:40:14.194Z","updated_at":"2025-04-14T11:51:20.447Z","avatar_url":"https://github.com/moh3n9595.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-app-builder \u0026middot; [![Circle CI](https://circleci.com/gh/moh3n9595/react-native-app-builder/tree/master.svg?style=shield)](https://circleci.com/gh/moh3n9595/react-native-app-builder) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/moh3n9595/react-native-app-builder/blob/master/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](https://github.com/moh3n9595/react-native-app-builder/compare) [![codecov](https://codecov.io/gh/moh3n9595/react-native-app-builder/branch/master/graph/badge.svg)](https://codecov.io/gh/moh3n9595/react-native-app-builder)\nMultiple builds for [React Native](https://github.com/facebook/react-native) with different params \n\n\n\nThe package is in node, **not react native**!\n\n## Advantages\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./images/AB-test.jpg\"\u003e\n  \u003cbr\u003e\n  \u003cp align=\"center\"\u003e\n    Parameterized Build\n  \u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    Build multi-configuration project\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Installation\n\n```\nnpm install @moh3n95/react-native-app-builder\n```\n\n\u003e ⚠️ **NOTE:** you can [download](https://github.com/moh3n9595/react-native-app-builder/releases) latest bundle\u0026nbsp;  ` macOS | Windows | Linux `\n\n## Usage\n\n- Create a json file and set params\n  \n    ```\n    {\n        \"projectBase\": \"\u003cPROJECT_PATH\u003e\",\n        \"settingFilePath\": \"\u003cYOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT\u003e\", \n        \"workspacePath\": \"\u003cYOUR_IOS_WORKSPACE\u003e\",\n        \"schemePath\": \"\u003cYOUR_IOS_SCHEME\u003e\",\n\n        \"androidParams\": [\n            {\"buildName\":\"\u003cYOUR_BUILD_NAME\u003e\", \"\u003cCUSTOM_PARAM\u003e\": \"\u003cCUSTOM_VALUE\u003e\"},\n            ...\n        ],\n        \"iosParams\": [\n            {\"buildName\":\"\u003cYOUR_BUILD_NAME\u003e\", \"\u003cCUSTOM_PARAM\u003e\": \"\u003cCUSTOM_VALUE\u003e\"},\n            ...\n        ]\n    }\n    ```\n    \u003e  See examples [here](#setting-file-example)\n- Call function or exec bundle\n\n    ```\n    // import\n    const RNBuilder = require(\"@moh3n95/react-native-app-builder\");\n\n    RNBuilder(\u003cPLATFORM\u003e, \u003cSETTING_FILE_PATH_OR_DIRECTLY_OBJ\u003e).then(()=\u003e{\n        // Build was successful\n    })\n    .catch(e=\u003e{\n        // Raised error\n    });\n    ```\n\n    \u003e ⚠️ **NOTE:** execute bundle with command line arguments --\u003e `\u003cEXEC_FILE\u003e \u003cPLATFORM\u003e \u003cSETTING_FILE_PATH\u003e`\n\n- Expected output\n    ```\n    ---------------------------------\n\n    info BUILDING A...\n\n    success A FINISHED\n\n    ---------------------------------\n\n    info BUILDING B...\n\n    success B FINISHED\n\n    ---------------------------------\n    ```\n\n\n## Arguments\n\n- Platform\n\n    |  Value  |    Type    |\n    | ------- | ---------- |\n    |   ios   |  `string`  |\n    | android |  `string`  |\n    | both    |  `string`  |\n\n\n- Setting file path\n\n    |    OS    |    Type    | FileType |                     Sample                        |\n    | -------- | ---------- | -------- | ------------------------------------------------- |\n    | macOS    |  `string`  | `Json`   |  `/User/\u003cYOUR_USER_NAME\u003e/.../\u003cFILE_NAME\u003e.json`    |\n    | Windows  |  `string`  | `Json`   |  `\u003cYOUR_DRIVE_NAME\u003e://.../\u003cFILE_NAME\u003e.json`       |\n    | Any      |  `object`  | `None`   |  `{ projectBase, ... } // Only unbundled version` |\n\n\n## Setting file example\n- MacOS\n    ```\n    {\n        \"projectBase\": \"/Users/\u003cYOUR_OS_USERNAME\u003e/.../\u003cRN_PROJECT_NAME\u003e\", // e.g. : /Users/apple/Desktop/test\n        \"settingFilePath\": \"\u003cYOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT\u003e\", // e.g. : ./app.json\n        \"workspacePath\": \"\u003cYOUR_IOS_WORKSPACE\u003e\", // e.g. : ./test\n        \"schemePath\": \"\u003cYOUR_IOS_SCHEME\u003e\", // e.g. : test \n\n        ...\n    }\n    ```\n\n- Windows\n    ```\n    {\n        \"projectBase\": \"\u003cYOUR_DRIVE_NAME\u003e://.../\u003cRN_PROJECT_NAME\u003e\", // e.g. : C://test\n        \"settingFilePath\": \"\u003cYOUR_JSON_SETTING_IN_REACT_NATIVE_PROJECT\u003e\", // e.g. : ./app.json\n\n        ...\n    }\n    ```\n\n## Contributing\n\nThank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.\n\n## Todo\n- Enable Hermes\n- Change version code\n- Change build number\n- Convert xarchive to IPA\n- Add Test \u0026 Deploy\n\n## Give me a Star\n\nIf you think this project is helpful just give me a ⭐️ Star is enough because i don't drink coffee 😃\n\n## License\n\nThis 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\n\n## Author\n\nMade with ❤️ by [Mohsen Madani](https://github.com/moh3n9595).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoh3n9595%2Freact-native-app-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoh3n9595%2Freact-native-app-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoh3n9595%2Freact-native-app-builder/lists"}