Skip to content

Commit 9f28c8e

Browse files
committed
add comments
1 parent f8e2052 commit 9f28c8e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

expo-flutter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $ npm run flutter:build:web
110110
Then run `expo prebuild` command to prepare the Expo app:
111111

112112
```console
113-
$ npx expo prebuild --clean
113+
$ npx expo prebuild
114114
```
115115

116116
Finally, run the `npm run <platfrom>` command to start the Expo app on the desired platform:

expo-flutter/modules/expo-flutter-view/plugin/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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\'');

expo-flutter/scripts/flutter_build_ios.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
rm -rf modules/expo-flutter-view/ios/Flutter
22
cd 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
36
flutter build ios-framework --no-plugins --cocoapods --output=../modules/expo-flutter-view/ios/Flutter
47
cd -
58
cd modules/expo-flutter-view/ios/Flutter
@@ -8,4 +11,6 @@ zip -rm Debug.zip Debug
811
zip -rm Release.zip Release
912
zip -rm Profile.zip Profile
1013
cd -
14+
# Copy flutter ios plugins from flutter_module to expo-flutter-view
15+
# They will be injected to expo's Podfile by plugin
1116
node ./scripts/prepare_ios_plugins.js

0 commit comments

Comments
 (0)