Expo Info.plist setup for App Transport Security exception - plist

I have a fetch iโ€™m performing on a non https domain. The domain is pre-defined, so i just need to add it to the exception list in the plist, but canโ€™t see how the plist stuff translates to JSON for Expo setup;
It's something like this to allow the non-https domains in XML
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
Expo gives this to add plist config;
"infoPlist": {
...
}
Say for example i wanted to allow http://something.com - how would that translate to the json? I have tried several different setups, all to no avail.

Related

How should I go about adding a Custom URL Scheme to my Info.plist file for firebase phone auth?

This question is in relation to Why firebase phone auth requires a custom URL scheme to be registered in Xcode?
I have tried a couple of things to add Custom URL Scheme to my Info.plist to no luck
I added the following lines to my Info.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.googleusercontent.apps</string>
<key>CFBundleURLSchemes</key>
<array>
<string>apps.{{CLIENT_ID}}</string>
</array>
</dict>
</array>
EDIT:
Solved the problem by modifying the above lines like this
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.{{CLIENT_ID}}</string>
</array>
</dict>
</array>
Add it in Info > Url Types like so:
More details here:
https://firebase.google.com/docs/auth/ios/phone-auth#set-up-recaptcha-verification

ERROR ITMS-90045: "Invalid Code Signing Entitlements - 'UISupportedInterfaceOrientations'

Im trying to submit my app to the apple store but I am getting a 16 errors after I archive for publishing : This is the first one:
ERROR ITMS-90045: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, key 'UISupportedInterfaceOrientations' in 'Payload/Caregiver.iOS.app/Caregiver.iOS' is not supported."
I dont know where to start to solve this?
The contents of the Info.plist file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>Caregiver</string>
<key>CFBundleName</key>
<string>Caregiver</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>1.2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>CFBundleIdentifier</key>
<string>com.wisepill.Caregiver</string>
</dict>
</plist>
In the Info.plist file in iOS project add this line
<key>UISupportedInterfaceOrientations</key>
<array/>
I recreated the provisioning profile and it went through! Clearly, the app store submissions process does not always provide error messages that point to the actual root cause of the issue.

Syntax highlighting inside Symfony annotations in Sublime 3

Is there any plugin for sublime that is adding color highlight to the Symfony annotations for PHP? Or is it easy to add in some other way? Even if the annotations are written as PHP comments, it would be nice to have some color there as well.
There is no plugin at the moment, but I found an interesting Gist with instructions to change the default PHP syntax highlighting in order to support the Symfony, Doctrine and JMS annotations.
These are the dict patterns that you should add for the PHP document:
<dict>
<key>match</key>
<string>\#(Route|Template|Method|ParamConverter|Cache)\b</string>
<key>name</key>
<string>keyword.other.symfonyannotations.php</string>
</dict>
<dict>
<key>match</key>
<string>\#(Assert)\b</string>
<key>name</key>
<string>keyword.other.symfonyassertannotations.php</string>
</dict>
<dict>
<key>match</key>
<string>\#(ORM)\b</string>
<key>name</key>
<string>keyword.other.doctrineannotations.php</string>
</dict>
<dict>
<key>match</key>
<string>\#(Secure)\b</string>
<key>name</key>
<string>keyword.other.jmssecurityannotations.php</string>
</dict>
See the Gist for detailed instructions ๐Ÿ˜‰๐Ÿ‘
(Note: I personally didn't try it yet, but looks fine to me)

launchd plist launching at startup but not supposed to

Like it says on the tin, I've a launch script that is supposed to fire at 1.20 AM but seems to be firing shortly after the user logs in instead. Can anyone see what I've done wrong?
Is is the way I've written the ProgramArguments, reaching within the app's container to launch it? I've not had success launching the (applescript) app any other way i.e. open ~/Library/CDesResources/Shutdown.app didn't seem to work.
The plist is saved in ~/Library/LaunchAgents/shutdownAgent.plist so it should only fire when that user is logged in correct?
Many thanks for your fresh eyes and expertise.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>shutdownAget</string>
<key>Nice</key>
<integer>-20</integer>
<key>ProgramArguments</key>
<array>
<string>/Library/CDesResources/Shutdown.app/Contents/MacOS/applet</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>ServiceDescription</key>
<string>launch the shutdown script</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>1</integer>
<key>Minute</key>
<integer>20</integer>
</dict>
</dict>
</plist>
From the man page for launchd.plist(5):
Unlike cron which skips job invocations when the computer is asleep, launchd will start the job the next time the computer wakes up. If multiple
intervals transpire before the computer is woken, those events will be coalesced into one event upon wake from sleep.
So launchd is correctly noticing at launch that the job didn't run at 01:20 and scheduling it for you.

How do i associate excel file type (xlsx) with iPhone application

Hi i have managed to open .xls files form mail app by adding document type to the project build and set the Types field to "com.microsoft.excel.xls" (see screen shot).
I want to do the same with xlsx files but can't do it. I tried to add "com.microsoft.excel.xlsx" but it didn't work
I solved that by defining custom UTI as follows. Try to add these definitions into your info.plist. It works as expected.
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeDescription</key>
<string>XLSX input table document</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>xlsx</string>
<key>public.mime-type</key>
<string>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</string>
</dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeIdentifier</key>
<string>com.mydomain.myapplication.xlsx</string>
</dict>
</array>
....
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>XLSX input table document</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.mydomain.myapplication.xlsx</string>
</array>
</dict>
</array>
The identifier for XLSX files is org.openxmlformats.spreadsheetml.sheet
Checkout: https://escapetech.eu/manuals/qdrop/uti.html
XSLX is already declared as org.openxmlformats.presentationml.presentation

Resources