Skip to content

Commit ce7dff8

Browse files
msmollinsarahsnow1
authored andcommitted
Update the Sample App to correctly handle empty string API keys (#353)
1 parent e120fbc commit ce7dff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SampleApp-Objc/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2424
}
2525

2626
- (NSString *)getEnvironmentVariableForKey:(NSString *)key {
27-
if (NSBundle.mainBundle.infoDictionary[key]) {
27+
if (NSBundle.mainBundle.infoDictionary[key] && (NSString*)NSBundle.mainBundle.infoDictionary[key] != [NSString stringWithFormat:@""]) {
2828
return NSBundle.mainBundle.infoDictionary[key];
2929
}
3030

0 commit comments

Comments
 (0)