@callstack/react-native-brownfield 2.0.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,41 @@
1
+ # @callstack/react-native-brownfield
2
+
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#212](https://github.com/callstack/react-native-brownfield/pull/212) [`4728945`](https://github.com/callstack/react-native-brownfield/commit/47289457b9bdbe50cf3c65a78c7f1d9d555dca9c) Thanks [@gronxb](https://github.com/gronxb)! - feat(ios): add bundleURL provider for dynamic bundle loading
8
+
9
+ ### Patch Changes
10
+
11
+ - [#216](https://github.com/callstack/react-native-brownfield/pull/216) [`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d) Thanks [@thymikee](https://github.com/thymikee)! - chore: remove release-it
12
+
13
+ - Updated dependencies [[`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d)]:
14
+ - @callstack/brownfield-cli@1.0.4
15
+
16
+ ## 2.1.1
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`2347775`](https://github.com/callstack/react-native-brownfield/commit/23477753b16ee189b82c1aee3eac98a56c79f52a)]:
21
+ - @callstack/brownfield-cli@1.0.3
22
+
23
+ ## 2.1.0
24
+
25
+ ### Minor Changes
26
+
27
+ - [#207](https://github.com/callstack/react-native-brownfield/pull/207) [`feb7ed2`](https://github.com/callstack/react-native-brownfield/commit/feb7ed2e821112576ec89d6eb17e8ea411aeaa02) Thanks [@artus9033](https://github.com/artus9033)! - feat(android): allow bundle file path
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [[`2a8563f`](https://github.com/callstack/react-native-brownfield/commit/2a8563f65ed152054ad1290caf963791a368ee9a)]:
32
+ - @callstack/brownfield-cli@1.0.2
33
+
34
+ ## 2.0.2
35
+
36
+ ### Patch Changes
37
+
38
+ - [#198](https://github.com/callstack/react-native-brownfield/pull/198) [`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25) Thanks [@artus9033](https://github.com/artus9033)! - docs: added README files to all packages
39
+
40
+ - Updated dependencies [[`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25)]:
41
+ - @callstack/brownfield-cli@1.0.1
package/README.md CHANGED
@@ -46,19 +46,6 @@ React Native Brownfield is an open source project and will always remain free to
46
46
 
47
47
  Like the project? ⚛️ [Join the team](https://callstack.com/careers/?utm_campaign=Senior_RN&utm_source=github&utm_medium=readme) who does amazing stuff for clients and drives React Native Open Source! 🔥
48
48
 
49
- ## Contributors
50
-
51
- Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
52
-
53
- <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
54
- <!-- prettier-ignore -->
55
- | [<img src="https://avatars0.githubusercontent.com/u/7837457?s=460&v=4" width="100px;" alt="Michał Chudziak"/><br /><sub><b>Michał Chudziak</b></sub>](https://twitter.com/michalchudziak)<br />[💻](https://github.com/callstack/react-native-brownfield/commits?author=michalchudziak "Code") [📖](https://github.com/callstack/react-native-brownfield/commits?author=michalchudziak "Documentation") [🤔](#ideas-michalchudziak "Ideas, Planning, & Feedback") | [<img src="https://avatars1.githubusercontent.com/u/16336501?s=400&v=4" width="100px;" alt="Piotr Drapich"/><br /><sub><b>Piotr Drapich</b></sub>](https://twitter.com/dratwas)<br />[💻](https://github.com/callstack/react-native-brownfield/commits?author=dratwas "Code") [🤔](#ideas-dratwas "Ideas, Planning, & Feedback") |
56
- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
57
-
58
- <!-- ALL-CONTRIBUTORS-LIST:END -->
59
-
60
- This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
61
-
62
49
  <!-- badges -->
63
50
 
64
51
  [build-badge]: https://img.shields.io/circleci/build/github/callstack/react-native-brownfield/master.svg?style=flat-square
@@ -72,9 +59,8 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
72
59
  [prs-welcome]: http://makeapullrequest.com
73
60
  [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
74
61
  [coc]: https://github.com/callstack/react-native-brownfield/blob/master/CODE_OF_CONDUCT.md
75
- [all-contributors-badge]: https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square
76
- [chat-badge]: https://img.shields.io/discord/613446453762719798.svg?style=flat-square&colorB=758ED3
77
- [chat]: https://discord.gg/2SR9Mua
62
+ [chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=flat-square&colorB=758ED3
63
+ [chat]: https://discord.gg/FdWTckBk
78
64
  [tweet-badge]: https://img.shields.io/badge/tweet-%23reactnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
79
65
  [tweet]: https://twitter.com/intent/tweet?text=Check%20out%20react-native-brownfield!%20https://github.com/callstack/react-native-brownfield%20%F0%9F%91%8D
80
66
  [callstack-badge]: https://callstack.com/images/callstack-badge.svg
@@ -78,6 +78,7 @@ class ReactNativeBrownfield private constructor(val reactHost: ReactHost) {
78
78
  .filterIsInstance<ReactPackage>(),
79
79
  jsMainModulePath = options["mainModuleName"] as? String ?: "index",
80
80
  jsBundleAssetPath = options["bundleAssetPath"] as? String ?: "index.android.bundle",
81
+ jsBundleFilePath = options["bundleFilePath"] as? String,
81
82
  useDevSupport = options["useDeveloperSupport"] as? Boolean
82
83
  ?: ReactBuildConfig.DEBUG,
83
84
  jsRuntimeFactory = null
@@ -7,6 +7,7 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
7
7
  var entryFile = "index"
8
8
  var bundlePath = "main.jsbundle"
9
9
  var bundle = Bundle.main
10
+ var bundleURLOverride: (() -> URL?)? = nil
10
11
  // MARK: - RCTReactNativeFactoryDelegate Methods
11
12
 
12
13
  override func sourceURL(for bridge: RCTBridge) -> URL? {
@@ -14,6 +15,10 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
14
15
  }
15
16
 
16
17
  public override func bundleURL() -> URL? {
18
+ if let bundleURLProvider = bundleURLOverride {
19
+ return bundleURLProvider()
20
+ }
21
+
17
22
  #if DEBUG
18
23
  return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: entryFile)
19
24
  #else
@@ -64,6 +69,17 @@ class ReactNativeBrownfieldDelegate: RCTDefaultReactNativeFactoryDelegate {
64
69
  delegate.bundle = bundle
65
70
  }
66
71
  }
72
+ /**
73
+ * Dynamic bundle URL provider called on every bundle load.
74
+ * When set, this overrides the default bundleURL() behavior in the delegate.
75
+ * Returns a URL to load a custom bundle, or nil to use default behavior.
76
+ * Default value: nil
77
+ */
78
+ @objc public var bundleURLOverride: (() -> URL?)? = nil {
79
+ didSet {
80
+ delegate.bundleURLOverride = bundleURLOverride
81
+ }
82
+ }
67
83
  /**
68
84
  * React Native factory instance created when starting React Native.
69
85
  * Default value: nil
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/react-native-brownfield",
3
- "version": "2.0.2",
3
+ "version": "2.2.0",
4
4
  "license": "MIT",
5
5
  "author": "Michal Chudziak <mike.chudziak@callstack.com>",
6
6
  "bin": {
@@ -73,7 +73,7 @@
73
73
  "react-native": "*"
74
74
  },
75
75
  "dependencies": {
76
- "@callstack/brownfield-cli": "workspace:^"
76
+ "@callstack/brownfield-cli": "^1.0.4"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@babel/core": "^7.25.2",
@@ -102,4 +102,4 @@
102
102
  "engines": {
103
103
  "node": ">=20"
104
104
  }
105
- }
105
+ }