final
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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}'
|
||||||
|
|||||||
Reference in New Issue
Block a user