Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add podspec ✔️ #11

Merged
merged 2 commits into from
Oct 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .travis.yml
Expand Up @@ -55,6 +55,12 @@ matrix:
- carthage build --no-skip-current --platform watchOS
env:
- JOB=CARTHAGE-watchOS
- script:
- gem install cocoapods --pre
- pod repo update
- pod lib lint ReactiveObjC.podspec
env:
- JOB=PODSPEC
notifications:
email: false
slack:
Expand Down
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 = "ReactiveCocoa"
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: s.version }

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"

end
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