Even though I had expo.“orientation” = “portrait” in app.json, the final build IPA had the following attributes:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
do I need to add anything extra to app.json ? here is the current app.json (some values edited )
{
"expo": {
"name": "Myapp",
"description": "Beautiful app",
"slug": "bapp",
"privacy": "public",
"sdkVersion": "30.0.0",
"version": "1.0.0",
"orientation": "portrait",
"primaryColor": "#cccccc",
"icon": "./assets/icons/appstore_icon.png",
"loading": {
"icon": "./assets/icons/loading-icon.png",
"hideExponentText": true
},
"packagerOpts": {
"assetExts": ["ttf", "mp4","png","otf"]
},
"ios": {
"supportsTablet": true,
"buildNumber":"2.0.0",
"isTabletOnly":true ,
"bundleIdentifier": "foo.bar.justforforum",
"config":{
"usesNonExemptEncryption": false
},
"infoPlist": {
"NSCameraUsageDescription": "some message"
}
},
"android": {
"package": "com.comp.jusforforum",
"permissions":[
"CAMERA"
]
},
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "my-org-temp",
"project": "someproj",
"authToken": "someval"
}
}
]
},
"splash": {
"image": "./assets/splash.png",
"backgroundColor":"#343534",
"resizeMode": "contain"
},
"assetBundlePatterns":[
"assets/allergies/*",
"assets/fonts/*",
"assets/foodicons/*",
"assets/icons/*",
"assets/*"
]
}
}