Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233const {withInfoPlist} = require('@expo/config-plugins')const plist = require('@expo/plist')const path = require('path')const fs = require('fs')
const withClipEntitlements = (config, {targetName}) => { // eslint-disable-next-line no-shadow return withInfoPlist(config, config => { const entitlementsPath = path.join( config.modRequest.platformProjectRoot, targetName, `${targetName}.entitlements`, )
const appClipEntitlements = { 'com.apple.security.application-groups': [`group.app.witchsky`], 'com.apple.developer.parent-application-identifiers': [ `$(AppIdentifierPrefix)${config.ios.bundleIdentifier}`, ], 'com.apple.developer.associated-domains': config.ios.associatedDomains, }
fs.mkdirSync(path.dirname(entitlementsPath), { recursive: true, }) fs.writeFileSync(entitlementsPath, plist.default.build(appClipEntitlements))
return config })}
module.exports = {withClipEntitlements}