@callstack/react-native-brownfield 2.2.0 → 3.0.0-rc.1

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 (223) hide show
  1. package/lib/commonjs/expo-config-plugin/android/constants.js +2 -0
  2. package/lib/commonjs/expo-config-plugin/android/constants.js.map +1 -0
  3. package/lib/commonjs/expo-config-plugin/android/gradleHelpers.js +2 -0
  4. package/lib/commonjs/expo-config-plugin/android/gradleHelpers.js.map +1 -0
  5. package/lib/commonjs/expo-config-plugin/android/index.js +2 -0
  6. package/lib/commonjs/expo-config-plugin/android/index.js.map +1 -0
  7. package/lib/commonjs/expo-config-plugin/android/withAndroidModuleFiles.js +2 -0
  8. package/lib/commonjs/expo-config-plugin/android/withAndroidModuleFiles.js.map +1 -0
  9. package/lib/commonjs/expo-config-plugin/android/withBrownfieldAndroid.js +2 -0
  10. package/lib/commonjs/expo-config-plugin/android/withBrownfieldAndroid.js.map +1 -0
  11. package/lib/commonjs/expo-config-plugin/app.plugin.js +2 -0
  12. package/lib/commonjs/expo-config-plugin/app.plugin.js.map +1 -0
  13. package/lib/commonjs/expo-config-plugin/errors/SourceModificationError.js +2 -0
  14. package/lib/commonjs/expo-config-plugin/errors/SourceModificationError.js.map +1 -0
  15. package/lib/commonjs/expo-config-plugin/index.js +2 -0
  16. package/lib/commonjs/expo-config-plugin/index.js.map +1 -0
  17. package/lib/commonjs/expo-config-plugin/ios/index.js +2 -0
  18. package/lib/commonjs/expo-config-plugin/ios/index.js.map +1 -0
  19. package/lib/commonjs/expo-config-plugin/ios/podfileHelpers.js +31 -0
  20. package/lib/commonjs/expo-config-plugin/ios/podfileHelpers.js.map +1 -0
  21. package/lib/commonjs/expo-config-plugin/ios/withBrownfieldIos.js +2 -0
  22. package/lib/commonjs/expo-config-plugin/ios/withBrownfieldIos.js.map +1 -0
  23. package/lib/commonjs/expo-config-plugin/ios/withIosFrameworkFiles.js +2 -0
  24. package/lib/commonjs/expo-config-plugin/ios/withIosFrameworkFiles.js.map +1 -0
  25. package/lib/commonjs/expo-config-plugin/ios/xcodeHelpers.js +2 -0
  26. package/lib/commonjs/expo-config-plugin/ios/xcodeHelpers.js.map +1 -0
  27. package/lib/commonjs/expo-config-plugin/logging.js +2 -0
  28. package/lib/commonjs/expo-config-plugin/logging.js.map +1 -0
  29. package/lib/commonjs/expo-config-plugin/template/android/AndroidManifest.xml +4 -0
  30. package/lib/commonjs/expo-config-plugin/template/android/ReactNativeHostManager.kt +54 -0
  31. package/lib/commonjs/expo-config-plugin/template/android/build.gradle.kts +90 -0
  32. package/lib/commonjs/expo-config-plugin/template/android/consumer-rules.pro +0 -0
  33. package/lib/commonjs/expo-config-plugin/template/android/gradle.properties +8 -0
  34. package/lib/commonjs/expo-config-plugin/template/android/proguard-rules.pro +21 -0
  35. package/lib/commonjs/expo-config-plugin/template/engine.js +2 -0
  36. package/lib/commonjs/expo-config-plugin/template/engine.js.map +1 -0
  37. package/lib/commonjs/expo-config-plugin/template/ios/FrameworkInterface.swift +8 -0
  38. package/lib/commonjs/expo-config-plugin/template/ios/Info.plist +22 -0
  39. package/lib/commonjs/expo-config-plugin/template/ios/PodfileTargetBlock.rb +4 -0
  40. package/lib/commonjs/expo-config-plugin/template/ios/ReactNativeHostManager.swift +63 -0
  41. package/lib/commonjs/expo-config-plugin/template/ios/patchExpoPre55.sh +20 -0
  42. package/lib/commonjs/expo-config-plugin/types/BrownfieldPluginConfig.js +2 -0
  43. package/lib/commonjs/expo-config-plugin/types/BrownfieldPluginConfig.js.map +1 -0
  44. package/lib/commonjs/expo-config-plugin/types/RenderedTemplateFile.js +2 -0
  45. package/lib/commonjs/expo-config-plugin/types/RenderedTemplateFile.js.map +1 -0
  46. package/lib/commonjs/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js +2 -0
  47. package/lib/commonjs/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js.map +1 -0
  48. package/lib/commonjs/expo-config-plugin/types/index.js +2 -0
  49. package/lib/commonjs/expo-config-plugin/types/index.js.map +1 -0
  50. package/lib/commonjs/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js +2 -0
  51. package/lib/commonjs/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js.map +1 -0
  52. package/lib/commonjs/expo-config-plugin/withBrownfield.js +2 -0
  53. package/lib/commonjs/expo-config-plugin/withBrownfield.js.map +1 -0
  54. package/lib/module/expo-config-plugin/android/constants.js +2 -0
  55. package/lib/module/expo-config-plugin/android/constants.js.map +1 -0
  56. package/lib/module/expo-config-plugin/android/gradleHelpers.js +2 -0
  57. package/lib/module/expo-config-plugin/android/gradleHelpers.js.map +1 -0
  58. package/lib/module/expo-config-plugin/android/index.js +2 -0
  59. package/lib/module/expo-config-plugin/android/index.js.map +1 -0
  60. package/lib/module/expo-config-plugin/android/withAndroidModuleFiles.js +2 -0
  61. package/lib/module/expo-config-plugin/android/withAndroidModuleFiles.js.map +1 -0
  62. package/lib/module/expo-config-plugin/android/withBrownfieldAndroid.js +2 -0
  63. package/lib/module/expo-config-plugin/android/withBrownfieldAndroid.js.map +1 -0
  64. package/lib/module/expo-config-plugin/app.plugin.js +2 -0
  65. package/lib/module/expo-config-plugin/app.plugin.js.map +1 -0
  66. package/lib/module/expo-config-plugin/errors/SourceModificationError.js +2 -0
  67. package/lib/module/expo-config-plugin/errors/SourceModificationError.js.map +1 -0
  68. package/lib/module/expo-config-plugin/index.js +2 -0
  69. package/lib/module/expo-config-plugin/index.js.map +1 -0
  70. package/lib/module/expo-config-plugin/ios/index.js +2 -0
  71. package/lib/module/expo-config-plugin/ios/index.js.map +1 -0
  72. package/lib/module/expo-config-plugin/ios/podfileHelpers.js +31 -0
  73. package/lib/module/expo-config-plugin/ios/podfileHelpers.js.map +1 -0
  74. package/lib/module/expo-config-plugin/ios/withBrownfieldIos.js +2 -0
  75. package/lib/module/expo-config-plugin/ios/withBrownfieldIos.js.map +1 -0
  76. package/lib/module/expo-config-plugin/ios/withIosFrameworkFiles.js +2 -0
  77. package/lib/module/expo-config-plugin/ios/withIosFrameworkFiles.js.map +1 -0
  78. package/lib/module/expo-config-plugin/ios/xcodeHelpers.js +2 -0
  79. package/lib/module/expo-config-plugin/ios/xcodeHelpers.js.map +1 -0
  80. package/lib/module/expo-config-plugin/logging.js +2 -0
  81. package/lib/module/expo-config-plugin/logging.js.map +1 -0
  82. package/lib/module/expo-config-plugin/template/android/AndroidManifest.xml +4 -0
  83. package/lib/module/expo-config-plugin/template/android/ReactNativeHostManager.kt +54 -0
  84. package/lib/module/expo-config-plugin/template/android/build.gradle.kts +90 -0
  85. package/lib/module/expo-config-plugin/template/android/consumer-rules.pro +0 -0
  86. package/lib/module/expo-config-plugin/template/android/gradle.properties +8 -0
  87. package/lib/module/expo-config-plugin/template/android/proguard-rules.pro +21 -0
  88. package/lib/module/expo-config-plugin/template/engine.js +2 -0
  89. package/lib/module/expo-config-plugin/template/engine.js.map +1 -0
  90. package/lib/module/expo-config-plugin/template/ios/FrameworkInterface.swift +8 -0
  91. package/lib/module/expo-config-plugin/template/ios/Info.plist +22 -0
  92. package/lib/module/expo-config-plugin/template/ios/PodfileTargetBlock.rb +4 -0
  93. package/lib/module/expo-config-plugin/template/ios/ReactNativeHostManager.swift +63 -0
  94. package/lib/module/expo-config-plugin/template/ios/patchExpoPre55.sh +20 -0
  95. package/lib/module/expo-config-plugin/types/BrownfieldPluginConfig.js +2 -0
  96. package/lib/module/expo-config-plugin/types/BrownfieldPluginConfig.js.map +1 -0
  97. package/lib/module/expo-config-plugin/types/RenderedTemplateFile.js +2 -0
  98. package/lib/module/expo-config-plugin/types/RenderedTemplateFile.js.map +1 -0
  99. package/lib/module/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js +2 -0
  100. package/lib/module/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.js.map +1 -0
  101. package/lib/module/expo-config-plugin/types/index.js +2 -0
  102. package/lib/module/expo-config-plugin/types/index.js.map +1 -0
  103. package/lib/module/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js +2 -0
  104. package/lib/module/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.js.map +1 -0
  105. package/lib/module/expo-config-plugin/withBrownfield.js +2 -0
  106. package/lib/module/expo-config-plugin/withBrownfield.js.map +1 -0
  107. package/lib/typescript/commonjs/src/expo-config-plugin/android/constants.d.ts +3 -0
  108. package/lib/typescript/commonjs/src/expo-config-plugin/android/constants.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/src/expo-config-plugin/android/gradleHelpers.d.ts +14 -0
  110. package/lib/typescript/commonjs/src/expo-config-plugin/android/gradleHelpers.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/src/expo-config-plugin/android/index.d.ts +4 -0
  112. package/lib/typescript/commonjs/src/expo-config-plugin/android/index.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts +24 -0
  114. package/lib/typescript/commonjs/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts +13 -0
  116. package/lib/typescript/commonjs/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/src/expo-config-plugin/app.plugin.d.ts +9 -0
  118. package/lib/typescript/commonjs/src/expo-config-plugin/app.plugin.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/src/expo-config-plugin/errors/SourceModificationError.d.ts +3 -0
  120. package/lib/typescript/commonjs/src/expo-config-plugin/errors/SourceModificationError.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/src/expo-config-plugin/index.d.ts +7 -0
  122. package/lib/typescript/commonjs/src/expo-config-plugin/index.d.ts.map +1 -0
  123. package/lib/typescript/commonjs/src/expo-config-plugin/ios/index.d.ts +5 -0
  124. package/lib/typescript/commonjs/src/expo-config-plugin/ios/index.d.ts.map +1 -0
  125. package/lib/typescript/commonjs/src/expo-config-plugin/ios/podfileHelpers.d.ts +8 -0
  126. package/lib/typescript/commonjs/src/expo-config-plugin/ios/podfileHelpers.d.ts.map +1 -0
  127. package/lib/typescript/commonjs/src/expo-config-plugin/ios/withBrownfieldIos.d.ts +14 -0
  128. package/lib/typescript/commonjs/src/expo-config-plugin/ios/withBrownfieldIos.d.ts.map +1 -0
  129. package/lib/typescript/commonjs/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts +19 -0
  130. package/lib/typescript/commonjs/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/src/expo-config-plugin/ios/xcodeHelpers.d.ts +33 -0
  132. package/lib/typescript/commonjs/src/expo-config-plugin/ios/xcodeHelpers.d.ts.map +1 -0
  133. package/lib/typescript/commonjs/src/expo-config-plugin/logging.d.ts +9 -0
  134. package/lib/typescript/commonjs/src/expo-config-plugin/logging.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/src/expo-config-plugin/template/engine.d.ts +9 -0
  136. package/lib/typescript/commonjs/src/expo-config-plugin/template/engine.d.ts.map +1 -0
  137. package/lib/typescript/commonjs/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts +53 -0
  138. package/lib/typescript/commonjs/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/src/expo-config-plugin/types/RenderedTemplateFile.d.ts +5 -0
  140. package/lib/typescript/commonjs/src/expo-config-plugin/types/RenderedTemplateFile.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts +50 -0
  142. package/lib/typescript/commonjs/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/src/expo-config-plugin/types/index.d.ts +5 -0
  144. package/lib/typescript/commonjs/src/expo-config-plugin/types/index.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts +36 -0
  146. package/lib/typescript/commonjs/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/src/expo-config-plugin/withBrownfield.d.ts +5 -0
  148. package/lib/typescript/commonjs/src/expo-config-plugin/withBrownfield.d.ts.map +1 -0
  149. package/lib/typescript/module/src/expo-config-plugin/android/constants.d.ts +3 -0
  150. package/lib/typescript/module/src/expo-config-plugin/android/constants.d.ts.map +1 -0
  151. package/lib/typescript/module/src/expo-config-plugin/android/gradleHelpers.d.ts +14 -0
  152. package/lib/typescript/module/src/expo-config-plugin/android/gradleHelpers.d.ts.map +1 -0
  153. package/lib/typescript/module/src/expo-config-plugin/android/index.d.ts +4 -0
  154. package/lib/typescript/module/src/expo-config-plugin/android/index.d.ts.map +1 -0
  155. package/lib/typescript/module/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts +24 -0
  156. package/lib/typescript/module/src/expo-config-plugin/android/withAndroidModuleFiles.d.ts.map +1 -0
  157. package/lib/typescript/module/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts +13 -0
  158. package/lib/typescript/module/src/expo-config-plugin/android/withBrownfieldAndroid.d.ts.map +1 -0
  159. package/lib/typescript/module/src/expo-config-plugin/app.plugin.d.ts +9 -0
  160. package/lib/typescript/module/src/expo-config-plugin/app.plugin.d.ts.map +1 -0
  161. package/lib/typescript/module/src/expo-config-plugin/errors/SourceModificationError.d.ts +3 -0
  162. package/lib/typescript/module/src/expo-config-plugin/errors/SourceModificationError.d.ts.map +1 -0
  163. package/lib/typescript/module/src/expo-config-plugin/index.d.ts +7 -0
  164. package/lib/typescript/module/src/expo-config-plugin/index.d.ts.map +1 -0
  165. package/lib/typescript/module/src/expo-config-plugin/ios/index.d.ts +5 -0
  166. package/lib/typescript/module/src/expo-config-plugin/ios/index.d.ts.map +1 -0
  167. package/lib/typescript/module/src/expo-config-plugin/ios/podfileHelpers.d.ts +8 -0
  168. package/lib/typescript/module/src/expo-config-plugin/ios/podfileHelpers.d.ts.map +1 -0
  169. package/lib/typescript/module/src/expo-config-plugin/ios/withBrownfieldIos.d.ts +14 -0
  170. package/lib/typescript/module/src/expo-config-plugin/ios/withBrownfieldIos.d.ts.map +1 -0
  171. package/lib/typescript/module/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts +19 -0
  172. package/lib/typescript/module/src/expo-config-plugin/ios/withIosFrameworkFiles.d.ts.map +1 -0
  173. package/lib/typescript/module/src/expo-config-plugin/ios/xcodeHelpers.d.ts +33 -0
  174. package/lib/typescript/module/src/expo-config-plugin/ios/xcodeHelpers.d.ts.map +1 -0
  175. package/lib/typescript/module/src/expo-config-plugin/logging.d.ts +9 -0
  176. package/lib/typescript/module/src/expo-config-plugin/logging.d.ts.map +1 -0
  177. package/lib/typescript/module/src/expo-config-plugin/template/engine.d.ts +9 -0
  178. package/lib/typescript/module/src/expo-config-plugin/template/engine.d.ts.map +1 -0
  179. package/lib/typescript/module/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts +53 -0
  180. package/lib/typescript/module/src/expo-config-plugin/types/BrownfieldPluginConfig.d.ts.map +1 -0
  181. package/lib/typescript/module/src/expo-config-plugin/types/RenderedTemplateFile.d.ts +5 -0
  182. package/lib/typescript/module/src/expo-config-plugin/types/RenderedTemplateFile.d.ts.map +1 -0
  183. package/lib/typescript/module/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts +50 -0
  184. package/lib/typescript/module/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.d.ts.map +1 -0
  185. package/lib/typescript/module/src/expo-config-plugin/types/index.d.ts +5 -0
  186. package/lib/typescript/module/src/expo-config-plugin/types/index.d.ts.map +1 -0
  187. package/lib/typescript/module/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts +36 -0
  188. package/lib/typescript/module/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.d.ts.map +1 -0
  189. package/lib/typescript/module/src/expo-config-plugin/withBrownfield.d.ts +5 -0
  190. package/lib/typescript/module/src/expo-config-plugin/withBrownfield.d.ts.map +1 -0
  191. package/package.json +15 -3
  192. package/src/expo-config-plugin/android/constants.ts +2 -0
  193. package/src/expo-config-plugin/android/gradleHelpers.ts +72 -0
  194. package/src/expo-config-plugin/android/index.ts +6 -0
  195. package/src/expo-config-plugin/android/withAndroidModuleFiles.ts +139 -0
  196. package/src/expo-config-plugin/android/withBrownfieldAndroid.ts +48 -0
  197. package/src/expo-config-plugin/app.plugin.ts +10 -0
  198. package/src/expo-config-plugin/errors/SourceModificationError.ts +1 -0
  199. package/src/expo-config-plugin/index.ts +8 -0
  200. package/src/expo-config-plugin/ios/index.ts +7 -0
  201. package/src/expo-config-plugin/ios/podfileHelpers.ts +104 -0
  202. package/src/expo-config-plugin/ios/withBrownfieldIos.ts +95 -0
  203. package/src/expo-config-plugin/ios/withIosFrameworkFiles.ts +95 -0
  204. package/src/expo-config-plugin/ios/xcodeHelpers.ts +359 -0
  205. package/src/expo-config-plugin/logging.ts +29 -0
  206. package/src/expo-config-plugin/template/android/AndroidManifest.xml +4 -0
  207. package/src/expo-config-plugin/template/android/ReactNativeHostManager.kt +54 -0
  208. package/src/expo-config-plugin/template/android/build.gradle.kts +90 -0
  209. package/src/expo-config-plugin/template/android/consumer-rules.pro +0 -0
  210. package/src/expo-config-plugin/template/android/gradle.properties +8 -0
  211. package/src/expo-config-plugin/template/android/proguard-rules.pro +21 -0
  212. package/src/expo-config-plugin/template/engine.ts +26 -0
  213. package/src/expo-config-plugin/template/ios/FrameworkInterface.swift +8 -0
  214. package/src/expo-config-plugin/template/ios/Info.plist +22 -0
  215. package/src/expo-config-plugin/template/ios/PodfileTargetBlock.rb +4 -0
  216. package/src/expo-config-plugin/template/ios/ReactNativeHostManager.swift +63 -0
  217. package/src/expo-config-plugin/template/ios/patchExpoPre55.sh +20 -0
  218. package/src/expo-config-plugin/types/BrownfieldPluginConfig.ts +67 -0
  219. package/src/expo-config-plugin/types/RenderedTemplateFile.ts +4 -0
  220. package/src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.ts +58 -0
  221. package/src/expo-config-plugin/types/index.ts +6 -0
  222. package/src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.ts +41 -0
  223. package/src/expo-config-plugin/withBrownfield.ts +112 -0
