Fall back to "CFBundleName" in GCDWebUploader footer if "CFBundleDisplayName" is not defined

This commit is contained in:
Pierre-Olivier Latour
2019-01-06 11:19:27 -08:00
parent cbbf5483e8
commit 0001648879
+3
View File
@@ -118,6 +118,9 @@ NS_ASSUME_NONNULL_END
NSString* footer = server.footer;
if (footer == nil) {
NSString* name = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
if (name == nil) {
name = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
}
NSString* version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
#if !TARGET_OS_IPHONE
if (!name && !version) {