Skip to content

Commit

Permalink
Add App Groups to Entitlement files
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLem committed Mar 29, 2018
1 parent 1c7f5a1 commit 6c55d1a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ SOFTWARE.

<source-file src="src/ios/OpenWithPlugin.m" />

<!-- Info.plist -->
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<string>CFBundleURLName</string>
<string>cc.fovea.openwith.$IOS_URL_SCHEME.shareextension</string>
<string>$(CFBundleIdentifier).shareextension</string>
<string>CFBundleURLSchemes</string>
<array>
<string>$IOS_URL_SCHEME</string>
Expand All @@ -73,11 +74,27 @@ SOFTWARE.
</array>
</config-file>

<!-- Entitlements (Debug) -->
<config-file target="*-Debug.plist" parent="com.apple.security.application-groups">
<array>
<string>group.$(CFBundleIdentifier).shareextension</string>
</array>
</config-file>

<!-- Entitlements (Release) -->
<config-file target="*-Release.plist" parent="com.apple.security.application-groups">
<array>
<string>group.$(CFBundleIdentifier).shareextension</string>
</array>
</config-file>

<!-- Cordova hooks -->
<hook type="before_plugin_install" src="hooks/npmInstall.js" />
<hook type="before_plugin_install" src="hooks/iosCopyShareExtension.js" />
<hook type="after_plugin_install" src="hooks/iosAddTarget.js" />
<hook type="before_plugin_uninstall" src="hooks/iosRemoveTarget.js" />

<!-- Dependencies -->
<framework src="MobileCoreServices.framework" />
</platform>
<!--
Expand Down

0 comments on commit 6c55d1a

Please sign in to comment.