@@ -0,0 +1,13 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ import type { ResolvedBrownfieldPluginConfigWithAndroid } from '../types';
3
+ /**
4
+ * Android Config Plugin for integration with @callstack/react-native-brownfield.
5
+ *
6
+ * This plugin:
7
+ * 1. Creates a new Android Library module for the Brownfield AAR
8
+ * 3. Modifies settings.gradle to include the new module
9
+ * 4. Modifies root build.gradle to add Brownfield Gradle plugin
10
+ * 5. Generates the ReactNativeHostManager class inside the module
11
+ */
12
+ export declare const withBrownfieldAndroid: ConfigPlugin<ResolvedBrownfieldPluginConfigWithAndroid>;
13
+ //# sourceMappingURL=withBrownfieldAndroid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withBrownfieldAndroid.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/android/withBrownfieldAndroid.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAC;AAE1E;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAC9C,yCAAyC,CA2B1C,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Expo config plugin entry point
3
+ *
4
+ * This file is the entry point for the Expo config plugin.
5
+ * It's referenced in the package.json under "./app.plugin" export.
6
+ */
7
+ import withBrownfield from './withBrownfield';
8
+ export default withBrownfield;
9
+ //# sourceMappingURL=app.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.plugin.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/app.plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare class SourceModificationError extends Error {
2
+ }
3
+ //# sourceMappingURL=SourceModificationError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SourceModificationError.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/errors/SourceModificationError.ts"],"names":[],"mappings":"AAAA,qBAAa,uBAAwB,SAAQ,KAAK;CAAG"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Expo Config Plugin for integration with @callstack/react-native-brownfield.
3
+ * This plugin configures your Expo project to be packaged as an AAR (Android) or XCFramework (iOS).
4
+ */
5
+ import withBrownfield from './withBrownfield';
6
+ export default withBrownfield;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { withBrownfieldIos } from './withBrownfieldIos';
2
+ export { withIosFrameworkFiles, createIosFramework, } from './withIosFrameworkFiles';
3
+ export { addFrameworkTarget } from './xcodeHelpers';
4
+ export { modifyPodfile } from './podfileHelpers';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Modifies the Podfile to include the Brownfield framework target
3
+ * @param podfile The original Podfile content
4
+ * @param frameworkName The name of the framework target to add
5
+ * @returns The modified Podfile content
6
+ */
7
+ export declare function modifyPodfile(podfile: string, frameworkName: string, isExpoPre55: boolean): string;
8
+ //# sourceMappingURL=podfileHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"podfileHelpers.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/podfileHelpers.ts"],"names":[],"mappings":"AAgDA;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,OAAO,GACnB,MAAM,CA6CR"}
@@ -0,0 +1,14 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ import type { ResolvedBrownfieldPluginConfigWithIos } from '../types';
3
+ /**
4
+ * iOS Config Plugin for integration with @callstack/react-native-brownfield.
5
+ *
6
+ * This plugin:
7
+ * 1. Creates a new Framework target in the Xcode project
8
+ * 2. Configures the Podfile to include the framework target
9
+ * 3. Adds necessary build configuration
10
+ * 4. Adds script phase to patch `ExpoModulesProvider.swift`
11
+ * 5. Adds the "Bundle React Native code and images" phase of Expo app target to the framework target
12
+ */
13
+ export declare const withBrownfieldIos: ConfigPlugin<ResolvedBrownfieldPluginConfigWithIos>;
14
+ //# sourceMappingURL=withBrownfieldIos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withBrownfieldIos.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/withBrownfieldIos.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAC;AAGtE;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAC1C,qCAAqC,CAkEtC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ import type { RenderedTemplateFile, ResolvedBrownfieldPluginConfigWithIos } from '../types';
3
+ /**
4
+ * Returns rendered source files for the iOS framework
5
+ * @param ios The iOS Brownfield plugin configuration
6
+ * @returns The list of framework source files
7
+ */
8
+ export declare function getFrameworkSourceFiles(ios: ResolvedBrownfieldPluginConfigWithIos['ios']): RenderedTemplateFile[];
9
+ /**
10
+ * Creates the iOS framework directory structure and files
11
+ * @param iosDir The root iOS directory path
12
+ * @param config The resolved Brownfield plugin configuration
13
+ */
14
+ export declare function createIosFramework(iosDir: string, config: ResolvedBrownfieldPluginConfigWithIos): void;
15
+ /**
16
+ * Dangerous mod that creates the iOS framework directory and files
17
+ */
18
+ export declare const withIosFrameworkFiles: ConfigPlugin<ResolvedBrownfieldPluginConfigWithIos>;
19
+ //# sourceMappingURL=withIosFrameworkFiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withIosFrameworkFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/withIosFrameworkFiles.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE3E,OAAO,KAAK,EACV,oBAAoB,EACpB,qCAAqC,EACtC,MAAM,UAAU,CAAC;AAIlB;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,qCAAqC,CAAC,KAAK,CAAC,GAChD,oBAAoB,EAAE,CAiBxB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,qCAAqC,QA+B9C;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAC9C,qCAAqC,CAYtC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { ModProps, XcodeProject } from '@expo/config-plugins';
2
+ import type { ResolvedBrownfieldPluginIosConfig } from '../types';
3
+ /**
4
+ * Adds a new Framework target to the Xcode project for Brownfield packaging
5
+ * @throws If target creation fails
6
+ * @param project The Xcode project to modify
7
+ * @param options Framework target options
8
+ */
9
+ export declare function addFrameworkTarget(project: XcodeProject, modRequest: ModProps<XcodeProject>, options: ResolvedBrownfieldPluginIosConfig): {
10
+ frameworkTargetUUID: string;
11
+ targetAlreadyExists: boolean;
12
+ };
13
+ export declare function addSourceFilesBuildPhase(project: XcodeProject, frameworkTargetUUID: string, options: ResolvedBrownfieldPluginIosConfig): void;
14
+ /**
15
+ * Finds the "Bundle React Native code and images" build phase from the main app target
16
+ * and adds it to the framework target's build phases
17
+ * @param project The Xcode project
18
+ * @param targetUuid The UUID of the framework target
19
+ */
20
+ export declare function copyBundleReactNativePhase(project: XcodeProject, targetUuid: string): void;
21
+ export declare function addExpoPre55ShellPatchScriptPhase(project: XcodeProject, { frameworkName, frameworkTargetUUID, }: {
22
+ frameworkName: string;
23
+ frameworkTargetUUID: string;
24
+ }): void;
25
+ /**
26
+ * Makes sure the patch expo modules provider phase is after the expo configure phase,
27
+ * otherwise the patched file would be overwritten by the expo configure phase
28
+ * @param project The Xcode project
29
+ * @param frameworkTargetUUID The UUID of the framework target
30
+ * @returns True if the build phases were modified, false otherwise
31
+ */
32
+ export declare function ensureExpoPre55ShellPatchScriptPhaseIsOrdered(project: XcodeProject, frameworkTargetUUID: string): boolean;
33
+ //# sourceMappingURL=xcodeHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xcodeHelpers.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/ios/xcodeHelpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGnE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAKlE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,EAClC,OAAO,EAAE,iCAAiC,GACzC;IACD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAoIA;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,YAAY,EACrB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,EAAE,iCAAiC,QAkB3C;AAgDD;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,MAAM,GACjB,IAAI,CAmDN;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,YAAY,EACrB,EACE,aAAa,EACb,mBAAmB,GACpB,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,QAgBF;AAED;;;;;;GAMG;AACH,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,YAAY,EACrB,mBAAmB,EAAE,MAAM,WAmC5B"}
@@ -0,0 +1,9 @@
1
+ export declare class Logger {
2
+ private static debug;
3
+ static setIsDebug(enabled: boolean): void;
4
+ static logInfo(message: string, ...args: any[]): void;
5
+ static logDebug(message: string, ...args: any[]): void;
6
+ static logWarning(message: string, ...args: any[]): void;
7
+ static logError(message: string, ...args: any[]): void;
8
+ }
9
+ //# sourceMappingURL=logging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/logging.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAkB;IAEtC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO;IAIlC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAI9C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAQ/C,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAIjD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;CAGhD"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Renders a template file for the specified platform with given parameters
3
+ * @param platform The platform name (specifies the subdirectory of template/)
4
+ * @param name The template file name (with extension)
5
+ * @param params The params to be replaced in the template
6
+ * @returns The rendered template content
7
+ */
8
+ export declare function renderTemplate(platform: 'ios' | 'android', name: string, params?: Record<`{{${string}}}`, unknown>): string;
9
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/template/engine.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,KAAK,GAAG,SAAS,EAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM,IAAI,EAAE,OAAO,CAAC,GACxC,MAAM,CAWR"}
@@ -0,0 +1,53 @@
1
+ import type { BrownfieldPluginAndroidConfig, ResolvedBrownfieldPluginAndroidConfig } from './android/BrownfieldPluginAndroidConfig';
2
+ import type { BrownfieldPluginIosConfig, ResolvedBrownfieldPluginIosConfig } from './ios/BrownfieldPluginIosConfig';
3
+ /**
4
+ * Main configuration for the Brownfield Expo config plugin
5
+ */
6
+ export interface BrownfieldPluginConfig {
7
+ /**
8
+ * iOS-specific configuration
9
+ */
10
+ ios?: BrownfieldPluginIosConfig;
11
+ /**
12
+ * Android-specific configuration
13
+ */
14
+ android?: BrownfieldPluginAndroidConfig;
15
+ /**
16
+ * Whether to enable debug logging during plugin execution
17
+ * @default false
18
+ */
19
+ debug?: boolean;
20
+ }
21
+ /**
22
+ * Internal configuration with resolved defaults
23
+ * Note that the platform-specific configs can be null if the platform is not configured
24
+ */
25
+ export interface ResolvedBrownfieldPluginConfig extends Required<Omit<BrownfieldPluginConfig, 'ios' | 'android'>> {
26
+ /**
27
+ * iOS-specific configuration
28
+ */
29
+ ios: ResolvedBrownfieldPluginIosConfig | null;
30
+ /**
31
+ * Android-specific configuration
32
+ */
33
+ android: ResolvedBrownfieldPluginAndroidConfig | null;
34
+ }
35
+ /**
36
+ * Resolved Brownfield configuration including Android config
37
+ */
38
+ export interface ResolvedBrownfieldPluginConfigWithAndroid extends ResolvedBrownfieldPluginConfig {
39
+ /**
40
+ * Android-specific configuration
41
+ */
42
+ android: ResolvedBrownfieldPluginAndroidConfig;
43
+ }
44
+ /**
45
+ * Resolved Brownfield configuration including iOS config
46
+ */
47
+ export interface ResolvedBrownfieldPluginConfigWithIos extends ResolvedBrownfieldPluginConfig {
48
+ /**
49
+ * iOS-specific configuration
50
+ */
51
+ ios: ResolvedBrownfieldPluginIosConfig;
52
+ }
53
+ //# sourceMappingURL=BrownfieldPluginConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrownfieldPluginConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/types/BrownfieldPluginConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,qCAAqC,EACtC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EACV,yBAAyB,EACzB,iCAAiC,EAClC,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,GAAG,CAAC,EAAE,yBAAyB,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA+B,SAAQ,QAAQ,CAC9D,IAAI,CAAC,sBAAsB,EAAE,KAAK,GAAG,SAAS,CAAC,CAChD;IACC;;OAEG;IACH,GAAG,EAAE,iCAAiC,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,OAAO,EAAE,qCAAqC,GAAG,IAAI,CAAC;CACvD;AAED;;GAEG;AACH,MAAM,WAAW,yCAA0C,SAAQ,8BAA8B;IAC/F;;OAEG;IACH,OAAO,EAAE,qCAAqC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,qCAAsC,SAAQ,8BAA8B;IAC3F;;OAEG;IACH,GAAG,EAAE,iCAAiC,CAAC;CACxC"}
@@ -0,0 +1,5 @@
1
+ export interface RenderedTemplateFile {
2
+ relativePath: string;
3
+ content: string;
4
+ }
5
+ //# sourceMappingURL=RenderedTemplateFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderedTemplateFile.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/types/RenderedTemplateFile.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Android-specific configuration for Brownfield config plugin
3
+ */
4
+ export interface BrownfieldPluginAndroidConfig {
5
+ /**
6
+ * The name of the Android library module to create
7
+ * @default "brownfieldlib"
8
+ */
9
+ moduleName?: string;
10
+ /**
11
+ * The package name for the Android library module
12
+ * @default app's package name
13
+ */
14
+ packageName?: string;
15
+ /**
16
+ * Minimum SDK version for the Android library
17
+ * @default 24
18
+ */
19
+ minSdkVersion?: number;
20
+ /**
21
+ * Target SDK version for the Android library
22
+ * @default 35
23
+ */
24
+ targetSdkVersion?: number;
25
+ /**
26
+ * Compile SDK version for the Android library
27
+ * @default 35
28
+ */
29
+ compileSdkVersion?: number;
30
+ /**
31
+ * Group ID for Maven publishing
32
+ * @default package name
33
+ */
34
+ groupId?: string;
35
+ /**
36
+ * Artifact ID for Maven publishing
37
+ * @default module name
38
+ */
39
+ artifactId?: string;
40
+ /**
41
+ * Version string for Maven publishing
42
+ * @default "0.0.1-SNAPSHOT"
43
+ */
44
+ version?: string;
45
+ }
46
+ /**
47
+ * Android configuration with resolved defaults (all fields required)
48
+ */
49
+ export type ResolvedBrownfieldPluginAndroidConfig = Required<BrownfieldPluginAndroidConfig>;
50
+ //# sourceMappingURL=BrownfieldPluginAndroidConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrownfieldPluginAndroidConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/expo-config-plugin/types/android/BrownfieldPluginAndroidConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAC/C,QAAQ,CAAC,6BAA6B,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export type * from './android/BrownfieldPluginAndroidConfig';
2
+ export type * from './ios/BrownfieldPluginIosConfig';
3
+ export type * from './BrownfieldPluginConfig';
4
+ export type * from './RenderedTemplateFile';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/expo-config-plugin/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,yCAAyC,CAAC;AAC7D,mBAAmB,iCAAiC,CAAC;AAErD,mBAAmB,0BAA0B,CAAC;AAE9C,mBAAmB,wBAAwB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * iOS-specific configuration for Brownfield config plugin
3
+ */
4
+ export interface BrownfieldPluginIosConfig {
5
+ /**
6
+ * The name of the framework to create
7
+ * This will be used as the XCFramework name
8
+ * @default "BrownfieldLib"
9
+ */
10
+ frameworkName?: string;
11
+ /**
12
+ * The bundle identifier for the framework
13
+ * @default app's bundle identifier with ".brownfield" suffix
14
+ */
15
+ bundleIdentifier?: string;
16
+ /**
17
+ * Custom build settings to apply to the framework build
18
+ */
19
+ buildSettings?: Record<string, string | boolean | number>;
20
+ /**
21
+ * Minimum iOS deployment target
22
+ * @default "15.0"
23
+ */
24
+ deploymentTarget?: string;
25
+ /**
26
+ * The version of the framework, must be an integer or floating point (e.g. 1, or 2.1)
27
+ * @default 1
28
+ * @see https://developer.apple.com/documentation/xcode/build-settings-reference#Current-Project-Version
29
+ */
30
+ frameworkVersion?: string;
31
+ }
32
+ /**
33
+ * iOS configuration with resolved defaults (all fields required)
34
+ */
35
+ export type ResolvedBrownfieldPluginIosConfig = Required<BrownfieldPluginIosConfig>;
36
+ //# sourceMappingURL=BrownfieldPluginIosConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrownfieldPluginIosConfig.d.ts","sourceRoot":"","sources":["../../../../../../../src/expo-config-plugin/types/ios/BrownfieldPluginIosConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAE1D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAC3C,QAAQ,CAAC,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ import type { BrownfieldPluginConfig } from './types';
3
+ declare const _default: ConfigPlugin<void | BrownfieldPluginConfig>;
4
+ export default _default;
5
+ //# sourceMappingURL=withBrownfield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withBrownfield.d.ts","sourceRoot":"","sources":["../../../../../src/expo-config-plugin/withBrownfield.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,SAAS,CAAC;;AA8FjB,wBAIE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/react-native-brownfield",
3
- "version": "2.2.0",
3
+ "version": "3.0.0-rc.1",
4
4
  "license": "MIT",
