@callstack/react-native-brownfield 3.15.0 → 4.1.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.
Files changed (114) hide show
  1. package/gradle-plugin/brownfield/config/detekt/detekt.yml +1 -1
  2. package/gradle-plugin/brownfield/gradle.properties +1 -1
  3. package/gradle-plugin/brownfield/gradlew +0 -0
  4. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/expo/utils/LocalMavenUtils.kt +2 -5
  5. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/plugin/ProjectConfigurations.kt +3 -5
  6. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/plugin/RNBrownfieldPlugin.kt +21 -26
  7. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/plugin/RNSourceSets.kt +23 -28
  8. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/AssetTaskProcessor.kt +4 -16
  9. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/ExplodeTaskProvider.kt +6 -7
  10. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/JNILibsProcessor.kt +133 -110
  11. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/ManifestTaskProcessor.kt +25 -61
  12. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/MergeProcessor.kt +7 -29
  13. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/ProguardProcessor.kt +9 -46
  14. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/ResourceTaskProcessor.kt +4 -13
  15. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/VariantHelper.kt +52 -47
  16. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/VariantTaskProvider.kt +31 -63
  17. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/BundleTaskProvider.kt +72 -27
  18. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/Constants.kt +0 -1
  19. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/ExplodeAarTask.kt +2 -20
  20. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/Logging.kt +1 -1
  21. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/MergeClassesTask.kt +70 -0
  22. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/shared/MergeLibraryManifestTask.kt +178 -0
  23. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/utils/AndroidArchiveLibrary.kt +0 -4
  24. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/utils/DirectoryManager.kt +0 -5
  25. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/utils/Extension.kt +8 -9
  26. package/gradle-plugin/brownfield/src/main/kotlin/com/callstack/react/brownfield/utils/Utils.kt +2 -34
  27. package/lib/commonjs/expo-config-plugin/android/utils/constants.js +1 -1
  28. package/lib/commonjs/expo-config-plugin/android/utils/formatHelpers.js +2 -0
  29. package/lib/commonjs/expo-config-plugin/android/utils/formatHelpers.js.map +1 -0
  30. package/lib/commonjs/expo-config-plugin/android/utils/gradleHelpers.js +1 -1
  31. package/lib/commonjs/expo-config-plugin/android/utils/gradleHelpers.js.map +1 -1
  32. package/lib/commonjs/expo-config-plugin/android/withAndroidModuleFiles.js +1 -1
  33. package/lib/commonjs/expo-config-plugin/android/withAndroidModuleFiles.js.map +1 -1
  34. package/lib/commonjs/expo-config-plugin/android/withBrownfieldAndroid.js +1 -1
  35. package/lib/commonjs/expo-config-plugin/android/withBrownfieldAndroid.js.map +1 -1
  36. package/lib/commonjs/expo-config-plugin/expoUtils.js +1 -1
  37. package/lib/commonjs/expo-config-plugin/expoUtils.js.map +1 -1
  38. package/lib/commonjs/expo-config-plugin/ios/podfileHelpers.js +2 -8
  39. package/lib/commonjs/expo-config-plugin/ios/podfileHelpers.js.map +1 -1
  40. package/lib/commonjs/expo-config-plugin/ios/withBrownfieldIos.js +1 -1
  41. package/lib/commonjs/expo-config-plugin/ios/withBrownfieldIos.js.map +1 -1
  42. package/lib/commonjs/expo-config-plugin/ios/xcodeHelpers.js +2 -2
  43. package/lib/commonjs/expo-config-plugin/ios/xcodeHelpers.js.map +1 -1
  44. package/lib/commonjs/expo-config-plugin/template/android/build.gradle.kts +6 -0
  45. package/lib/commonjs/scripts/brownfield.js +0 -0
  46. package/lib/module/expo-config-plugin/android/utils/constants.js +1 -1
  47. package/lib/module/expo-config-plugin/android/utils/formatHelpers.js +2 -0
  48. package/lib/module/expo-config-plugin/android/utils/formatHelpers.js.map +1 -0
  49. package/lib/module/expo-config-plugin/android/utils/gradleHelpers.js +1 -1
  50. package/lib/module/expo-config-plugin/android/utils/gradleHelpers.js.map +1 -1
  51. package/lib/module/expo-config-plugin/android/withAndroidModuleFiles.js +1 -1
  52. package/lib/module/expo-config-plugin/android/withAndroidModuleFiles.js.map +1 -1
  53. package/lib/module/expo-config-plugin/android/withBrownfieldAndroid.js +1 -1
  54. package/lib/module/expo-config-plugin/android/withBrownfieldAndroid.js.map +1 -1
  55. package/lib/module/expo-config-plugin/expoUtils.js +1 -1
  56. package/lib/module/expo-config-plugin/expoUtils.js.map +1 -1
  57. package/lib/module/expo-config-plugin/ios/podfileHelpers.js +2 -8
  58. package/lib/module/expo-config-plugin/ios/podfileHelpers.js.map +1 -1
  59. package/lib/module/expo-config-plugin/ios/withBrownfieldIos.js +1 -1
  60. package/lib/module/expo-config-plugin/ios/withBrownfieldIos.js.map +1 -1
  61. package/lib/module/expo-config-plugin/ios/xcodeHelpers.js +2 -2
  62. package/lib/module/expo-config-plugin/ios/xcodeHelpers.js.map +1 -1
  63. package/lib/module/expo-config-plugin/template/android/build.gradle.kts +6 -0
  64. package/lib/typescript/commonjs/src/expo-config-plugin/android/utils/constants.d.ts +2 -2
  65. package/lib/typescript/commonjs/src/expo-config-plugin/android/utils/formatHelpers.d.ts +2 -0
  66. package/lib/typescript/commonjs/src/expo-config-plugin/android/utils/formatHelpers.d.ts.map +1 -0
  67. package/lib/typescript/commonjs/src/expo-config-plugin/android/utils/gradleHelpers.d.ts +7 -0
  68. package/lib/typescript/commonjs/src/expo-config-plugin/android/utils/gradleHelpers.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts +1 -5
  70. package/lib/typescript/commonjs/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts.map +1 -1
  72. package/lib/typescript/commonjs/src/expo-config-plugin/expoUtils.d.ts +0 -1
  73. package/lib/typescript/commonjs/src/expo-config-plugin/expoUtils.d.ts.map +1 -1
  74. package/lib/typescript/commonjs/src/expo-config-plugin/ios/podfileHelpers.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/src/expo-config-plugin/ios/withBrownfieldIos.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/src/expo-config-plugin/ios/xcodeHelpers.d.ts +0 -16
  77. package/lib/typescript/commonjs/src/expo-config-plugin/ios/xcodeHelpers.d.ts.map +1 -1
  78. package/lib/typescript/commonjs/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts +5 -0
  79. package/lib/typescript/commonjs/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts.map +1 -1
  80. package/lib/typescript/module/src/expo-config-plugin/android/utils/constants.d.ts +2 -2
  81. package/lib/typescript/module/src/expo-config-plugin/android/utils/formatHelpers.d.ts +2 -0
  82. package/lib/typescript/module/src/expo-config-plugin/android/utils/formatHelpers.d.ts.map +1 -0
  83. package/lib/typescript/module/src/expo-config-plugin/android/utils/gradleHelpers.d.ts +7 -0
  84. package/lib/typescript/module/src/expo-config-plugin/android/utils/gradleHelpers.d.ts.map +1 -1
  85. package/lib/typescript/module/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts +1 -5
  86. package/lib/typescript/module/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts.map +1 -1
  87. package/lib/typescript/module/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts.map +1 -1
  88. package/lib/typescript/module/src/expo-config-plugin/expoUtils.d.ts +0 -1
  89. package/lib/typescript/module/src/expo-config-plugin/expoUtils.d.ts.map +1 -1
  90. package/lib/typescript/module/src/expo-config-plugin/ios/podfileHelpers.d.ts.map +1 -1
  91. package/lib/typescript/module/src/expo-config-plugin/ios/withBrownfieldIos.d.ts.map +1 -1
  92. package/lib/typescript/module/src/expo-config-plugin/ios/xcodeHelpers.d.ts +0 -16
  93. package/lib/typescript/module/src/expo-config-plugin/ios/xcodeHelpers.d.ts.map +1 -1
  94. package/lib/typescript/module/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts +5 -0
  95. package/lib/typescript/module/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts.map +1 -1
  96. package/package.json +3 -3
  97. package/src/expo-config-plugin/android/utils/constants.ts +1 -1
  98. package/src/expo-config-plugin/android/utils/formatHelpers.ts +7 -0
  99. package/src/expo-config-plugin/android/utils/gradleHelpers.ts +41 -0
  100. package/src/expo-config-plugin/android/withAndroidModuleFiles.ts +23 -31
  101. package/src/expo-config-plugin/android/withBrownfieldAndroid.ts +16 -3
  102. package/src/expo-config-plugin/expoUtils.ts +1 -2
  103. package/src/expo-config-plugin/ios/podfileHelpers.ts +8 -52
  104. package/src/expo-config-plugin/ios/withBrownfieldIos.ts +1 -25
  105. package/src/expo-config-plugin/ios/xcodeHelpers.ts +0 -99
  106. package/src/expo-config-plugin/template/android/build.gradle.kts +6 -0
  107. package/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.ts +6 -0
  108. package/CHANGELOG.md +0 -287
  109. package/lib/commonjs/expo-config-plugin/template/android/ReactNativeHostManager.pre55.kt +0 -52
  110. package/lib/commonjs/expo-config-plugin/template/ios/patchExpoPre55.sh +0 -22
  111. package/lib/module/expo-config-plugin/template/android/ReactNativeHostManager.pre55.kt +0 -52
  112. package/lib/module/expo-config-plugin/template/ios/patchExpoPre55.sh +0 -22
  113. package/src/expo-config-plugin/template/android/ReactNativeHostManager.pre55.kt +0 -52
  114. package/src/expo-config-plugin/template/ios/patchExpoPre55.sh +0 -22
