@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 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["expo-config-plugin/types/index.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=BrownfieldPluginIosConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["expo-config-plugin/types/ios/BrownfieldPluginIosConfig.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _configPlugins=require("@expo/config-plugins");var _withBrownfieldIos=require("./ios/withBrownfieldIos");var _withBrownfieldAndroid=require("./android/withBrownfieldAndroid");var _logging=require("./logging");function resolveConfig(){var _config$debug,_expoConfig$android,_config$android$modul,_config$android,_config$ios$framework,_config$ios,_config$ios$bundleIde,_config$ios2,_config$ios$buildSett,_config$ios3,_config$ios$deploymen,_config$ios4,_config$ios$framework2,_config$ios5,_config$android$packa,_config$android2,_config$android$minSd,_config$android3,_config$android$targe,_config$android4,_config$android$compi,_config$android5,_config$android$group,_config$android6,_config$android$artif,_config$android7,_config$android$versi,_config$android8,_config$debug2;var config=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var expoConfig=arguments.length>1?arguments[1]:undefined;_logging.Logger.setIsDebug((_config$debug=config.debug)!=null?_config$debug:false);var androidPackage=(_expoConfig$android=expoConfig.android)==null?void 0:_expoConfig$android.package;var androidModuleName=(_config$android$modul=(_config$android=config.android)==null?void 0:_config$android.moduleName)!=null?_config$android$modul:'brownfieldlib';return{ios:expoConfig.ios?{frameworkName:(_config$ios$framework=(_config$ios=config.ios)==null?void 0:_config$ios.frameworkName)!=null?_config$ios$framework:'BrownfieldLib',bundleIdentifier:(_config$ios$bundleIde=(_config$ios2=config.ios)==null?void 0:_config$ios2.bundleIdentifier)!=null?_config$ios$bundleIde:`${expoConfig.ios.bundleIdentifier}.brownfield`,buildSettings:(_config$ios$buildSett=(_config$ios3=config.ios)==null?void 0:_config$ios3.buildSettings)!=null?_config$ios$buildSett:{},deploymentTarget:(_config$ios$deploymen=(_config$ios4=config.ios)==null?void 0:_config$ios4.deploymentTarget)!=null?_config$ios$deploymen:'15.0',frameworkVersion:(_config$ios$framework2=(_config$ios5=config.ios)==null?void 0:_config$ios5.frameworkVersion)!=null?_config$ios$framework2:'1'}:null,android:androidPackage?{moduleName:androidModuleName,packageName:(_config$android$packa=(_config$android2=config.android)==null?void 0:_config$android2.packageName)!=null?_config$android$packa:androidPackage,minSdkVersion:(_config$android$minSd=(_config$android3=config.android)==null?void 0:_config$android3.minSdkVersion)!=null?_config$android$minSd:24,targetSdkVersion:(_config$android$targe=(_config$android4=config.android)==null?void 0:_config$android4.targetSdkVersion)!=null?_config$android$targe:35,compileSdkVersion:(_config$android$compi=(_config$android5=config.android)==null?void 0:_config$android5.compileSdkVersion)!=null?_config$android$compi:35,groupId:(_config$android$group=(_config$android6=config.android)==null?void 0:_config$android6.groupId)!=null?_config$android$group:androidPackage,artifactId:(_config$android$artif=(_config$android7=config.android)==null?void 0:_config$android7.artifactId)!=null?_config$android$artif:androidModuleName,version:(_config$android$versi=(_config$android8=config.android)==null?void 0:_config$android8.version)!=null?_config$android$versi:'0.0.1-SNAPSHOT'}:null,debug:(_config$debug2=config.debug)!=null?_config$debug2:false};}var withBrownfield=function withBrownfield(config){var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var resolvedConfig=resolveConfig(props!=null?props:{},config);var plugins=[];if(resolvedConfig.ios){plugins.push([_withBrownfieldIos.withBrownfieldIos,resolvedConfig]);}if(resolvedConfig.android){plugins.push([_withBrownfieldAndroid.withBrownfieldAndroid,resolvedConfig]);}return(0,_configPlugins.withPlugins)(config,plugins);};var _default=exports.default=(0,_configPlugins.createRunOncePlugin)(withBrownfield,process.env.npm_package_name,process.env.npm_package_version);
2
+ //# sourceMappingURL=withBrownfield.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_configPlugins","require","_withBrownfieldIos","_withBrownfieldAndroid","_logging","resolveConfig","_config$debug","_expoConfig$android","_config$android$modul","_config$android","_config$ios$framework","_config$ios","_config$ios$bundleIde","_config$ios2","_config$ios$buildSett","_config$ios3","_config$ios$deploymen","_config$ios4","_config$ios$framework2","_config$ios5","_config$android$packa","_config$android2","_config$android$minSd","_config$android3","_config$android$targe","_config$android4","_config$android$compi","_config$android5","_config$android$group","_config$android6","_config$android$artif","_config$android7","_config$android$versi","_config$android8","_config$debug2","config","arguments","length","undefined","expoConfig","Logger","setIsDebug","debug","androidPackage","android","package","androidModuleName","moduleName","ios","frameworkName","bundleIdentifier","buildSettings","deploymentTarget","frameworkVersion","packageName","minSdkVersion","targetSdkVersion","compileSdkVersion","groupId","artifactId","version","withBrownfield","props","resolvedConfig","plugins","push","withBrownfieldIos","withBrownfieldAndroid","withPlugins","_default","exports","default","createRunOncePlugin","process","env","npm_package_name","npm_package_version"],"sourceRoot":"../../../src","sources":["expo-config-plugin/withBrownfield.ts"],"mappings":"gFAAA,IAAAA,cAAA,CAAAC,OAAA,yBAQA,IAAAC,kBAAA,CAAAD,OAAA,4BACA,IAAAE,sBAAA,CAAAF,OAAA,oCAMA,IAAAG,QAAA,CAAAH,OAAA,cAQA,QAAS,CAAAI,aAAaA,CAAA,CAGY,KAAAC,aAAA,CAAAC,mBAAA,CAAAC,qBAAA,CAAAC,eAAA,CAAAC,qBAAA,CAAAC,WAAA,CAAAC,qBAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,YAAA,CAAAC,sBAAA,CAAAC,YAAA,CAAAC,qBAAA,CAAAC,gBAAA,CAAAC,qBAAA,CAAAC,gBAAA,CAAAC,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AACO,KAAK,QAAAR,cAAA,CAAI,KACzB,CAAC,CACH,CA8BA,GAAM,CAAA2B,cAA2D,CAAG,QAA9D,CAAAA,cAA2DA,CAC/D1B,MAAM,CAEH,IADH,CAAA2B,KAAK,CAAA1B,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAG,CAAC,CAAC,CAEV,GAAM,CAAA2B,cAAc,CAAG1D,aAAa,CAACyD,KAAK,OAALA,KAAK,CAAI,CAAC,CAAC,CAAE3B,MAAM,CAAC,CAEzD,GAAM,CAAA6B,OAAwC,CAAG,EAAE,CAEnD,GAAID,cAAc,CAACf,GAAG,CAAE,CACtBgB,OAAO,CAACC,IAAI,CAAC,CAACC,oCAAiB,CAAEH,cAAc,CAAC,CAAC,CACnD,CAEA,GAAIA,cAAc,CAACnB,OAAO,CAAE,CAC1BoB,OAAO,CAACC,IAAI,CAAC,CAACE,4CAAqB,CAAEJ,cAAc,CAAC,CAAC,CACvD,CAEA,MAAO,GAAAK,0BAAW,EAACjC,MAAM,CAAE6B,OAAO,CAAC,CACrC,CAAC,CAAC,IAAAK,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEa,GAAAC,kCAAmB,EAChCX,cAAc,CACdY,OAAO,CAACC,GAAG,CAACC,gBAAgB,CAC5BF,OAAO,CAACC,GAAG,CAACE,mBACd,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.brownfieldGradlePluginDependency=exports.BROWNFIELD_PLUGIN_VERSION=void 0;var BROWNFIELD_PLUGIN_VERSION=exports.BROWNFIELD_PLUGIN_VERSION='0.7.3';var brownfieldGradlePluginDependency=exports.brownfieldGradlePluginDependency=`classpath("com.callstack.react:brownfield-gradle-plugin:${BROWNFIELD_PLUGIN_VERSION}")`;
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BROWNFIELD_PLUGIN_VERSION","exports","brownfieldGradlePluginDependency"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/android/constants.ts"],"mappings":"2IAAO,GAAM,CAAAA,yBAAyB,CAAAC,OAAA,CAAAD,yBAAA,CAAG,OAAO,CACzC,GAAM,CAAAE,gCAAgC,CAAAD,OAAA,CAAAC,gCAAA,CAAG,2DAA2DF,yBAAyB,IAAI","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.modifyRootBuildGradle=modifyRootBuildGradle;exports.modifySettingsGradle=modifySettingsGradle;var _constants=require("./constants");var _logging=require("../logging");function modifyRootBuildGradle(contents){if(contents.includes('brownfield-gradle-plugin')){_logging.Logger.logDebug('Brownfield Gradle plugin already in root build.gradle, skipping');return contents;}_logging.Logger.logDebug(`Modifying root build.gradle to add the Gradle Brownfield plugin`);var buildscriptDepsRegex=/(buildscript\s*\{[\s\S]*?dependencies\s*\{[\s\S]*?)(})/m;var match=contents.match(buildscriptDepsRegex);if(!match){throw new Error('Could not locate buildscript block in root build.gradle');}var insertion=`\t${_constants.brownfieldGradlePluginDependency}\n\t`;var modifiedContents=contents.replace(buildscriptDepsRegex,`$1${insertion}$2`);_logging.Logger.logDebug('Added Brownfield Gradle plugin to root build.gradle');return modifiedContents;}function modifySettingsGradle(contents,moduleName){var includeStatement=`include ':${moduleName}'`;if(contents.includes(includeStatement)){_logging.Logger.logDebug(`Module "${moduleName}" already in settings.gradle, skipping`);return contents;}_logging.Logger.logDebug(`Modifying settings.gradle to include module "${moduleName}"`);var modifiedContents=contents+`\n${includeStatement}\n`;_logging.Logger.logDebug(`Added module "${moduleName}" to settings.gradle`);return modifiedContents;}
2
+ //# sourceMappingURL=gradleHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_constants","require","_logging","modifyRootBuildGradle","contents","includes","Logger","logDebug","buildscriptDepsRegex","match","Error","insertion","brownfieldGradlePluginDependency","modifiedContents","replace","modifySettingsGradle","moduleName","includeStatement"],"sourceRoot":"../../../../src","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,CAElE,MAAO,CAAAH,gBAAgB,CACzB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"createAndroidModule",{enumerable:true,get:function get(){return _withAndroidModuleFiles.createAndroidModule;}});Object.defineProperty(exports,"modifyRootBuildGradle",{enumerable:true,get:function get(){return _gradleHelpers.modifyRootBuildGradle;}});Object.defineProperty(exports,"modifySettingsGradle",{enumerable:true,get:function get(){return _gradleHelpers.modifySettingsGradle;}});Object.defineProperty(exports,"withAndroidModuleFiles",{enumerable:true,get:function get(){return _withAndroidModuleFiles.withAndroidModuleFiles;}});Object.defineProperty(exports,"withBrownfieldAndroid",{enumerable:true,get:function get(){return _withBrownfieldAndroid.withBrownfieldAndroid;}});var _withBrownfieldAndroid=require("./withBrownfieldAndroid");var _withAndroidModuleFiles=require("./withAndroidModuleFiles");var _gradleHelpers=require("./gradleHelpers");
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_withBrownfieldAndroid","require","_withAndroidModuleFiles","_gradleHelpers"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/android/index.ts"],"mappings":"iwBAAA,IAAAA,sBAAA,CAAAC,OAAA,4BACA,IAAAC,uBAAA,CAAAD,OAAA,6BAIA,IAAAE,cAAA,CAAAF,OAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createAndroidModule=createAndroidModule;exports.withAndroidModuleFiles=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var fs=_interopRequireWildcard(require("node:fs"));var path=_interopRequireWildcard(require("node:path"));var _configPlugins=require("@expo/config-plugins");var _logging=require("../logging");var _engine=require("../template/engine");function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}function createAndroidModule(_ref){var androidDir=_ref.androidDir,config=_ref.config,rnVersion=_ref.rnVersion;var android=config.android;var moduleDir=path.join(androidDir,android.moduleName);_logging.Logger.logDebug(`Creating Android module in: ${androidDir}`);var files=[{relativePath:'build.gradle.kts',content:(0,_engine.renderTemplate)('android','build.gradle.kts',{'{{PACKAGE_NAME}}':android.packageName,'{{MIN_SDK_VERSION}}':android.minSdkVersion.toString(),'{{COMPILE_SDK_VERSION}}':android.compileSdkVersion.toString(),'{{GROUP_ID}}':android.groupId,'{{ARTIFACT_ID}}':android.artifactId,'{{ARTIFACT_VERSION}}':android.version,'{{RN_VERSION}}':rnVersion})},{relativePath:'gradle.properties',content:(0,_engine.renderTemplate)('android','gradle.properties',{})},{relativePath:'src/main/AndroidManifest.xml',content:(0,_engine.renderTemplate)('android','AndroidManifest.xml',{})},{relativePath:`src/main/java/${config.android.packageName.replace(/\./g,'/')}/ReactNativeHostManager.kt`,content:(0,_engine.renderTemplate)('android','ReactNativeHostManager.kt',{'{{PACKAGE_NAME}}':android.packageName})},{relativePath:'consumer-rules.pro',content:(0,_engine.renderTemplate)('android','consumer-rules.pro',{})},{relativePath:'proguard-rules.pro',content:(0,_engine.renderTemplate)('android','proguard-rules.pro',{})}];for(var file of files){var filePath=path.join(moduleDir,file.relativePath);var fileDir=path.dirname(filePath);if(!fs.existsSync(fileDir)){fs.mkdirSync(fileDir,{recursive:true});}fs.writeFileSync(filePath,file.content,'utf8');_logging.Logger.logDebug(`Created file: ${filePath}`);}_logging.Logger.logDebug(`Android module "${android.moduleName}" created at ${moduleDir}`);}var withAndroidModuleFiles=exports.withAndroidModuleFiles=function withAndroidModuleFiles(config,props){return(0,_configPlugins.withDangerousMod)(config,['android',(function(){var _ref2=(0,_asyncToGenerator2.default)(function*(dangerousConfig){var androidDir=path.join(dangerousConfig.modRequest.projectRoot,'android');var rnVersion;try{var rnPkgPath=require.resolve('react-native/package.json',{paths:[dangerousConfig.modRequest.projectRoot]});var rnPkg=require(rnPkgPath);rnVersion=rnPkg.version;_logging.Logger.logDebug(`Resolved react-native version: ${rnVersion}`);}catch(_unused){throw new Error('Could not resolve react-native package version. Please ensure you have installed dependencies.');}createAndroidModule({androidDir:androidDir,config:props,rnVersion:rnVersion});return dangerousConfig;});return function(_x){return _ref2.apply(this,arguments);};}())]);};
2
+ //# sourceMappingURL=withAndroidModuleFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fs","_interopRequireWildcard","require","path","_configPlugins","_logging","_engine","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createAndroidModule","_ref","androidDir","config","rnVersion","android","moduleDir","join","moduleName","Logger","logDebug","files","relativePath","content","renderTemplate","packageName","minSdkVersion","toString","compileSdkVersion","groupId","artifactId","version","replace","file","filePath","fileDir","dirname","existsSync","mkdirSync","recursive","writeFileSync","withAndroidModuleFiles","exports","props","withDangerousMod","_ref2","_asyncToGenerator2","dangerousConfig","modRequest","projectRoot","rnPkgPath","resolve","paths","rnPkg","_unused","Error","_x","apply","arguments"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/android/withAndroidModuleFiles.ts"],"mappings":"oUAAA,IAAAA,EAAA,CAAAC,uBAAA,CAAAC,OAAA,aACA,IAAAC,IAAA,CAAAF,uBAAA,CAAAC,OAAA,eAEA,IAAAE,cAAA,CAAAF,OAAA,yBAMA,IAAAG,QAAA,CAAAH,OAAA,eACA,IAAAI,OAAA,CAAAJ,OAAA,uBAAoD,SAAAD,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CAAC,CAAC,CAEF,GAAM,CAAAI,KAAK,CAAGpE,OAAO,CAACiE,SAAS,CAAC,CAEhCpC,SAAS,CAAGuC,KAAK,CAACtB,OAAO,CAEzBZ,eAAM,CAACC,QAAQ,CAAC,kCAAkCN,SAAS,EAAE,CAAC,CAChE,CAAE,MAAAwC,OAAA,CAAM,CACN,KAAM,IAAI,CAAAC,KAAK,CACb,gGACF,CAAC,CACH,CAEA7C,mBAAmB,CAAC,CAClBE,UAAU,CAAVA,UAAU,CACVC,MAAM,CAAE8B,KAAK,CACb7B,SAAS,CAATA,SACF,CAAC,CAAC,CAEF,MAAO,CAAAiC,eAAe,CACxB,CAAC,kBAAAS,EAAA,SAAAX,KAAA,CAAAY,KAAA,MAAAC,SAAA,SACF,CAAC,CACJ,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.withBrownfieldAndroid=void 0;var _configPlugins=require("@expo/config-plugins");var _gradleHelpers=require("./gradleHelpers");var _withAndroidModuleFiles=require("./withAndroidModuleFiles");var withBrownfieldAndroid=exports.withBrownfieldAndroid=function withBrownfieldAndroid(config,props){var androidConfig=props.android;config=(0,_configPlugins.withProjectBuildGradle)(config,function(gradleConfig){gradleConfig.modResults.contents=(0,_gradleHelpers.modifyRootBuildGradle)(gradleConfig.modResults.contents);return gradleConfig;});config=(0,_configPlugins.withSettingsGradle)(config,function(settingsConfig){settingsConfig.modResults.contents=(0,_gradleHelpers.modifySettingsGradle)(settingsConfig.modResults.contents,androidConfig.moduleName);return settingsConfig;});config=(0,_withAndroidModuleFiles.withAndroidModuleFiles)(config,props);return config;};
2
+ //# sourceMappingURL=withBrownfieldAndroid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_configPlugins","require","_gradleHelpers","_withAndroidModuleFiles","withBrownfieldAndroid","exports","config","props","androidConfig","android","withProjectBuildGradle","gradleConfig","modResults","contents","modifyRootBuildGradle","withSettingsGradle","settingsConfig","modifySettingsGradle","moduleName","withAndroidModuleFiles"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/android/withBrownfieldAndroid.ts"],"mappings":"8FAAA,IAAAA,cAAA,CAAAC,OAAA,yBAMA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,uBAAA,CAAAF,OAAA,6BAYO,GAAM,CAAAG,qBAEZ,CAAAC,OAAA,CAAAD,qBAAA,CAAG,QAFS,CAAAA,qBAEZA,CAAIE,MAAM,CAAEC,KAAK,CAAK,CACrB,GAAM,CAAAC,aAAa,CAAGD,KAAK,CAACE,OAAO,CAGnCH,MAAM,CAAG,GAAAI,qCAAsB,EAACJ,MAAM,CAAE,SAACK,YAAY,CAAK,CACxDA,YAAY,CAACC,UAAU,CAACC,QAAQ,CAAG,GAAAC,oCAAqB,EACtDH,YAAY,CAACC,UAAU,CAACC,QAC1B,CAAC,CAED,MAAO,CAAAF,YAAY,CACrB,CAAC,CAAC,CAGFL,MAAM,CAAG,GAAAS,iCAAkB,EAACT,MAAM,CAAE,SAACU,cAAc,CAAK,CACtDA,cAAc,CAACJ,UAAU,CAACC,QAAQ,CAAG,GAAAI,mCAAoB,EACvDD,cAAc,CAACJ,UAAU,CAACC,QAAQ,CAClCL,aAAa,CAACU,UAChB,CAAC,CAED,MAAO,CAAAF,cAAc,CACvB,CAAC,CAAC,CAGFV,MAAM,CAAG,GAAAa,8CAAsB,EAACb,MAAM,CAAEC,KAAK,CAAC,CAE9C,MAAO,CAAAD,MAAM,CACf,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _withBrownfield=_interopRequireDefault(require("./withBrownfield"));var _default=exports.default=_withBrownfield.default;
2
+ //# sourceMappingURL=app.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_withBrownfield","_interopRequireDefault","require","_default","exports","default","withBrownfield"],"sourceRoot":"../../../src","sources":["expo-config-plugin/app.plugin.ts"],"mappings":"mKAOA,IAAAA,eAAA,CAAAC,sBAAA,CAAAC,OAAA,sBAA8C,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAE/BC,uBAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.SourceModificationError=void 0;var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _wrapNativeSuper2=_interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));function _callSuper(t,o,e){return o=(0,_getPrototypeOf2.default)(o),(0,_possibleConstructorReturn2.default)(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],(0,_getPrototypeOf2.default)(t).constructor):o.apply(t,e));}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}var SourceModificationError=exports.SourceModificationError=function(_Error){function SourceModificationError(){(0,_classCallCheck2.default)(this,SourceModificationError);return _callSuper(this,SourceModificationError,arguments);}(0,_inherits2.default)(SourceModificationError,_Error);return(0,_createClass2.default)(SourceModificationError);}((0,_wrapNativeSuper2.default)(Error));
2
+ //# sourceMappingURL=SourceModificationError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SourceModificationError","exports","_Error","_classCallCheck2","default","_callSuper","arguments","_inherits2","_createClass2","_wrapNativeSuper2","Error"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/errors/SourceModificationError.ts"],"mappings":"4qCAAa,CAAAA,uBAAuB,CAAAC,OAAA,CAAAD,uBAAA,UAAAE,MAAA,WAAAF,wBAAA,KAAAG,gBAAA,CAAAC,OAAA,OAAAJ,uBAAA,SAAAK,UAAA,MAAAL,uBAAA,CAAAM,SAAA,MAAAC,UAAA,CAAAH,OAAA,EAAAJ,uBAAA,CAAAE,MAAA,WAAAM,aAAA,CAAAJ,OAAA,EAAAJ,uBAAA,OAAAS,iBAAA,CAAAL,OAAA,EAASM,KAAK","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _withBrownfield=_interopRequireDefault(require("./withBrownfield"));var _default=exports.default=_withBrownfield.default;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_withBrownfield","_interopRequireDefault","require","_default","exports","default","withBrownfield"],"sourceRoot":"../../../src","sources":["expo-config-plugin/index.ts"],"mappings":"mKAKA,IAAAA,eAAA,CAAAC,sBAAA,CAAAC,OAAA,sBAA8C,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAE/BC,uBAAc","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"addFrameworkTarget",{enumerable:true,get:function get(){return _xcodeHelpers.addFrameworkTarget;}});Object.defineProperty(exports,"createIosFramework",{enumerable:true,get:function get(){return _withIosFrameworkFiles.createIosFramework;}});Object.defineProperty(exports,"modifyPodfile",{enumerable:true,get:function get(){return _podfileHelpers.modifyPodfile;}});Object.defineProperty(exports,"withBrownfieldIos",{enumerable:true,get:function get(){return _withBrownfieldIos.withBrownfieldIos;}});Object.defineProperty(exports,"withIosFrameworkFiles",{enumerable:true,get:function get(){return _withIosFrameworkFiles.withIosFrameworkFiles;}});var _withBrownfieldIos=require("./withBrownfieldIos");var _withIosFrameworkFiles=require("./withIosFrameworkFiles");var _xcodeHelpers=require("./xcodeHelpers");var _podfileHelpers=require("./podfileHelpers");
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_withBrownfieldIos","require","_withIosFrameworkFiles","_xcodeHelpers","_podfileHelpers"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/ios/index.ts"],"mappings":"2tBAAA,IAAAA,kBAAA,CAAAC,OAAA,wBACA,IAAAC,sBAAA,CAAAD,OAAA,4BAIA,IAAAE,aAAA,CAAAF,OAAA,mBACA,IAAAG,eAAA,CAAAH,OAAA","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.modifyPodfile=modifyPodfile;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _SourceModificationError=require("../errors/SourceModificationError");var _logging=require("../logging");var _engine=require("../template/engine");var BROWNFIELD_POD_HOOK_MARKER_START='# >>> react-native-brownfield expo phase ordering >>>';var BROWNFIELD_POD_HOOK_MARKER_END='# <<< react-native-brownfield expo phase ordering <<<';function ensureExpoPhaseOrderingHook(podfile){if(podfile.includes(BROWNFIELD_POD_HOOK_MARKER_START)){return podfile;}var hook=`
2
+ ${BROWNFIELD_POD_HOOK_MARKER_START}
3
+ def reorder_brownfield_expo_patch_phase!(installer)
4
+ projects = installer.aggregate_targets.map(&:user_project).compact.uniq
5
+ projects.each do |project|
6
+ modified = false
7
+
8
+ project.native_targets.each do |target|
9
+ phases = target.build_phases
10
+ expo_idx = phases.index { |p| p.respond_to?(:name) && p.name == '[Expo] Configure project' }
11
+ patch_idx = phases.index { |p| p.respond_to?(:name) && p.name == 'Patch ExpoModulesProvider' }
12
+
13
+ next if expo_idx.nil? || patch_idx.nil?
14
+ next if patch_idx > expo_idx
15
+
16
+ patch = phases.delete_at(patch_idx)
17
+ expo_idx = phases.index { |p| p.respond_to?(:name) && p.name == '[Expo] Configure project' }
18
+ phases.insert(expo_idx + 1, patch)
19
+ modified = true
20
+ end
21
+
22
+ project.save if modified
23
+ end
24
+ end
25
+
26
+ post_integrate do |installer|
27
+ reorder_brownfield_expo_patch_phase!(installer)
28
+ end
29
+ ${BROWNFIELD_POD_HOOK_MARKER_END}
30
+ `;return`${podfile.trimEnd()}\n\n${hook}\n`;}function modifyPodfile(podfile,frameworkName,isExpoPre55){if(podfile.includes(`target '${frameworkName}'`)){_logging.Logger.logDebug(`Framework target "${frameworkName}" already in Podfile, skipping modification`);return podfile;}_logging.Logger.logDebug(`Modifying Podfile for framework: ${frameworkName}`);var frameworkTargetBlock=(0,_engine.renderTemplate)('ios','PodfileTargetBlock.rb',{'{{FRAMEWORK_NAME}}':frameworkName});var mainTargetMatch=podfile.match(/(target\s+['"][^'"]+['"]\s+do\s*\n)([\s\S]*?)(^end\s*$)/m);if(!mainTargetMatch){throw new _SourceModificationError.SourceModificationError('Could not find main target in Podfile. Please manually add the framework target.');}var _mainTargetMatch=(0,_slicedToArray2.default)(mainTargetMatch,3),targetStart=_mainTargetMatch[1],targetContent=_mainTargetMatch[2];var insertIndex=podfile.indexOf(mainTargetMatch[0])+targetStart.length+targetContent.length;var modifiedPodfile=podfile.slice(0,insertIndex)+frameworkTargetBlock+podfile.slice(insertIndex);_logging.Logger.logDebug(`Added framework target "${frameworkName}" to Podfile`);if(isExpoPre55){modifiedPodfile=ensureExpoPhaseOrderingHook(modifiedPodfile);}return modifiedPodfile;}
31
+ //# sourceMappingURL=podfileHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_SourceModificationError","require","_logging","_engine","BROWNFIELD_POD_HOOK_MARKER_START","BROWNFIELD_POD_HOOK_MARKER_END","ensureExpoPhaseOrderingHook","podfile","includes","hook","trimEnd","modifyPodfile","frameworkName","isExpoPre55","Logger","logDebug","frameworkTargetBlock","renderTemplate","mainTargetMatch","match","SourceModificationError","_mainTargetMatch","_slicedToArray2","default","targetStart","targetContent","insertIndex","indexOf","length","modifiedPodfile","slice"],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CAAC,CACH,CAEA,IAAAC,gBAAA,IAAAC,eAAA,CAAAC,OAAA,EAAuCL,eAAe,IAA7CM,WAAW,CAAAH,gBAAA,IAAEI,aAAa,CAAAJ,gBAAA,IACnC,GAAM,CAAAK,WAAW,CACfnB,OAAO,CAACoB,OAAO,CAACT,eAAe,CAAC,CAAC,CAAC,CAAC,CACnCM,WAAW,CAACI,MAAM,CAClBH,aAAa,CAACG,MAAM,CAEtB,GAAI,CAAAC,eAAe,CACjBtB,OAAO,CAACuB,KAAK,CAAC,CAAC,CAAEJ,WAAW,CAAC,CAC7BV,oBAAoB,CACpBT,OAAO,CAACuB,KAAK,CAACJ,WAAW,CAAC,CAE5BZ,eAAM,CAACC,QAAQ,CAAC,2BAA2BH,aAAa,cAAc,CAAC,CAEvE,GAAIC,WAAW,CAAE,CACfgB,eAAe,CAAGvB,2BAA2B,CAACuB,eAAe,CAAC,CAChE,CAEA,MAAO,CAAAA,eAAe,CACxB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.withBrownfieldIos=void 0;var _configPlugins=require("@expo/config-plugins");var _xcodeHelpers=require("./xcodeHelpers");var _podfileHelpers=require("./podfileHelpers");var _withIosFrameworkFiles=require("./withIosFrameworkFiles");var _logging=require("../logging");var withBrownfieldIos=exports.withBrownfieldIos=function withBrownfieldIos(config,props){var expoMajor=config.sdkVersion?parseInt(config.sdkVersion.split('.')[0],10):-1;var isExpoPre55=expoMajor<55;config=(0,_configPlugins.withXcodeProject)(config,function(xcodeConfig){var project=xcodeConfig.modResults,modRequest=xcodeConfig.modRequest;var _addFrameworkTarget=(0,_xcodeHelpers.addFrameworkTarget)(project,modRequest,props.ios),frameworkTargetUUID=_addFrameworkTarget.frameworkTargetUUID,targetAlreadyExists=_addFrameworkTarget.targetAlreadyExists;if(targetAlreadyExists){_logging.Logger.logDebug(`Skipping further Xcode modifications as framework target was already present`);return xcodeConfig;}(0,_xcodeHelpers.copyBundleReactNativePhase)(project,frameworkTargetUUID);if(isExpoPre55){_logging.Logger.logDebug(`Adding ExpoModulesProvider patch phase for Expo SDK ${config.sdkVersion}`);(0,_xcodeHelpers.addExpoPre55ShellPatchScriptPhase)(project,{frameworkName:props.ios.frameworkName,frameworkTargetUUID:frameworkTargetUUID});}else{_logging.Logger.logDebug(`Skipping ExpoModulesProvider patch phase for Expo SDK ${config.sdkVersion}`);}(0,_xcodeHelpers.addSourceFilesBuildPhase)(project,frameworkTargetUUID,props.ios);return xcodeConfig;});config=(0,_configPlugins.withPodfile)(config,function(podfileConfig){var frameworkName=props.ios.frameworkName;podfileConfig.modResults.contents=(0,_podfileHelpers.modifyPodfile)(podfileConfig.modResults.contents,frameworkName,isExpoPre55);return podfileConfig;});config=(0,_withIosFrameworkFiles.withIosFrameworkFiles)(config,props);return config;};
2
+ //# sourceMappingURL=withBrownfieldIos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_configPlugins","require","_xcodeHelpers","_podfileHelpers","_withIosFrameworkFiles","_logging","withBrownfieldIos","exports","config","props","expoMajor","sdkVersion","parseInt","split","isExpoPre55","withXcodeProject","xcodeConfig","project","modResults","modRequest","_addFrameworkTarget","addFrameworkTarget","ios","frameworkTargetUUID","targetAlreadyExists","Logger","logDebug","copyBundleReactNativePhase","addExpoPre55ShellPatchScriptPhase","frameworkName","addSourceFilesBuildPhase","withPodfile","podfileConfig","contents","modifyPodfile","withIosFrameworkFiles"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/ios/withBrownfieldIos.ts"],"mappings":"0FAAA,IAAAA,cAAA,CAAAC,OAAA,yBAMA,IAAAC,aAAA,CAAAD,OAAA,mBAMA,IAAAE,eAAA,CAAAF,OAAA,qBACA,IAAAG,sBAAA,CAAAH,OAAA,4BAEA,IAAAI,QAAA,CAAAJ,OAAA,eAYO,GAAM,CAAAK,iBAEZ,CAAAC,OAAA,CAAAD,iBAAA,CAAG,QAFS,CAAAA,iBAEZA,CAAIE,MAAM,CAAEC,KAA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AAAuB,0BAAW,EAACvB,MAAM,CAAE,SAACwB,aAAa,CAAK,CAC9C,GAAQ,CAAAH,aAAa,CAAKpB,KAAK,CAACa,GAAG,CAA3BO,aAAa,CAErBG,aAAa,CAACd,UAAU,CAACe,QAAQ,CAAG,GAAAC,6BAAa,EAC/CF,aAAa,CAACd,UAAU,CAACe,QAAQ,CACjCJ,aAAa,CACbf,WACF,CAAC,CAED,MAAO,CAAAkB,aAAa,CACtB,CAAC,CAAC,CAGFxB,MAAM,CAAG,GAAA2B,4CAAqB,EAAC3B,MAAM,CAAEC,KAAK,CAAC,CAE7C,MAAO,CAAAD,MAAM,CACf,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createIosFramework=createIosFramework;exports.getFrameworkSourceFiles=getFrameworkSourceFiles;exports.withIosFrameworkFiles=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var fs=_interopRequireWildcard(require("node:fs"));var path=_interopRequireWildcard(require("node:path"));var _configPlugins=require("@expo/config-plugins");var _logging=require("../logging");var _engine=require("../template/engine");function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}function getFrameworkSourceFiles(ios){return[{relativePath:`${ios.frameworkName}.swift`,content:(0,_engine.renderTemplate)('ios','FrameworkInterface.swift',{})},{relativePath:'Info.plist',content:(0,_engine.renderTemplate)('ios','Info.plist',{'{{BUNDLE_IDENTIFIER}}':ios.bundleIdentifier})},{relativePath:'ReactNativeHostManager.swift',content:(0,_engine.renderTemplate)('ios','ReactNativeHostManager.swift',{})}];}function createIosFramework(iosDir,config){var ios=config.ios;var frameworkDir=path.join(iosDir,ios.frameworkName);if(fs.existsSync(frameworkDir)){_logging.Logger.logDebug(`Framework directory already exists: ${frameworkDir}`);return;}_logging.Logger.logDebug(`Creating iOS framework in: ${frameworkDir}`);if(!fs.existsSync(frameworkDir)){fs.mkdirSync(frameworkDir,{recursive:true});_logging.Logger.logDebug(`Created directory: ${frameworkDir}`);}for(var file of getFrameworkSourceFiles(ios)){var filePath=path.join(frameworkDir,file.relativePath);fs.writeFileSync(filePath,file.content,'utf8');}_logging.Logger.logDebug(`iOS framework "${ios.frameworkName}" files created at ${frameworkDir}`);}var withIosFrameworkFiles=exports.withIosFrameworkFiles=function withIosFrameworkFiles(config,props){return(0,_configPlugins.withDangerousMod)(config,['ios',(function(){var _ref=(0,_asyncToGenerator2.default)(function*(dangerousConfig){var iosDir=path.join(dangerousConfig.modRequest.projectRoot,'ios');createIosFramework(iosDir,props);return dangerousConfig;});return function(_x){return _ref.apply(this,arguments);};}())]);};
2
+ //# sourceMappingURL=withIosFrameworkFiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fs","_interopRequireWildcard","require","path","_configPlugins","_logging","_engine","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","getFrameworkSourceFiles","ios","relativePath","frameworkName","content","renderTemplate","bundleIdentifier","createIosFramework","iosDir","config","frameworkDir","join","existsSync","Logger","logDebug","mkdirSync","recursive","file","filePath","writeFileSync","withIosFrameworkFiles","exports","props","withDangerousMod","_ref","_asyncToGenerator2","dangerousConfig","modRequest","projectRoot","_x","apply","arguments"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/ios/withIosFrameworkFiles.ts"],"mappings":"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8C,aAAa,CAACD,QAAQ,CAAED,IAAI,CAACb,OAAO,CAAE,MAAM,CAAC,CAClD,CAEAS,eAAM,CAACC,QAAQ,CACb,kBAAkBb,GAAG,CAACE,aAAa,sBAAsBO,YAAY,EACvE,CAAC,CACH,CAKO,GAAM,CAAAU,qBAEZ,CAAAC,OAAA,CAAAD,qBAAA,CAAG,QAFS,CAAAA,qBAEZA,CAAIX,MAAM,CAAEa,KAAK,CAAK,CACrB,MAAO,GAAAC,+BAAgB,EAACd,MAAM,CAAE,CAC9B,KAAK,iBAAAe,IAAA,IAAAC,kBAAA,CAAAnC,OAAA,EACL,UAAOoC,eAAe,CAAK,CACzB,GAAM,CAAAlB,MAAM,CAAGhC,IAAI,CAACmC,IAAI,CAACe,eAAe,CAACC,UAAU,CAACC,WAAW,CAAE,KAAK,CAAC,CAEvErB,kBAAkB,CAACC,MAAM,CAAEc,KAAK,CAAC,CAEjC,MAAO,CAAAI,eAAe,CACxB,CAAC,kBAAAG,EAAA,SAAAL,IAAA,CAAAM,KAAA,MAAAC,SAAA,SACF,CAAC,CACJ,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.addExpoPre55ShellPatchScriptPhase=addExpoPre55ShellPatchScriptPhase;exports.addFrameworkTarget=addFrameworkTarget;exports.addSourceFilesBuildPhase=addSourceFilesBuildPhase;exports.copyBundleReactNativePhase=copyBundleReactNativePhase;exports.ensureExpoPre55ShellPatchScriptPhaseIsOrdered=ensureExpoPre55ShellPatchScriptPhaseIsOrdered;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _nodePath=_interopRequireDefault(require("node:path"));var _logging=require("../logging");var _SourceModificationError=require("../errors/SourceModificationError");var _withIosFrameworkFiles=require("./withIosFrameworkFiles");var _engine=require("../template/engine");function addFrameworkTarget(project,modRequest,options){var frameworkName=options.frameworkName,bundleIdentifier=options.bundleIdentifier;var existingTarget=project.pbxTargetByName(frameworkName);if(existingTarget){var _Object$entries$find;_logging.Logger.logDebug(`Framework target "${frameworkName}" already exists, skipping creation`);var frameworkTargetUUID=(_Object$entries$find=Object.entries(project.pbxNativeTargetSection()).find(function(_ref){var _ref2=(0,_slicedToArray2.default)(_ref,2),_key=_ref2[0],value=_ref2[1];return(value==null?void 0:value.productReference)===existingTarget.productReference;}))==null?void 0:_Object$entries$find[0];if(!frameworkTargetUUID){throw new _SourceModificationError.SourceModificationError(`Failed to find framework target UUID for ${frameworkName}, although it can be resolved by name`);}return{frameworkTargetUUID:frameworkTargetUUID,targetAlreadyExists:true};}_logging.Logger.logDebug(`Adding iOS framework target: ${frameworkName}`);var frameworkTarget=project.addTarget(frameworkName,'framework',frameworkName,bundleIdentifier);if(!frameworkTarget){throw new _SourceModificationError.SourceModificationError(`Failed to create framework target: ${frameworkName}`);}var frameworkBuildConfigurations=project.pbxXCConfigurationList()[frameworkTarget.pbxNativeTarget.buildConfigurationList];var debugFrameworkConfigKey=frameworkBuildConfigurations.buildConfigurations.find(function(_ref3){var comment=_ref3.comment;return comment==='Debug';}).value;var releaseFrameworkConfigKey=frameworkBuildConfigurations.buildConfigurations.find(function(_ref4){var comment=_ref4.comment;return comment==='Release';}).value;var debugSettings=getFrameworkBuildSettings({configuration:'Debug'},options);var releaseSettings=getFrameworkBuildSettings({configuration:'Release'},options);var configs=project.pbxXCBuildConfigurationSection();for(var configName in configs){var sourceBuildSettings=configName===releaseFrameworkConfigKey?releaseSettings:configName===debugFrameworkConfigKey?debugSettings:null;if(sourceBuildSettings){var destinationBuildSettings=configs[configName].buildSettings;for(var key in sourceBuildSettings){destinationBuildSettings[key]=sourceBuildSettings[key];}_logging.Logger.logDebug(`Updated build settings for ${configName} configuration of target ${frameworkName}`);}}Object.entries(debugSettings).forEach(function(_ref5){var _ref6=(0,_slicedToArray2.default)(_ref5,2),key=_ref6[0],value=_ref6[1];project.updateBuildProperty(key,value,'Debug',frameworkName);});Object.entries(releaseSettings).forEach(function(_ref7){var _ref8=(0,_slicedToArray2.default)(_ref7,2),key=_ref8[0],value=_ref8[1];project.updateBuildProperty(key,value,'Release',frameworkName);});var filePaths=(0,_withIosFrameworkFiles.getFrameworkSourceFiles)(options).map(function(file){return file.relativePath;});var groupPath=_nodePath.default.join(modRequest.platformProjectRoot,frameworkName);_logging.Logger.logDebug(`Creating PBX group '${frameworkName}' under path '${groupPath}' with files: ${filePaths.join(', ')}`);var frameworkGroup=project.addPbxGroup(filePaths,frameworkName,groupPath);var mainGroupKey=project.getFirstProject().firstProject.mainGroup;project.addToPbxGroup(frameworkGroup.uuid,mainGroupKey);_logging.Logger.logInfo(`Successfully added framework target: ${frameworkName}`);return{frameworkTargetUUID:frameworkTarget.uuid,targetAlreadyExists:false};}function addSourceFilesBuildPhase(project,frameworkTargetUUID,options){var filePaths=(0,_withIosFrameworkFiles.getFrameworkSourceFiles)(options).map(function(file){return file.relativePath;});var sourceFiles=filePaths.filter(function(filePath){return!filePath.endsWith('.plist');});project.addBuildPhase(sourceFiles,'PBXSourcesBuildPhase',options.frameworkName,frameworkTargetUUID,'framework','""');}function getFrameworkBuildSettings(_ref9,_ref0){var configuration=_ref9.configuration;var bundleIdentifier=_ref0.bundleIdentifier,deploymentTarget=_ref0.deploymentTarget,frameworkName=_ref0.frameworkName,frameworkVersion=_ref0.frameworkVersion,customBuildSettings=_ref0.buildSettings;var isDebug=configuration==='Debug';return Object.assign({BUILD_LIBRARY_FOR_DISTRIBUTION:'YES',USER_SCRIPT_SANDBOXING:'NO',SKIP_INSTALL:'NO',ENABLE_MODULE_VERIFIER:'NO',PRODUCT_BUNDLE_IDENTIFIER:`"${bundleIdentifier}"`,IPHONEOS_DEPLOYMENT_TARGET:deploymentTarget,SWIFT_VERSION:'5.0',TARGETED_DEVICE_FAMILY:`"1,2"`,INFOPLIST_FILE:`${frameworkName}/Info.plist`,CURRENT_PROJECT_VERSION:`"${frameworkVersion}"`,PRODUCT_NAME:'"$(TARGET_NAME)"',SWIFT_OPTIMIZATION_LEVEL:isDebug?'-Onone':'-O'},customBuildSettings);}function copyBundleReactNativePhase(project,targetUuid){var buildPhaseName='Bundle React Native code and images';var shellScriptPhases=project.hash.project.objects.PBXShellScriptBuildPhase;if(!shellScriptPhases){throw new _SourceModificationError.SourceModificationError(`No shell script build phases found, skipping ${buildPhaseName}`);}var existingPhaseUuid=null;for(var key of Object.keys(shellScriptPhases)){if(key.endsWith('_comment'))continue;var phase=shellScriptPhases[key];if(phase.name===`"${buildPhaseName}"`||phase.name===buildPhaseName){existingPhaseUuid=key;break;}}if(!existingPhaseUuid){throw new _SourceModificationError.SourceModificationError(`Could not find "${buildPhaseName}" build phase, skipping`);}var nativeTargets=project.hash.project.objects.PBXNativeTarget;if(nativeTargets&&nativeTargets[targetUuid]){var target=nativeTargets[targetUuid];if(target.buildPhases){if(!target.buildPhases.some(function(phase){return phase.value===existingPhaseUuid;})){target.buildPhases.push({value:existingPhaseUuid,comment:buildPhaseName});_logging.Logger.logDebug(`Added "${buildPhaseName}" build phase to framework target ${target.name}`);}}}}function addExpoPre55ShellPatchScriptPhase(project,_ref1){var frameworkName=_ref1.frameworkName,frameworkTargetUUID=_ref1.frameworkTargetUUID;project.addBuildPhase([],'PBXShellScriptBuildPhase','Patch ExpoModulesProvider',frameworkTargetUUID,{shellPath:'/bin/sh',shellScript:(0,_engine.renderTemplate)('ios','patchExpoPre55.sh',{'{{FRAMEWORK_NAME}}':frameworkName})});}function ensureExpoPre55ShellPatchScriptPhaseIsOrdered(project,frameworkTargetUUID){var modified=false;var nativeTargetSection=project.pbxNativeTargetSection();var buildPhases=nativeTargetSection[frameworkTargetUUID].buildPhases;var expoConfigurePhaseIndex=buildPhases.findIndex(function(phase){var _comment;return(phase==null||(_comment=phase.comment)==null?void 0:_comment.toLowerCase())==='[Expo] Configure project'.toLowerCase();});var patchExpoModulesProviderPhaseIndex=buildPhases.findIndex(function(phase){var _comment2;return(phase==null||(_comment2=phase.comment)==null?void 0:_comment2.toLowerCase())==='Patch ExpoModulesProvider'.toLowerCase();});if(patchExpoModulesProviderPhaseIndex<expoConfigurePhaseIndex){var element=buildPhases.splice(patchExpoModulesProviderPhaseIndex,1)[0];buildPhases.splice(expoConfigurePhaseIndex,0,element);modified=true;}nativeTargetSection[frameworkTargetUUID].buildPhases=buildPhases;project.writeSync();return modified;}
2
+ //# sourceMappingURL=xcodeHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_nodePath","_interopRequireDefault","require","_logging","_SourceModificationError","_withIosFrameworkFiles","_engine","addFrameworkTarget","project","modRequest","options","frameworkName","bundleIdentifier","existingTarget","pbxTargetByName","_Object$entries$find","Logger","logDebug","frameworkTargetUUID","Object","entries","pbxNativeTargetSection","find","_ref","_ref2","_slicedToArray2","default","_key","value","productReference","SourceModificationError","targetAlreadyExists","frameworkTarget","addTarget","frameworkBuildConfigurations","pbxXCConfigurationList","pbxNativeTarget","buildConfigurationList","debugFrameworkConfigKey","buildConfigurations","_ref3","comment","releaseFrameworkConfigKey","_ref4","debugSettings","getFrameworkBuildSettings","configuration","releaseSettings","configs","pbxXCBuildConfigurationSection","configName","sourceBuildSettings","destinationBuildSettings","buildSettings","key","forEach","_ref5","_ref6","updateBuildProperty","_ref7","_ref8","filePaths","getFrameworkSourceFiles","map","file","relativePath","groupPath","path","join","platformProjectRoot","frameworkGroup","addPbxGroup","mainGroupKey","getFirstProject","firstProject","mainGroup","addToPbxGroup","uuid","logInfo","addSourceFilesBuildPhase","sourceFiles","filter","filePath","endsWith","addBuildPhase","_ref9","_ref0","deploymentTarget","frameworkVersion","customBuildSettings","isDebug","assign","BUILD_LIBRARY_FOR_DISTRIBUTION","USER_SCRIPT_SANDBOXING","SKIP_INSTALL","ENABLE_MODULE_VERIFIER","PRODUCT_BUNDLE_IDENTIFIER","IPHONEOS_DEPLOYMENT_TARGET","SWIFT_VERSION","TARGETED_DEVICE_FAMILY","INFOPLIST_FILE","CURRENT_PROJECT_VERSION","PRODUCT_NAME","SWIFT_OPTIMIZATION_LEVEL","copyBundleReactNativePhase","targetUuid","buildPhaseName","shellScriptPhases","hash","objects","PBXShellScriptBuildPhase","existingPhaseUuid","keys","phase","name","nativeTargets","PBXNativeTarget","target","buildPhases","some","push","addExpoPre55ShellPatchScriptPhase","_ref1","shellPath","shellScript","renderTemplate","ensureExpoPre55ShellPatchScriptPhaseIsOrdered","modified","nativeTargetSection","expoConfigurePhaseIndex","findIndex","_comment","toLowerCase","patchExpoModulesProviderPhaseIndex","_comment2","element","splice","writeSync"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/ios/xcodeHelpers.ts"],"mappings":"8jBAAA,IAAAA,SAAA,CAAAC,sBAAA,CAAAC,OAAA,eAIA,IAAAC,QAAA,CAAAD,OAAA,eAEA,IAAAE,wBAAA,CAAAF,OAAA,sCACA,IAAAG,sBAAA,CAAAH,OAAA,4BACA,IAAAI,OAAA,CAAAJ,OAAA,uBAQO,QAAS,CAAAK,kBAAkBA,CAChCC,OAAqB,CACrBC,UAAkC,CAClCC,OAA0C,CAI1C,CACA,GAAQ,CAAAC,aAAa,CAAuBD,OAAO,CAA3CC,aAAa,CAAEC,gBAAgB,CAAKF,OAAO,CAA5BE,gBAAgB,CAGvC,GAAM,CAAAC,cAAc,CAAGL,OAAO,CAACM,eAAe,CAACH,aAAa,CAAC,CAC7D,GAAIE,cAAc,CAAE,KAAAE,oBAAA,CAClBC,eAAM,CAACC,QAAQ,CACb,qBAAqBN,aAAa,qCACpC,CAAC,CAED,GAAM,CAAAO,mBAAmB,EAAAH,oBAAA,CAAGI,MAAM,CAACC,OAAO,CACxCZ,OAAO,CAACa,sBAAsB,CAAC,CACjC,CAAC,CAACC,IAAI,CACJ,SAAAC,IAAA,MAAAC,KAAA,IAAAC,eAAA,CAAAC,OAAA,EAAAH,IAAA,IAAEI,IAAI,CAAAH,KAAA,IAAEI,KAAK,CAAAJ,KAAA,UACX,CAACI,KAAK,cAALA,KAAK,CAAUC,g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CACjB,CAEAC,mBAAmB,CAAC9G,mBAAmB,CAAC,CAACoG,WAAW,CAAGA,WAAW,CAElE9G,OAAO,CAACiI,SAAS,CAAC,CAAC,CAEnB,MAAO,CAAAV,QAAQ,CACjB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Logger=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var LOG_TAG='[react-native-brownfield]';var Logger=exports.Logger=function(){function Logger(){(0,_classCallCheck2.default)(this,Logger);}return(0,_createClass2.default)(Logger,null,[{key:"setIsDebug",value:function setIsDebug(enabled){this.debug=enabled;}},{key:"logInfo",value:function logInfo(message){var _console;for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}(_console=console).log.apply(_console,[`${LOG_TAG} ${message}`].concat(args));}},{key:"logDebug",value:function logDebug(message){var _console2;if(!this.debug){return;}for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}(_console2=console).debug.apply(_console2,[`${LOG_TAG} ${message}`].concat(args));}},{key:"logWarning",value:function logWarning(message){var _console3;for(var _len3=arguments.length,args=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){args[_key3-1]=arguments[_key3];}(_console3=console).warn.apply(_console3,[`${LOG_TAG} ${message}`].concat(args));}},{key:"logError",value:function logError(message){var _console4;for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){args[_key4-1]=arguments[_key4];}(_console4=console).error.apply(_console4,[`${LOG_TAG} ${message}`].concat(args));}}]);}();Logger.debug=false;
2
+ //# sourceMappingURL=logging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LOG_TAG","Logger","exports","_classCallCheck2","default","_createClass2","key","value","setIsDebug","enabled","debug","logInfo","message","_console","_len","arguments","length","args","Array","_key","console","log","apply","concat","logDebug","_console2","_len2","_key2","logWarning","_console3","_len3","_key3","warn","logError","_console4","_len4","_key4","error"],"sourceRoot":"../../../src","sources":["expo-config-plugin/logging.ts"],"mappings":"wVAAA,GAAM,CAAAA,OAAO,CAAG,2BAA2B,CAAC,GAE/B,CAAAC,MAAM,CAAAC,OAAA,CAAAD,MAAA,qBAAAA,OAAA,KAAAE,gBAAA,CAAAC,OAAA,OAAAH,MAAA,YAAAI,aAAA,CAAAD,OAAA,EAAAH,MAAA,QAAAK,GAAA,cAAAC,KAAA,CAGjB,QAAO,CAAAC,UAAUA,CAACC,OAAgB,CAAE,CAClC,IAAI,CAACC,KAAK,CAAGD,OAAO,CACtB,CAAC,GAAAH,GAAA,WAAAC,KAAA,CAED,QAAO,CAAAI,OAAOA,CAACC,OAAe,CAAkB,KAAAC,QAAA,SAAAC,IAAA,CAAAC,SAAA,CAAAC,MAAA,CAAbC,IAAI,KAAAC,KAAA,CAAAJ,IAAA,GAAAA,IAAA,MAAAK,IAAA,GAAAA,IAAA,CAAAL,IAAA,CAAAK,IAAA,IAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA,GACrC,CAAAN,QAAA,CAAAO,OAAO,EAACC,GAAG,CAAAC,KAAA,CAAAT,QAAA,EAAC,GAAGb,OAAO,IAAIY,OAAO,EAAE,EAAAW,MAAA,CAAKN,IAAI,EAAC,CAC/C,CAAC,GAAAX,GAAA,YAAAC,KAAA,CAED,QAAO,CAAAiB,QAAQA,CAACZ,OAAe,CAAkB,KAAAa,SAAA,CAC/C,GAAI,CAAC,IAAI,CAACf,KAAK,CAAE,CACf,OACF,CAAC,QAAAgB,KAAA,CAAAX,SAAA,CAAAC,MAAA,CAHiCC,IAAI,KAAAC,KAAA,CAAAQ,KAAA,GAAAA,KAAA,MAAAC,KAAA,GAAAA,KAAA,CAAAD,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est xmlns:android="http://schemas.android.com/apk/res/android">
3
+
4
+ </manifest>
@@ -0,0 +1,54 @@
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.ReactHost
9
+ import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
10
+ import com.facebook.react.ReactPackage
11
+ import com.facebook.react.defaults.DefaultReactNativeHost
12
+ import expo.modules.ApplicationLifecycleDispatcher
13
+ import expo.modules.ExpoReactHostFactory
14
+ import expo.modules.ReactNativeHostWrapper
15
+
16
+ object ReactNativeHostManager {
17
+ fun initialize(application: Application, onJSBundleLoaded: OnJSBundleLoaded? = null) {
18
+ loadReactNative(application)
19
+
20
+ ApplicationLifecycleDispatcher.onApplicationCreate(application)
21
+
22
+ val reactNativeHost = ReactNativeHostWrapper(
23
+ application,
24
+ object : DefaultReactNativeHost(application) {
25
+ override fun getUseDeveloperSupport(): Boolean {
26
+ return BuildConfig.DEBUG
27
+ }
28
+
29
+ override fun getPackages(): List<ReactPackage> {
30
+ return PackageList(application).packages
31
+ }
32
+
33
+ override fun getJSMainModuleName(): String {
34
+ return ".expo/.virtual-metro-entry"
35
+ }
36
+
37
+ override fun getBundleAssetName(): String = "index.android.bundle"
38
+ })
39
+
40
+
41
+ val reactHost: ReactHost by lazy {
42
+ ExpoReactHostFactory.createFromReactNativeHost(
43
+ context = application.applicationContext,
44
+ reactNativeHost = reactNativeHost
45
+ )
46
+ }
47
+
48
+ ReactNativeBrownfield.initialize(application, reactHost, onJSBundleLoaded)
49
+ }
50
+
51
+ fun onConfigurationChanged(application: Application, newConfig: Configuration) {
52
+ ApplicationLifecycleDispatcher.onConfigurationChanged(application, newConfig)
53
+ }
54
+ }
@@ -0,0 +1,90 @@
1
+ import groovy.json.JsonOutput
2
+ import groovy.json.JsonSlurper
3
+
4
+ plugins {
5
+ id("com.android.library")
6
+ id("org.jetbrains.kotlin.android")
7
+ id("com.callstack.react.brownfield")
8
+ `maven-publish`
9
+ id("com.facebook.react")
10
+ }
11
+
12
+ publishing {
13
+ publications {
14
+ create<MavenPublication>("mavenAar") {
15
+ groupId = "{{GROUP_ID}}"
16
+ artifactId = "{{ARTIFACT_ID}}"
17
+ version = "{{ARTIFACT_VERSION}}"
18
+ afterEvaluate {
19
+ from(components.getByName("default"))
20
+ }
21
+ }
22
+ }
23
+
24
+ repositories {
25
+ mavenLocal() // publishes to the local Maven repository (~/.m2/repository by default)
26
+ }
27
+ }
28
+
29
+ react {
30
+ autolinkLibrariesWithApp()
31
+ }
32
+
33
+ android {
34
+ namespace = "{{PACKAGE_NAME}}"
35
+ compileSdk = {{COMPILE_SDK_VERSION}}
36
+
37
+ defaultConfig {
38
+ minSdk = {{MIN_SDK_VERSION}}
39
+
40
+ buildConfigField(
41
+ "boolean",
42
+ "IS_EDGE_TO_EDGE_ENABLED",
43
+ properties["edgeToEdgeEnabled"].toString()
44
+ )
45
+ buildConfigField(
46
+ "boolean",
47
+ "IS_NEW_ARCHITECTURE_ENABLED",
48
+ properties["newArchEnabled"].toString()
49
+ )
50
+ buildConfigField("boolean", "IS_HERMES_ENABLED", properties["hermesEnabled"].toString())
51
+
52
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
53
+ consumerProguardFiles("consumer-rules.pro")
54
+ }
55
+
56
+ buildFeatures {
57
+ buildConfig = true
58
+ }
59
+
60
+ buildTypes {
61
+ release {
62
+ isMinifyEnabled = false
63
+ proguardFiles(
64
+ getDefaultProguardFile("proguard-android-optimize.txt"),
65
+ "proguard-rules.pro"
66
+ )
67
+ }
68
+ }
69
+ compileOptions {
70
+ sourceCompatibility = JavaVersion.VERSION_17
71
+ targetCompatibility = JavaVersion.VERSION_17
72
+ }
73
+ kotlinOptions {
74
+ jvmTarget = "17"
75
+ }
76
+
77
+ publishing {
78
+ multipleVariants {
79
+ allVariants()
80
+ }
81
+ }
82
+ }
83
+
84
+ dependencies {
85
+ api("com.facebook.react:react-android:{{RN_VERSION}}")
86
+ api("com.facebook.react:hermes-android:{{RN_VERSION}}")
87
+
88
+ api("io.coil-kt.coil3:coil-compose:3.2.0")
89
+ api("io.coil-kt.coil3:coil-network-okhttp:3.2.0")
90
+ }
@@ -0,0 +1,8 @@
1
+ android.useAndroidX=true
2
+
3
+ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
4
+ newArchEnabled=true
5
+ hermesEnabled=true
6
+ edgeToEdgeEnabled=false
7
+
8
+ org.gradle.caching=true
@@ -0,0 +1,21 @@
1
+ # Add project specific ProGuard rules here.
2
+ # You can control the set of applied configuration files using the
3
+ # proguardFiles setting in build.gradle.
4
+ #
5
+ # For more details, see
6
+ # http://developer.android.com/guide/developing/tools/proguard.html
7
+
8
+ # If your project uses WebView with JS, uncomment the following
9
+ # and specify the fully qualified class name to the JavaScript interface
10
+ # class:
11
+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
+ # public *;
13
+ #}
14
+
15
+ # Uncomment this to preserve the line number information for
16
+ # debugging stack traces.
17
+ #-keepattributes SourceFile,LineNumberTable
18
+
19
+ # If you keep the line number information, uncomment this to
20
+ # hide the original source file name.
21
+ #-renamesourcefileattribute SourceFile
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.renderTemplate=renderTemplate;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _nodePath=_interopRequireDefault(require("node:path"));var _nodeFs=_interopRequireDefault(require("node:fs"));function renderTemplate(platform,name,params){var templatePath=_nodePath.default.join(__dirname,platform,name);var templateContent=_nodeFs.default.readFileSync(templatePath,'utf8');for(var _ref of Object.entries(params!=null?params:{})){var _ref2=(0,_slicedToArray2.default)(_ref,2);var key=_ref2[0];var value=_ref2[1];var regex=new RegExp(key,'g');templateContent=templateContent.replace(regex,String(value));}return templateContent;}
2
+ //# sourceMappingURL=engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_nodePath","_interopRequireDefault","require","_nodeFs","renderTemplate","platform","name","params","templatePath","path","join","__dirname","templateContent","fs","readFileSync","_ref","Object","entries","_ref2","_slicedToArray2","default","key","value","regex","RegExp","replace","String"],"sourceRoot":"../../../../src","sources":["expo-config-plugin/template/engine.ts"],"mappings":"8QAAA,IAAAA,SAAA,CAAAC,sBAAA,CAAAC,OAAA,eACA,IAAAC,OAAA,CAAAF,sBAAA,CAAAC,OAAA,aASO,QAAS,CAAAE,cAAcA,CAC5BC,QAA2B,CAC3BC,IAAY,CACZC,MAAyC,CACjC,CACR,GAAM,CAAAC,YAAY,CAAGC,iBAAI,CAACC,IAAI,CAACC,SAAS,CAAEN,QAAQ,CAAEC,IAAI,CAAC,CAEzD,GAAI,CAAAM,eAAe,CAAGC,eAAE,CAACC,YAAY,CAACN,YAAY,CAAE,MAAM,CAAC,CAE3D,QAAAO,IAAA,GAA2B,CAAAC,MAAM,CAACC,OAAO,CAACV,MAAM,OAANA,MAAM,CAAI,CAAC,CAAC,CAAC,CAAE,KAAAW,KAAA,IAAAC,eAAA,CAAAC,OAAA,EAAAL,IAAA,OAA7C,CAAAM,GAAG,CAAAH,KAAA,OAAE,CAAAI,KAAK,CAAAJ,KAAA,IACpB,GAAM,CAAAK,KAAK,CAAG,GAAI,CAAAC,MAAM,CAACH,GAAG,CAAE,GAAG,CAAC,CAClCT,eAAe,CAAGA,eAAe,CAACa,OAAO,CAACF,KAAK,CAAEG,MAAM,CAACJ,KAAK,CAAC,CAAC,CACjE,CAEA,MAAO,CAAAV,eAAe,CACxB","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ // Export helpers from @callstack/react-native-brownfield library
2
+ @_exported import ReactBrownfield
3
+ @_exported import Brownie
4
+
5
+ // Initializes a Bundle instance that points at the framework target.
6
+ public let ReactNativeBundle = Bundle(for: InternalClassForBundle.self)
7
+
8
+ class InternalClassForBundle {}
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>{{BUNDLE_IDENTIFIER}}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>$(MARKETING_VERSION)</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>$(CURRENT_PROJECT_VERSION)</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,4 @@
1
+ # Brownfield framework target for packaging as XCFramework
2
+ target '{{FRAMEWORK_NAME}}' do
3
+ inherit! :complete
4
+ end
@@ -0,0 +1,63 @@
1
+ internal import Expo
2
+ internal import React
3
+ internal import ReactAppDependencyProvider
4
+ internal import React_RCTAppDelegate
5
+ import UIKit
6
+
7
+ public class ReactNativeHostManager {
8
+ public static let shared = ReactNativeHostManager()
9
+
10
+ private var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
11
+ private var reactNativeFactory: RCTReactNativeFactory?
12
+ private var expoDelegate: ExpoAppDelegate?
13
+
14
+ public func initialize() {
15
+ let delegate = ReactNativeDelegate()
16
+ let factory = ExpoReactNativeFactory(delegate: delegate)
17
+ delegate.dependencyProvider = RCTAppDependencyProvider()
18
+
19
+ reactNativeDelegate = delegate
20
+ reactNativeFactory = factory
21
+
22
+ expoDelegate = ExpoAppDelegate()
23
+ expoDelegate?.bindReactNativeFactory(factory)
24
+
25
+ // required to avoid this being file be stripped by the swift compiler
26
+ let _ = ExpoModulesProvider()
27
+ }
28
+
29
+ // propagate delegate methods to ExpoAppDelegate
30
+ public func application(
31
+ _ application: UIApplication,
32
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
33
+ ) -> Bool {
34
+ ((expoDelegate?.application(application, didFinishLaunchingWithOptions: launchOptions)) != nil)
35
+ }
36
+
37
+ // load & present RN UI
38
+ public func loadView(
39
+ moduleName: String, initialProps: [AnyHashable: Any]?,
40
+ launchOptions: [AnyHashable: Any]?
41
+ ) -> UIView {
42
+ let bundleURL = reactNativeDelegate?.bundleURL()
43
+ return (expoDelegate?.recreateRootView(
44
+ withBundleURL: bundleURL, moduleName: moduleName, initialProps: initialProps,
45
+ launchOptions: launchOptions))!
46
+ }
47
+ }
48
+
49
+ class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
50
+ override func sourceURL(for bridge: RCTBridge) -> URL? {
51
+ // needed to return the correct URL for expo-dev-client.
52
+ bridge.bundleURL ?? bundleURL()
53
+ }
54
+
55
+ override func bundleURL() -> URL? {
56
+ #if DEBUG
57
+ return RCTBundleURLProvider.sharedSettings().jsBundleURL(
58
+ forBundleRoot: ".expo/.virtual-metro-entry")
59
+ #else
60
+ return ReactNativeBundle.url(forResource: "main", withExtension: "jsbundle")
61
+ #endif
62
+ }
63
+ }