Skip to content

Commit

Permalink
Add podspec ✔️
Browse files Browse the repository at this point in the history
- Fix few unused lint errors.
  • Loading branch information
ikesyo authored and Pitometsu committed Oct 1, 2016
2 parents 70b87ee + d1d0a9e commit 43f9b60
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cartfile.private
@@ -1,3 +1,3 @@
github "jspahrsummers/xcconfigs" "3d9d996"
github "Quick/Quick" "swift-3.0"
github "Quick/Nimble" "master"
github "Quick/Quick" ~> 0.10
github "Quick/Nimble" ~> 5.0
4 changes: 2 additions & 2 deletions Cartfile.resolved
@@ -1,3 +1,3 @@
github "Quick/Nimble" "db706fc1d7130f6ac96c56aaf0e635fa3217fe57"
github "Quick/Quick" "8f2bc636ecfa2cc20696f62548b38d4ab943e299"
github "Quick/Nimble" "v5.0.0"
github "Quick/Quick" "v0.10.0"
github "jspahrsummers/xcconfigs" "3d9d99634cae6d586e272543d527681283b33eb0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Nimble
62 changes: 62 additions & 0 deletions ReactiveObjC.podspec
@@ -0,0 +1,62 @@
Pod::Spec.new do |s|

s.name = "ReactiveObjC"
s.version = "1.0.0"
s.summary = "The 2.x ReactiveCocoa Objective-C API: Streams of values over time"

s.description = <<-DESC.strip_heredoc
ReactiveObjC (formally ReactiveCocoa or RAC) is an Objective-C
framework inspired by [Functional Reactive Programming](
http://en.wikipedia.org/wiki/Functional_reactive_programming).
It provides APIs for composing and **transforming streams of values**.
DESC

s.homepage = "https://reactivecocoa.io"
s.screenshots = "https://reactivecocoa.io/img/logo.png"
s.license = { type: "MIT", file: "LICENSE.md" }

s.documentation_url = "https://github.com/ReactiveCocoa/ReactiveObjC/"\
"tree/master/Documentation#readme"

s.author = { "Josh Abernathy" => "josh@github.com" }
s.social_media_url = "https://twitter.com/ReactiveCocoa"

s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
s.source = { git: "https://github.com/ReactiveCocoa/ReactiveObjC.git",
tag: "1.0.0" }

s.source_files = "ReactiveObjC/*.{h,m,d}",
"ReactiveObjC/extobjc/*.{h,m}"

s.private_header_files = "**/*Private.h",
"**/*EXTRuntimeExtensions.h",
"**/RACEmpty*.h"

s.ios.exclude_files = "ReactiveObjC/**/*{AppKit,NSControl,NSText,NSTable}*"

s.osx.exclude_files = "ReactiveObjC/**/*{UIActionSheet,UIAlertView,UIBarButtonItem,"\
"UIButton,UICollectionReusableView,UIControl,UIDatePicker,"\
"UIGestureRecognizer,UIImagePicker,UIRefreshControl,"\
"UISegmentedControl,UISlider,UIStepper,UISwitch,UITableViewCell,"\
"UITableViewHeaderFooterView,UIText,MK}*"

s.tvos.exclude_files = "ReactiveObjC/**/*{AppKit,NSControl,NSText,NSTable,UIActionSheet,"\
"UIAlertView,UIDatePicker,UIImagePicker,UIRefreshControl,UISlider,"\
"UIStepper,UISwitch,MK}*"

s.watchos.exclude_files = "ReactiveObjC/**/*{UIActionSheet,UIAlertView,UIBarButtonItem,"\
"UIButton,UICollectionReusableView,UIControl,UIDatePicker,"\
"UIGestureRecognizer,UIImagePicker,UIRefreshControl,"\
"UISegmentedControl,UISlider,UIStepper,UISwitch,UITableViewCell,"\
"UITableViewHeaderFooterView,UIText,MK,AppKit,NSControl,NSText,"\
"NSTable,NSURLConnection}*"

s.requires_arc = true

s.frameworks = "Foundation"
s.dependency "Result", "~> 2.0"

end
Expand Up @@ -30,7 +30,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DAEB6B8D1943873100289F44"
BuildableName = "Quick.framework"
BlueprintName = "Quick-OSX"
BlueprintName = "Quick-macOS"
ReferencedContainer = "container:Carthage/Checkouts/Quick/Quick.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
4 changes: 2 additions & 2 deletions ReactiveObjC/RACCompoundDisposable.m
Expand Up @@ -82,7 +82,7 @@ - (instancetype)init {
self = [super init];
if (self == nil) return nil;

const int result = pthread_mutex_init(&_mutex, NULL);
const int result __attribute__((unused)) = pthread_mutex_init(&_mutex, NULL);
NSCAssert(0 == result, @"Failed to initialize mutex with error %d.", result);

return self;
Expand Down Expand Up @@ -129,7 +129,7 @@ - (void)dealloc {
_disposables = NULL;
}

const int result = pthread_mutex_destroy(&_mutex);
const int result __attribute__((unused)) = pthread_mutex_destroy(&_mutex);
NSCAssert(0 == result, @"Failed to destroy mutex with error %d.", result);
}

Expand Down
4 changes: 2 additions & 2 deletions ReactiveObjC/RACSerialDisposable.m
Expand Up @@ -60,7 +60,7 @@ - (instancetype)init {
self = [super init];
if (self == nil) return nil;

const int result = pthread_mutex_init(&_mutex, NULL);
const int result __attribute__((unused)) = pthread_mutex_init(&_mutex, NULL);
NSCAssert(0 == result, @"Failed to initialize mutex with error %d", result);

return self;
Expand All @@ -76,7 +76,7 @@ - (instancetype)initWithBlock:(void (^)(void))block {
}

- (void)dealloc {
const int result = pthread_mutex_destroy(&_mutex);
const int result __attribute__((unused)) = pthread_mutex_destroy(&_mutex);
NSCAssert(0 == result, @"Failed to destroy mutex with error %d", result);
}

Expand Down

0 comments on commit 43f9b60

Please sign in to comment.