iOS - Use bundleId for app ID
Summary: The appId field gets embedded into the certificate request, so flipper knows which app to provide the cert to. In iOS this field is never used, so far, because the destination path uniquely identifies the app so this is redundant. For physical iPhones however, knowing the bundle id lets you deploy files into the container, so we can use this value. Reviewed By: passy Differential Revision: D13000296 fbshipit-source-id: 9f21850b908a03f1be87dc204e59d616150cc7ec
This commit is contained in:
committed by
Facebook Github Bot
parent
274d71cb2f
commit
c76b524907
@@ -51,8 +51,9 @@ using WrapperPlugin = facebook::flipper::FlipperCppWrapperPlugin;
|
||||
if (self = [super init]) {
|
||||
UIDevice *device = [UIDevice currentDevice];
|
||||
NSString *deviceName = [device name];
|
||||
NSString *appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleNameKey];
|
||||
NSString *appId = appName;
|
||||
NSBundle *bundle = [NSBundle mainBundle];
|
||||
NSString *appName = [bundle objectForInfoDictionaryKey:(NSString *)kCFBundleNameKey];
|
||||
NSString *appId = [bundle bundleIdentifier];
|
||||
NSString *privateAppDirectory = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES)[0];
|
||||
|
||||
NSFileManager *manager = [NSFileManager defaultManager];
|
||||
|
||||
Reference in New Issue
Block a user