package/CHANGELOG.md DELETED
@@ -1,287 +0,0 @@
1
- # @callstack/react-native-brownfield
2
-
3
- ## 3.15.0
4
-
5
- ### Minor Changes
6
-
7
- - [#410](https://github.com/callstack/react-native-brownfield/pull/410) [`03c2496`](https://github.com/callstack/react-native-brownfield/commit/03c2496989fdafdc0863a97f01df9b7f5cd78a55) Thanks [@hurali97](https://github.com/hurali97)! - bump brownfield-gradle-plugin
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies []:
12
- - @callstack/brownfield-cli@3.15.0
13
-
14
- ## 3.14.0
15
-
16
- ### Minor Changes
17
-
18
- - [#360](https://github.com/callstack/react-native-brownfield/pull/360) [`10ff597`](https://github.com/callstack/react-native-brownfield/commit/10ff597c057c04aa093b4e5ae8c5334b169d3d56) Thanks [@adamTrz](https://github.com/adamTrz)! - Expo SDK 56 support
19
-
20
- ### Patch Changes
21
-
22
- - Updated dependencies [[`10ff597`](https://github.com/callstack/react-native-brownfield/commit/10ff597c057c04aa093b4e5ae8c5334b169d3d56)]:
23
- - @callstack/brownfield-cli@3.14.0
24
-
25
- ## 3.13.2
26
-
27
- ### Patch Changes
28
-
29
- - [#401](https://github.com/callstack/react-native-brownfield/pull/401) [`c4410f6`](https://github.com/callstack/react-native-brownfield/commit/c4410f6af4c781cf3513ba55d03fa1b1055a443b) Thanks [@artus9033](https://github.com/artus9033)! - fix: brownfield Gradle Plugin not to depend on \*UpdatesResources task from expo-updates if it is absent
30
-
31
- - [#398](https://github.com/callstack/react-native-brownfield/pull/398) [`8e90842`](https://github.com/callstack/react-native-brownfield/commit/8e90842291348dcb0542a6787f5cfbb1017532dd) Thanks [@artus9033](https://github.com/artus9033)! - feat: support brownfield unified config file in Expo
32
-
33
- - [#402](https://github.com/callstack/react-native-brownfield/pull/402) [`3475c3d`](https://github.com/callstack/react-native-brownfield/commit/3475c3db375988ebd63ce01bfd93f4dbb1a55e8d) Thanks [@artus9033](https://github.com/artus9033)! - feat: support local BGP in Expo config plugin
34
-
35
- - Updated dependencies [[`8e90842`](https://github.com/callstack/react-native-brownfield/commit/8e90842291348dcb0542a6787f5cfbb1017532dd), [`3475c3d`](https://github.com/callstack/react-native-brownfield/commit/3475c3db375988ebd63ce01bfd93f4dbb1a55e8d), [`4088c01`](https://github.com/callstack/react-native-brownfield/commit/4088c01a069306565dd3e279d9132f5dbe861d0b)]:
36
- - @callstack/brownfield-cli@3.13.2
37
-
38
- ## 3.13.1
39
-
40
- ### Patch Changes
41
-
42
- - Updated dependencies [[`89bc23c`](https://github.com/callstack/react-native-brownfield/commit/89bc23c00bb85c036fce6d4ea142fb3ba0846deb)]:
43
- - @callstack/brownfield-cli@3.13.1
44
-
45
- ## 3.13.0
46
-
47
- ### Minor Changes
48
-
49
- - [#359](https://github.com/callstack/react-native-brownfield/pull/359) [`533569b`](https://github.com/callstack/react-native-brownfield/commit/533569b59a4981669dfb738295b505343623bc32) Thanks [@MrMuzyk](https://github.com/MrMuzyk)! - Expose the Brownfield Android Gradle Plugin source from the npm package for opt-in local patching.
50
-
51
- - [#339](https://github.com/callstack/react-native-brownfield/pull/339) [`ef835b5`](https://github.com/callstack/react-native-brownfield/commit/ef835b52a130e4cd8770a2db04402cbb066b9c27) Thanks [@Esemesek](https://github.com/Esemesek)! - Added configuration file support for react-native-brownfield packages.
52
-
53
- ### Patch Changes
54
-
55
- - [#391](https://github.com/callstack/react-native-brownfield/pull/391) [`95dbb43`](https://github.com/callstack/react-native-brownfield/commit/95dbb434d4c526b8f75bfd4c54b1d023e349ccf4) Thanks [@adamTrz](https://github.com/adamTrz)! - Fix Expo iOS framework debug bundle packaging so Debug builds load from Metro when it is available and fall back to embedded bundles without dev-server-only runtime code.
56
-
57
- - Updated dependencies [[`ef835b5`](https://github.com/callstack/react-native-brownfield/commit/ef835b52a130e4cd8770a2db04402cbb066b9c27)]:
58
- - @callstack/brownfield-cli@3.13.0
59
-
60
- ## 3.12.0
61
-
62
- ### Minor Changes
63
-
64
- - [#237](https://github.com/callstack/react-native-brownfield/pull/237) [`4186cc8`](https://github.com/callstack/react-native-brownfield/commit/4186cc8e2ed2fa7aa41e84cdba7a23f7035ee08d) Thanks [@hurali97](https://github.com/hurali97)! - Bump brownfield-gradle-plugin
65
-
66
- ### Patch Changes
67
-
68
- - Updated dependencies []:
69
- - @callstack/brownfield-cli@3.12.0
70
-
71
- ## 3.11.0
72
-
73
- ### Minor Changes
74
-
75
- - [#317](https://github.com/callstack/react-native-brownfield/pull/317) [`c04301b`](https://github.com/callstack/react-native-brownfield/commit/c04301b79d288ab108aaa44d7c79dd876b8405e9) Thanks [@adamTrz](https://github.com/adamTrz)! - Add an opt-in iOS Debug mode for loading the embedded JavaScript bundle with `preferEmbeddedBundleInDebug`, fix `bundleURLOverride` fallback behavior when the override returns `nil`, and add native bundle-resolution tests.
76
-
77
- ### Patch Changes
78
-
79
- - [#361](https://github.com/callstack/react-native-brownfield/pull/361) [`aa14eb2`](https://github.com/callstack/react-native-brownfield/commit/aa14eb26e26ea1e6075b91027237e4b41b932b57) Thanks [@hurali97](https://github.com/hurali97)! - make EXUpdates as a dependency only when installed
80
-
81
- - [#347](https://github.com/callstack/react-native-brownfield/pull/347) [`c19a81b`](https://github.com/callstack/react-native-brownfield/commit/c19a81b7502cc458d742ab947186591bb69cb261) Thanks [@marcinszalski-callstack](https://github.com/marcinszalski-callstack)! - fix: fix method to deallocate reactNativeFactory instance for expo
82
-
83
- - Updated dependencies [[`3715ac7`](https://github.com/callstack/react-native-brownfield/commit/3715ac7783000756ef1c66ecfe24a85c5e43abab), [`05c557d`](https://github.com/callstack/react-native-brownfield/commit/05c557da9e2b6fca02e6e1a0b0fe71a909bab15f)]:
84
- - @callstack/brownfield-cli@3.11.0
85
-
86
- ## 3.10.0
87
-
88
- ### Patch Changes
89
-
90
- - [#323](https://github.com/callstack/react-native-brownfield/pull/323) [`3456d3a`](https://github.com/callstack/react-native-brownfield/commit/3456d3aded18002475def4b79889979e76e1db5e) Thanks [@artus9033](https://github.com/artus9033)! - Force `BUILD_LIBRARY_FOR_DISTRIBUTION` / `SWIFT_EMIT_MODULE_INTERFACE` on the CocoaPods ReactBrownfield, Brownie and BrownfieldNavigation targets so Release builds emit `.swiftinterface` files and `xcodebuild -create-xcframework` (brownfield `package:ios`) can merge slices.
91
-
92
- - Updated dependencies [[`3456d3a`](https://github.com/callstack/react-native-brownfield/commit/3456d3aded18002475def4b79889979e76e1db5e)]:
93
- - @callstack/brownfield-cli@3.10.0
94
-
95
- ## 3.9.0
96
-
97
- ### Minor Changes
98
-
99
- - [#326](https://github.com/callstack/react-native-brownfield/pull/326) [`80e6364`](https://github.com/callstack/react-native-brownfield/commit/80e6364d405d216b3e84a6297dfe346d2f01444b) Thanks [@artus9033](https://github.com/artus9033)! - feat: strip SO files by default, deprecate experimental option in favor of useStrippedSoFiles
100
-
101
- ### Patch Changes
102
-
103
- - Updated dependencies [[`80e6364`](https://github.com/callstack/react-native-brownfield/commit/80e6364d405d216b3e84a6297dfe346d2f01444b)]:
104
- - @callstack/brownfield-cli@3.9.0
105
-
106
- ## 3.8.1
107
-
108
- ### Patch Changes
109
-
110
- - Updated dependencies [[`e78084d`](https://github.com/callstack/react-native-brownfield/commit/e78084d227a49d39d726b8c778bd56045634678d)]:
111
- - @callstack/brownfield-cli@3.8.1
112
-
113
- ## 3.8.0
114
-
115
- ### Minor Changes
116
-
117
- - [#295](https://github.com/callstack/react-native-brownfield/pull/295) [`d93dcd9`](https://github.com/callstack/react-native-brownfield/commit/d93dcd96e3b90517d718cd42b2cc773fb9795eac) Thanks [@hurali97](https://github.com/hurali97)! - add expo updates support
118
-
119
- ### Patch Changes
120
-
121
- - Updated dependencies [[`d93dcd9`](https://github.com/callstack/react-native-brownfield/commit/d93dcd96e3b90517d718cd42b2cc773fb9795eac)]:
122
- - @callstack/brownfield-cli@3.8.0
123
-
124
- ## 3.7.0
125
-
126
- ### Patch Changes
127
-
128
- - [#315](https://github.com/callstack/react-native-brownfield/pull/315) [`874332b`](https://github.com/callstack/react-native-brownfield/commit/874332b8a4cc58e945adad64cbaebfbe4d6cae88) Thanks [@marcinszalski-callstack](https://github.com/marcinszalski-callstack)! - fix: make sure native libs are loaded for RN >= 0.80
129
-
130
- - [#322](https://github.com/callstack/react-native-brownfield/pull/322) [`cbc99cf`](https://github.com/callstack/react-native-brownfield/commit/cbc99cf2bbbb8ba351a2bde3c839dd1b5dcf302b) Thanks [@marcinszalski-callstack](https://github.com/marcinszalski-callstack)! - fix: make sure android libs are loaded for expo apps
131
-
132
- - Updated dependencies [[`c153378`](https://github.com/callstack/react-native-brownfield/commit/c1533783c0a93372b3c12f08c1428766c0405226)]:
133
- - @callstack/brownfield-cli@3.7.0
134
-
135
- ## 3.6.1
136
-
137
- ### Patch Changes
138
-
139
- - [#305](https://github.com/callstack/react-native-brownfield/pull/305) [`eab53d9`](https://github.com/callstack/react-native-brownfield/commit/eab53d9f7b93f38e13185020fcf8a7af23df0d05) Thanks [@hurali97](https://github.com/hurali97)! - fix securiy vulnerabilities
140
-
141
- - Updated dependencies [[`eab53d9`](https://github.com/callstack/react-native-brownfield/commit/eab53d9f7b93f38e13185020fcf8a7af23df0d05)]:
142
- - @callstack/brownfield-cli@3.6.1
143
-
144
- ## 3.6.0
145
-
146
- ### Minor Changes
147
-
148
- - [#301](https://github.com/callstack/react-native-brownfield/pull/301) [`c8816e9`](https://github.com/callstack/react-native-brownfield/commit/c8816e9418a472e0e8a388db105121381243e496) Thanks [@marcinszalski-callstack](https://github.com/marcinszalski-callstack)! - feat: add method to deallocate reactNativeFactory instance
149
-
150
- ### Patch Changes
151
-
152
- - Updated dependencies [[`5ac357b`](https://github.com/callstack/react-native-brownfield/commit/5ac357bb8802ecf3562d92be191f6681ae94a055)]:
153
- - @callstack/brownfield-cli@3.6.0
154
-
155
- ## 3.5.1
156
-
157
- ### Patch Changes
158
-
159
- - [#288](https://github.com/callstack/react-native-brownfield/pull/288) [`096cc3b`](https://github.com/callstack/react-native-brownfield/commit/096cc3bbf580d9bf22374fa8b67021d2f29e211c) Thanks [@marcinszalski-callstack](https://github.com/marcinszalski-callstack)! - fix: restore back-button propagation from native to RN
160
-
161
- - Updated dependencies []:
162
- - @callstack/brownfield-cli@3.5.1
163
-
164
- ## 3.5.0
165
-
166
- ### Minor Changes
167
-
168
- - [#257](https://github.com/callstack/react-native-brownfield/pull/257) [`d0e6203`](https://github.com/callstack/react-native-brownfield/commit/d0e62039c8a080c648abbbeace047e72fadce28b) Thanks [@hurali97](https://github.com/hurali97)! - add brownie android
169
-
170
- ### Patch Changes
171
-
172
- - Updated dependencies [[`d0e6203`](https://github.com/callstack/react-native-brownfield/commit/d0e62039c8a080c648abbbeace047e72fadce28b)]:
173
- - @callstack/brownfield-cli@3.5.0
174
-
175
- ## 3.4.0
176
-
177
- ### Minor Changes
178
-
179
- - [#268](https://github.com/callstack/react-native-brownfield/pull/268) [`e174e50`](https://github.com/callstack/react-native-brownfield/commit/e174e5018593f689f950b17241c528f53fb71500) Thanks [@artus9033](https://github.com/artus9033)! - feat: support linking in Expo and vanilla
180
-
181
- ### Patch Changes
182
-
183
- - [#246](https://github.com/callstack/react-native-brownfield/pull/246) [`5484065`](https://github.com/callstack/react-native-brownfield/commit/5484065da9dc86a420af2be692fcdefa32fbb2af) Thanks [@artus9033](https://github.com/artus9033)! - chore: upgrade dependencies
184
-
185
- - [#275](https://github.com/callstack/react-native-brownfield/pull/275) [`dd8b8a0`](https://github.com/callstack/react-native-brownfield/commit/dd8b8a0b532fe779c1f2ce018577ad748b887ee0) Thanks [@artus9033](https://github.com/artus9033)! - fix: support custom app project name in Gradle plugin via extension's appProjectName config field
186
-
187
- - [#275](https://github.com/callstack/react-native-brownfield/pull/275) [`dd8b8a0`](https://github.com/callstack/react-native-brownfield/commit/dd8b8a0b532fe779c1f2ce018577ad748b887ee0) Thanks [@artus9033](https://github.com/artus9033)! - chore: bump up Gradle plugin version
188
-
189
- - [#246](https://github.com/callstack/react-native-brownfield/pull/246) [`5484065`](https://github.com/callstack/react-native-brownfield/commit/5484065da9dc86a420af2be692fcdefa32fbb2af) Thanks [@artus9033](https://github.com/artus9033)! - chore: upgrade dependencies
190
-
191
- - Updated dependencies [[`5484065`](https://github.com/callstack/react-native-brownfield/commit/5484065da9dc86a420af2be692fcdefa32fbb2af), [`dd8b8a0`](https://github.com/callstack/react-native-brownfield/commit/dd8b8a0b532fe779c1f2ce018577ad748b887ee0), [`54ab7ab`](https://github.com/callstack/react-native-brownfield/commit/54ab7ab01bd6f95439cc8b702d4124552e22ad55), [`5484065`](https://github.com/callstack/react-native-brownfield/commit/5484065da9dc86a420af2be692fcdefa32fbb2af)]:
192
- - @callstack/brownfield-cli@3.4.0
193
-
194
- ## 3.3.0
195
-
196
- ### Minor Changes
197
-
198
- - [#248](https://github.com/callstack/react-native-brownfield/pull/248) [`b0a6f41`](https://github.com/callstack/react-native-brownfield/commit/b0a6f4185aad4e8759b90ccaf9867be493a979ec) Thanks [@artus9033](https://github.com/artus9033)! - feat: support Expo 55
199
-
200
- ### Patch Changes
201
-
202
- - Updated dependencies [[`b0a6f41`](https://github.com/callstack/react-native-brownfield/commit/b0a6f4185aad4e8759b90ccaf9867be493a979ec)]:
203
- - @callstack/brownfield-cli@3.3.0
204
-
205
- ## 3.2.1
206
-
207
- ### Patch Changes
208
-
209
- - [#265](https://github.com/callstack/react-native-brownfield/pull/265) [`7e114e6`](https://github.com/callstack/react-native-brownfield/commit/7e114e676fc290a54912b4d99bd22952b2f7380d) Thanks [@hurali97](https://github.com/hurali97)! - version bump
210
-
211
- - Updated dependencies [[`7e114e6`](https://github.com/callstack/react-native-brownfield/commit/7e114e676fc290a54912b4d99bd22952b2f7380d)]:
212
- - @callstack/brownfield-cli@3.2.1
213
-
214
- ## 3.2.0
215
-
216
- ### Minor Changes
217
-
218
- - [#263](https://github.com/callstack/react-native-brownfield/pull/263) [`b7dfa7e`](https://github.com/callstack/react-native-brownfield/commit/b7dfa7e30e1a921bb7ac0952e23481ee081fb9ed) Thanks [@hurali97](https://github.com/hurali97)! - version bump for release
219
-
220
- ### Patch Changes
221
-
222
- - Updated dependencies [[`b7dfa7e`](https://github.com/callstack/react-native-brownfield/commit/b7dfa7e30e1a921bb7ac0952e23481ee081fb9ed)]:
223
- - @callstack/brownfield-cli@3.2.0
224
-
225
- ## 3.1.0
226
-
227
- ### Minor Changes
228
-
229
- - [#252](https://github.com/callstack/react-native-brownfield/pull/252) [`d5c8609`](https://github.com/callstack/react-native-brownfield/commit/d5c8609485b072eb73be0158d49908fa399d8950) Thanks [@artus9033](https://github.com/artus9033)! - feat: added postMessage API
230
-
231
- - [#236](https://github.com/callstack/react-native-brownfield/pull/236) [`3e33b89`](https://github.com/callstack/react-native-brownfield/commit/3e33b890e6f647f6bbebe32f8068a38b1ed85ea0) Thanks [@hurali97](https://github.com/hurali97)! - add brownfield navigation
232
-
233
- ### Patch Changes
234
-
235
- - Updated dependencies [[`3e33b89`](https://github.com/callstack/react-native-brownfield/commit/3e33b890e6f647f6bbebe32f8068a38b1ed85ea0)]:
236
- - @callstack/brownfield-cli@3.1.0
237
-
238
- ## 3.0.0
239
-
240
- ### Patch Changes
241
-
242
- - [#255](https://github.com/callstack/react-native-brownfield/pull/255) [`48358b2`](https://github.com/callstack/react-native-brownfield/commit/48358b2dcce578aa5052e66cc3454524da8c7992) Thanks [@artus9033](https://github.com/artus9033)! - chore: release stable v3
243
-
244
- - [#239](https://github.com/callstack/react-native-brownfield/pull/239) [`828bda3`](https://github.com/callstack/react-native-brownfield/commit/828bda32f39153085f5053becc7e9de16d284be5) Thanks [@hurali97](https://github.com/hurali97)! - fix: autodetect iOS app target name for Expo pre-55 patch script phase
245
-
246
- - Updated dependencies [[`48358b2`](https://github.com/callstack/react-native-brownfield/commit/48358b2dcce578aa5052e66cc3454524da8c7992)]:
247
- - @callstack/brownfield-cli@3.0.0
248
-
249
- ## 2.2.0
250
-
251
- ### Minor Changes
252
-
253
- - [#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
254
-
255
- ### Patch Changes
256
-
257
- - [#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
258
-
259
- - Updated dependencies [[`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d)]:
260
- - @callstack/brownfield-cli@1.0.4
261
-
262
- ## 2.1.1
263
-
264
- ### Patch Changes
265
-
266
- - Updated dependencies [[`2347775`](https://github.com/callstack/react-native-brownfield/commit/23477753b16ee189b82c1aee3eac98a56c79f52a)]:
267
- - @callstack/brownfield-cli@1.0.3
268
-
269
- ## 2.1.0
270
-
271
- ### Minor Changes
272
-
273
- - [#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
274
-
275
- ### Patch Changes
276
-
277
- - Updated dependencies [[`2a8563f`](https://github.com/callstack/react-native-brownfield/commit/2a8563f65ed152054ad1290caf963791a368ee9a)]:
278
- - @callstack/brownfield-cli@1.0.2
279
-
280
- ## 2.0.2
281
-
282
- ### Patch Changes
283
-
284
- - [#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
285
-
286
- - Updated dependencies [[`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25)]:
287
- - @callstack/brownfield-cli@1.0.1
@@ -1,52 +0,0 @@
1
- package {{PACKAGE_NAME}}
2
-
3
- import android.app.Application
4
- import android.content.res.Configuration
5
- import com.callstack.reactnativebrownfield.OnJSBundleLoaded
6
- import com.callstack.reactnativebrownfield.ReactNativeBrownfield
7
- import com.facebook.react.PackageList
8
- import com.facebook.react.ReactPackage
9
- import com.facebook.react.defaults.DefaultReactNativeHost
10
- import expo.modules.ApplicationLifecycleDispatcher
11
- import expo.modules.ExpoReactHostFactory
12
- import expo.modules.ReactNativeHostWrapper
13
- {{EXPO_UPDATES_IMPORTS}}
14
-
15
- object ReactNativeHostManager {
16
- fun initialize(application: Application, onJSBundleLoaded: OnJSBundleLoaded? = null) {
17
- ApplicationLifecycleDispatcher.onApplicationCreate(application)
18
-
19
- val reactNativeHost = ReactNativeHostWrapper(
20
- application,
21
- object : DefaultReactNativeHost(application) {
22
- override fun getUseDeveloperSupport(): Boolean {
23
- return BuildConfig.DEBUG
24
- }
25
-
26
- override fun getPackages(): List<ReactPackage> {
27
- return PackageList(application).packages
28
- }
29
-
30
- override fun getJSMainModuleName(): String {
31
- return ".expo/.virtual-metro-entry"
32
- }
33
-
34
- override fun getBundleAssetName(): String = "index.android.bundle"
35
- })
36
-
37
-
38
- ReactNativeBrownfield.initialize(application, onJSBundleLoaded) {
39
- val reactHost = ExpoReactHostFactory.createFromReactNativeHost(
40
- context = application.applicationContext,
41
- reactNativeHost = reactNativeHost
42
- )
43
-
44
- {{EXPO_UPDATES_REACT_HOST_BLOCK}}
45
- reactHost
46
- }
47
- }
48
-
49
- fun onConfigurationChanged(application: Application, newConfig: Configuration) {
50
- ApplicationLifecycleDispatcher.onConfigurationChanged(application, newConfig)
51
- }
52
- }
@@ -1,22 +0,0 @@
1
- # Patch by @hurali97, source: https://github.com/callstackincubator/rock/issues/492#issuecomment-3225109837
2
- # Applicable only to Expo SDK versions prior to 55, which made ExpoModulesProvider internal by default: https://github.com/expo/expo/pull/42317
3
- # Path to ExpoModulesProvider.swift
4
- FILE="${SRCROOT}/Pods/Target Support Files/Pods-{{APP_TARGET_NAME}}-{{FRAMEWORK_NAME}}/ExpoModulesProvider.swift"
5
-
6
- if [ -f "$FILE" ]; then
7
- echo "Patching $FILE to hide Expo from public interface"
8
-
9
- # 1. Replace imports with internal imports
10
- sed -i '' 's/^import EX/internal import EX/' "$FILE"
11
-
12
- sed -i '' 's/^import Ex/internal import Ex/' "$FILE"
13
-
14
- sed -i '' 's/^import EA/internal import EA/' "$FILE"
15
-
16
- # 2. Replace class visibility
17
- sed -i '' 's/public class ExpoModulesProvider/internal class ExpoModulesProvider/' "$FILE"
18
-
19
- echo "Patched $FILE to hide Expo from public interface"
20
- echo "Contents of $FILE:"
21
- cat "$FILE"
22
- fi
@@ -1,52 +0,0 @@
1
- package {{PACKAGE_NAME}}
2
-
3
- import android.app.Application
4
- import android.content.res.Configuration
5
- import com.callstack.reactnativebrownfield.OnJSBundleLoaded
6
- import com.callstack.reactnativebrownfield.ReactNativeBrownfield
7
- import com.facebook.react.PackageList
8
- import com.facebook.react.ReactPackage
9
- import com.facebook.react.defaults.DefaultReactNativeHost
10
- import expo.modules.ApplicationLifecycleDispatcher
11
- import expo.modules.ExpoReactHostFactory
12
- import expo.modules.ReactNativeHostWrapper
13
- {{EXPO_UPDATES_IMPORTS}}
14
-
15
- object ReactNativeHostManager {
16
- fun initialize(application: Application, onJSBundleLoaded: OnJSBundleLoaded? = null) {
17
- ApplicationLifecycleDispatcher.onApplicationCreate(application)
18
-
19
- val reactNativeHost = ReactNativeHostWrapper(
20
- application,
21
- object : DefaultReactNativeHost(application) {
22
- override fun getUseDeveloperSupport(): Boolean {
23
- return BuildConfig.DEBUG
24
- }
25
-
26
- override fun getPackages(): List<ReactPackage> {
27
- return PackageList(application).packages
28
- }
29
-
30
- override fun getJSMainModuleName(): String {
31
- return ".expo/.virtual-metro-entry"
32
- }
33
-
34
- override fun getBundleAssetName(): String = "index.android.bundle"
35
- })
36
-
37
-
38
- ReactNativeBrownfield.initialize(application, onJSBundleLoaded) {
39
- val reactHost = ExpoReactHostFactory.createFromReactNativeHost(
40
- context = application.applicationContext,
41
- reactNativeHost = reactNativeHost
42
- )
43
-
44
- {{EXPO_UPDATES_REACT_HOST_BLOCK}}
45
- reactHost
46
- }
47
- }
48
-
49
- fun onConfigurationChanged(application: Application, newConfig: Configuration) {
50
- ApplicationLifecycleDispatcher.onConfigurationChanged(application, newConfig)
51
- }
52
- }
@@ -1,22 +0,0 @@
1
- # Patch by @hurali97, source: https://github.com/callstackincubator/rock/issues/492#issuecomment-3225109837
2
- # Applicable only to Expo SDK versions prior to 55, which made ExpoModulesProvider internal by default: https://github.com/expo/expo/pull/42317
3
- # Path to ExpoModulesProvider.swift
4
- FILE="${SRCROOT}/Pods/Target Support Files/Pods-{{APP_TARGET_NAME}}-{{FRAMEWORK_NAME}}/ExpoModulesProvider.swift"
5
-
6
- if [ -f "$FILE" ]; then
7
- echo "Patching $FILE to hide Expo from public interface"
8
-
9
- # 1. Replace imports with internal imports
10
- sed -i '' 's/^import EX/internal import EX/' "$FILE"
11
-
12
- sed -i '' 's/^import Ex/internal import Ex/' "$FILE"
13
-
14
- sed -i '' 's/^import EA/internal import EA/' "$FILE"
15
-
16
- # 2. Replace class visibility
17
- sed -i '' 's/public class ExpoModulesProvider/internal class ExpoModulesProvider/' "$FILE"
18
-
19
- echo "Patched $FILE to hide Expo from public interface"
20
- echo "Contents of $FILE:"
21
- cat "$FILE"
22
- fi
@@ -1,52 +0,0 @@
1
- package {{PACKAGE_NAME}}
2
-
3
- import android.app.Application
4
- import android.content.res.Configuration
5
- import com.callstack.reactnativebrownfield.OnJSBundleLoaded
6
- import com.callstack.reactnativebrownfield.ReactNativeBrownfield
7
- import com.facebook.react.PackageList
8
- import com.facebook.react.ReactPackage
9
- import com.facebook.react.defaults.DefaultReactNativeHost
10
- import expo.modules.ApplicationLifecycleDispatcher
11
- import expo.modules.ExpoReactHostFactory
12
- import expo.modules.ReactNativeHostWrapper
13
- {{EXPO_UPDATES_IMPORTS}}
14
-
15
- object ReactNativeHostManager {
16
- fun initialize(application: Application, onJSBundleLoaded: OnJSBundleLoaded? = null) {
17
- ApplicationLifecycleDispatcher.onApplicationCreate(application)
18
-
19
- val reactNativeHost = ReactNativeHostWrapper(
20
- application,
21
- object : DefaultReactNativeHost(application) {
22
- override fun getUseDeveloperSupport(): Boolean {
23
- return BuildConfig.DEBUG
24
- }
25
-
26
- override fun getPackages(): List<ReactPackage> {
27
- return PackageList(application).packages
28
- }
29
-
30
- override fun getJSMainModuleName(): String {
31
- return ".expo/.virtual-metro-entry"
32
- }
33
-
34
- override fun getBundleAssetName(): String = "index.android.bundle"
35
- })
36
-
37
-
38
- ReactNativeBrownfield.initialize(application, onJSBundleLoaded) {
39
- val reactHost = ExpoReactHostFactory.createFromReactNativeHost(
40
- context = application.applicationContext,
41
- reactNativeHost = reactNativeHost
42
- )
43
-
44
- {{EXPO_UPDATES_REACT_HOST_BLOCK}}
45
- reactHost
46
- }
47
- }
48
-
49
- fun onConfigurationChanged(application: Application, newConfig: Configuration) {
50
- ApplicationLifecycleDispatcher.onConfigurationChanged(application, newConfig)
51
- }
52
- }
@@ -1,22 +0,0 @@
1
- # Patch by @hurali97, source: https://github.com/callstackincubator/rock/issues/492#issuecomment-3225109837
2
- # Applicable only to Expo SDK versions prior to 55, which made ExpoModulesProvider internal by default: https://github.com/expo/expo/pull/42317
3
- # Path to ExpoModulesProvider.swift
4
- FILE="${SRCROOT}/Pods/Target Support Files/Pods-{{APP_TARGET_NAME}}-{{FRAMEWORK_NAME}}/ExpoModulesProvider.swift"
5
-
6
- if [ -f "$FILE" ]; then
7
- echo "Patching $FILE to hide Expo from public interface"
8
-
9
- # 1. Replace imports with internal imports
10
- sed -i '' 's/^import EX/internal import EX/' "$FILE"
11
-
12
- sed -i '' 's/^import Ex/internal import Ex/' "$FILE"
13
-
14
- sed -i '' 's/^import EA/internal import EA/' "$FILE"
15
-
16
- # 2. Replace class visibility
17
- sed -i '' 's/public class ExpoModulesProvider/internal class ExpoModulesProvider/' "$FILE"
18
-
19
- echo "Patched $FILE to hide Expo from public interface"
20
- echo "Contents of $FILE:"
21
- cat "$FILE"
22
- fi