File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
modules/expo-flutter-view/plugin/src Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ $ npm run flutter:build:web
110110Then run ` expo prebuild ` command to prepare the Expo app:
111111
112112``` console
113- $ npx expo prebuild --clean
113+ $ npx expo prebuild
114114```
115115
116116Finally, run the ` npm run <platfrom> ` command to start the Expo app on the desired platform:
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ const withFlutter: ConfigPlugin = config => {
8383 const podfile = path . join ( config . modRequest . platformProjectRoot , 'Podfile' ) ;
8484 const projectRoot = config . modRequest . projectRoot
8585
86+ // Inject Flutter pods into the Podfile
87+ // TODO(p-mazhnik): to avoid frequent Podfile updates, logic below could be extracted to the custom ruby script
8688 const pluginsDir = path . join ( projectRoot , 'modules/expo-flutter-view/ios/Flutter/plugins' ) ;
8789 const flutterIosPluginPods = [ ]
8890 flutterIosPluginPods . push ( ' pod \'Flutter\', :podspec => \'../modules/expo-flutter-view/ios/Flutter/Flutter.podspec\'' ) ;
Original file line number Diff line number Diff line change 11rm -rf modules/expo-flutter-view/ios/Flutter
22cd flutter_module
3+ # Use --no-plugins here, so flutter plugins won't be built as xcframeworks and will be handled by expo's Podfile.
4+ # This is needed to resolve conflicts between flutter and expo native ios dependencies and build configs.
5+ # See also https://github.com/p-mazhnik/flutter-embedding/issues/16 and https://github.com/flutter/flutter/issues/130220
36flutter build ios-framework --no-plugins --cocoapods --output=../modules/expo-flutter-view/ios/Flutter
47cd -
58cd modules/expo-flutter-view/ios/Flutter
@@ -8,4 +11,6 @@ zip -rm Debug.zip Debug
811zip -rm Release.zip Release
912zip -rm Profile.zip Profile
1013cd -
14+ # Copy flutter ios plugins from flutter_module to expo-flutter-view
15+ # They will be injected to expo's Podfile by plugin
1116node ./scripts/prepare_ios_plugins.js
You can’t perform that action at this time.
0 commit comments