Bluesky app fork with some witchin' additions 馃挮
at main 1.5 kB view raw
1const {withInfoPlist} = require('@expo/config-plugins') 2const plist = require('@expo/plist') 3const path = require('path') 4const fs = require('fs') 5 6const withClipInfoPlist = (config, {targetName}) => { 7 // eslint-disable-next-line no-shadow 8 return withInfoPlist(config, config => { 9 const targetPath = path.join( 10 config.modRequest.platformProjectRoot, 11 targetName, 12 'Info.plist', 13 ) 14 15 const newPlist = plist.default.build({ 16 NSAppClip: { 17 NSAppClipRequestEphemeralUserNotification: false, 18 NSAppClipRequestLocationConfirmation: false, 19 }, 20 UILaunchScreen: {}, 21 CFBundleName: '$(PRODUCT_NAME)', 22 CFBundleIdentifier: '$(PRODUCT_BUNDLE_IDENTIFIER)', 23 CFBundleVersion: '$(CURRENT_PROJECT_VERSION)', 24 CFBundleExecutable: '$(EXECUTABLE_NAME)', 25 CFBundlePackageType: '$(PRODUCT_BUNDLE_PACKAGE_TYPE)', 26 CFBundleShortVersionString: config.version, 27 CFBundleIconName: 'AppIcon', 28 UIViewControllerBasedStatusBarAppearance: 'NO', 29 UISupportedInterfaceOrientations: [ 30 'UIInterfaceOrientationPortrait', 31 'UIInterfaceOrientationPortraitUpsideDown', 32 ], 33 'UISupportedInterfaceOrientations~ipad': [ 34 'UIInterfaceOrientationPortrait', 35 'UIInterfaceOrientationPortraitUpsideDown', 36 ], 37 }) 38 39 fs.mkdirSync(path.dirname(targetPath), {recursive: true}) 40 fs.writeFileSync(targetPath, newPlist) 41 42 return config 43 }) 44} 45 46module.exports = {withClipInfoPlist}