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.authors = 'Facebook'
# spec.prepare_command = 'mv src double-conversion' # spec.prepare_command = 'mv src double-conversion'
spec.source = { :git => 'https://github.com/facebook/Sonar.git', spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:branch=> "iOS-RSocket" } :branch=> "master" }
spec.module_name = 'SonarKit' spec.module_name = 'SonarKit'
spec.dependency 'Folly' spec.dependency 'Folly'
spec.dependency 'Sonar' spec.dependency 'Sonar'

View File

@@ -48,6 +48,13 @@ using WrapperPlugin = facebook::sonar::SonarCppWrapperPlugin;
NSString *appId = appName; NSString *appId = appName;
NSString *privateAppDirectory = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES)[0]; 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 #if TARGET_OS_SIMULATOR
deviceName = [NSString stringWithFormat:@"%@ %@", [[UIDevice currentDevice] model], @"Simulator"]; deviceName = [NSString stringWithFormat:@"%@ %@", [[UIDevice currentDevice] model], @"Simulator"];
#endif #endif

View File

@@ -7,7 +7,7 @@ Pod::Spec.new do |spec|
spec.authors = 'Facebook' spec.authors = 'Facebook'
# spec.prepare_command = 'mv src double-conversion' # spec.prepare_command = 'mv src double-conversion'
spec.source = { :git => 'https://github.com/facebook/Sonar.git', spec.source = { :git => 'https://github.com/facebook/Sonar.git',
:branch => 'iOS-RSocket' } :branch => 'master' }
spec.module_name = 'Sonar' spec.module_name = 'Sonar'
spec.public_header_files = 'xplat/Sonar/*.h' spec.public_header_files = 'xplat/Sonar/*.h'
spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}' spec.source_files = 'xplat/Sonar/*.{h,cpp,m,mm}'