This commit is contained in:
Pritesh Nandgaonkar
2018-06-01 16:54:50 +01:00
parent 04b1ea9915
commit 5d36d890b3
3 changed files with 9 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ Pod::Spec.new do |spec|
spec.authors = 'Facebook'
# spec.prepare_command = 'mv src double-conversion'
spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:branch=> "iOS-RSocket" }
:branch=> "master" }
spec.module_name = 'SonarKit'
spec.dependency 'Folly'
spec.dependency 'Sonar'

View File

@@ -48,6 +48,13 @@ using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin;
NSString *appId = appName;
NSString *privateAppDirectory = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES)[0];
NSFileManager *manager = [NSFileManager defaultManager];
if ([manager fileExistsAtPath:privateAppDirectory isDirectory:NULL] == NO) {
//TODO: Handle errors properly
[manager createDirectoryAtPath:privateAppDirectory withIntermediateDirectories:YES attributes:nil error:nil];
}
#if TARGET_OS_SIMULATOR
deviceName = [NSString stringWithFormat:@"%@ %@", [[UIDevice currentDevice] model], @"Simulator"];
#endif