5
5
  "author": "Michal Chudziak <mike.chudziak@callstack.com>",
6
6
  "bin": {
@@ -20,6 +20,7 @@
20
20
  "react-native": "src/index",
21
21
  "exports": {
22
22
  ".": {
23
+ "source": "./src/index.ts",
23
24
  "import": {
24
25
  "types": "./lib/typescript/module/src/index.d.ts",
25
26
  "default": "./lib/module/index.js"
@@ -29,13 +30,24 @@
29
30
  "default": "./lib/commonjs/index.js"
30
31
  }
31
32
  },
33
+ "./app.plugin.js": {
34
+ "source": "./src/expo-config-plugin/app.plugin.ts",
35
+ "import": {
36
+ "types": "./lib/typescript/module/src/expo-config-plugin/app.plugin.d.ts",
37
+ "default": "./lib/module/expo-config-plugin/app.plugin.js"
38
+ },
39
+ "require": {
40
+ "types": "./lib/typescript/commonjs/src/expo-config-plugin/app.plugin.d.ts",
41
+ "default": "./lib/commonjs/expo-config-plugin/app.plugin.js"
42
+ }
43
+ },
32
44
  "./package.json": "./package.json"
33
45
  },
34
46
  "scripts": {
35
47
  "lint": "eslint .",
36
48
  "typecheck": "tsc --noEmit",
37
49
  "build": "bob build",
38
- "dev": "nodemon --watch src --ext js,ts,json --exec \"bob build\"",
50
+ "dev": "nodemon --ext '*' --watch src --exec \"bob build\"",
39
51
  "build:brownfield": "yarn run build",
40
52
  "prepack": "cp ../../README.md ./README.md",
41
53
  "postpack": "rm ./README.md"
@@ -73,7 +85,7 @@
73
85
  "react-native": "*"
74
86
  },
75
87
  "dependencies": {
76
- "@callstack/brownfield-cli": "^1.0.4"
88
+ "@callstack/brownfield-cli": "^2.0.0-rc.1"
77
89
  },
78
90
  "devDependencies": {
79
91
  "@babel/core": "^7.25.2",
@@ -0,0 +1,2 @@
1
+ export const BROWNFIELD_PLUGIN_VERSION = '0.7.3';
2
+ export const brownfieldGradlePluginDependency = `classpath("com.callstack.react:brownfield-gradle-plugin:${BROWNFIELD_PLUGIN_VERSION}")`;
@@ -0,0 +1,72 @@
1
+ import { brownfieldGradlePluginDependency } from './constants';
2
+ import { Logger } from '../logging';
3
+
4
+ /**
5
+ * Modifies the root build.gradle to add the Brownfield Gradle plugin dependency
6
+ * @param contents The original build.gradle content
7
+ * @returns The modified build.gradle content
8
+ */
9
+ export function modifyRootBuildGradle(contents: string): string {
10
+ // check if already added
11
+ if (contents.includes('brownfield-gradle-plugin')) {
12
+ Logger.logDebug(
13
+ 'Brownfield Gradle plugin already in root build.gradle, skipping'
14
+ );
15
+ return contents;
16
+ }
17
+
18
+ Logger.logDebug(
19
+ `Modifying root build.gradle to add the Gradle Brownfield plugin`
20
+ );
21
+
22
+ // find the buildscript dependencies block
23
+ const buildscriptDepsRegex =
24
+ /(buildscript\s*\{[\s\S]*?dependencies\s*\{[\s\S]*?)(})/m;
25
+ const match = contents.match(buildscriptDepsRegex);
26
+
27
+ if (!match) {
28
+ throw new Error('Could not locate buildscript block in root build.gradle');
29
+ }
30
+
31
+ // insert before the closing brace of dependencies
32
+ const insertion = `\t${brownfieldGradlePluginDependency}\n\t`;
33
+ const modifiedContents = contents.replace(
34
+ buildscriptDepsRegex,
35
+ `$1${insertion}$2`
36
+ );
37
+
38
+ Logger.logDebug('Added Brownfield Gradle plugin to root build.gradle');
39
+ return modifiedContents;
40
+ }
41
+
42
+ /**
43
+ * Modifies settings.gradle to include the Brownfield module
44
+ * @param contents The original settings.gradle content
45
+ * @param moduleName The name of the Brownfield module to include
46
+ * @returns The modified settings.gradle content
47
+ */
48
+ export function modifySettingsGradle(
49
+ contents: string,
50
+ moduleName: string
51
+ ): string {
52
+ const includeStatement = `include ':${moduleName}'`;
53
+
54
+ // check if already included
55
+ if (contents.includes(includeStatement)) {
56
+ Logger.logDebug(
57
+ `Module "${moduleName}" already in settings.gradle, skipping`
58
+ );
59
+ return contents;
60
+ }
61
+
62
+ Logger.logDebug(
63
+ `Modifying settings.gradle to include module "${moduleName}"`
64
+ );
65
+
66
+ // add the include statement at the end
67
+ const modifiedContents = contents + `\n${includeStatement}\n`;
68
+
69
+ Logger.logDebug(`Added module "${moduleName}" to settings.gradle`);
70
+
71
+ return modifiedContents;
72
+ }
@@ -0,0 +1,6 @@
1
+ export { withBrownfieldAndroid } from './withBrownfieldAndroid';
2
+ export {
3
+ withAndroidModuleFiles,
4
+ createAndroidModule,
5
+ } from './withAndroidModuleFiles';
6
+ export { modifyRootBuildGradle, modifySettingsGradle } from './gradleHelpers';