Bluesky app fork with some witchin' additions 馃挮
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 return withInfoPlist(config, config => {
8 const targetPath = path.join(
9 config.modRequest.platformProjectRoot,
10 targetName,
11 'Info.plist',
12 )
13
14 const newPlist = plist.default.build({
15 NSAppClip: {
16 NSAppClipRequestEphemeralUserNotification: false,
17 NSAppClipRequestLocationConfirmation: false,
18 },
19 UILaunchScreen: {},
20 CFBundleName: '$(PRODUCT_NAME)',
21 CFBundleIdentifier: '$(PRODUCT_BUNDLE_IDENTIFIER)',
22 CFBundleVersion: '$(CURRENT_PROJECT_VERSION)',
23 CFBundleExecutable: '$(EXECUTABLE_NAME)',
24 CFBundlePackageType: '$(PRODUCT_BUNDLE_PACKAGE_TYPE)',
25 CFBundleShortVersionString: config.version,
26 CFBundleIconName: 'AppIcon',
27 UIViewControllerBasedStatusBarAppearance: 'NO',
28 UISupportedInterfaceOrientations: [
29 'UIInterfaceOrientationPortrait',
30 'UIInterfaceOrientationPortraitUpsideDown',
31 ],
32 'UISupportedInterfaceOrientations~ipad': [
33 'UIInterfaceOrientationPortrait',
34 'UIInterfaceOrientationPortraitUpsideDown',
35 ],
36 })
37
38 fs.mkdirSync(path.dirname(targetPath), {recursive: true})
39 fs.writeFileSync(targetPath, newPlist)
40
41 return config
42 })
43}
44
45module.exports = {withClipInfoPlist}