about summary refs log tree commit diff
path: root/plugins/shareExtension/withAppEntitlements.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/shareExtension/withAppEntitlements.js')
-rw-r--r--plugins/shareExtension/withAppEntitlements.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/shareExtension/withAppEntitlements.js b/plugins/shareExtension/withAppEntitlements.js
new file mode 100644
index 000000000..6f9136c37
--- /dev/null
+++ b/plugins/shareExtension/withAppEntitlements.js
@@ -0,0 +1,13 @@
+const {withEntitlementsPlist} = require('@expo/config-plugins')
+
+const withAppEntitlements = config => {
+  // eslint-disable-next-line no-shadow
+  return withEntitlementsPlist(config, async config => {
+    config.modResults['com.apple.security.application-groups'] = [
+      `group.${config.ios.bundleIdentifier}`,
+    ]
+    return config
+  })
+}
+
+module.exports = {withAppEntitlements}