Skip to content

Commit 8ee605b

Browse files
authored
Merge pull request #28 from bndkt/nathan/sentry-fix
2 parents 9bb2c77 + c08ad5a commit 8ee605b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/withPodfile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export const withPodfile: ConfigPlugin<{ targetName: string }> = (
3535
src: podFileContent,
3636
newSrc: `installer.pods_project.targets.each do |target|
3737
target.build_configurations.each do |config|
38-
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'
38+
# Sentry has build errors unless configured as 'YES' for the Sentry target: https://github.com/bndkt/react-native-widget-extension/issues/24
39+
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = target.name == 'Sentry' ? 'YES' : 'No'
3940
end
4041
end`,
4142
anchor:

0 commit comments

Comments
 (0)