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

Cocoapods support, changed project structure and added all pods requirements #82

Merged
merged 14 commits into from
Dec 7, 2015
Merged
38 changes: 37 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,45 @@

# OS X
.DS_Store

# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa

# Bundler
.bundle

# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
# Pods/

*.xcuserstate

FHSTwitterEngine.xcodeproj/xcuserdata/
FHSTwitterEngine.xcodeproj/project.xcworkspace/

.DS_Store

*.xcuserstate
*.xcworkspacedata
*.xccheckout
*.xcscheme

10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

language: objective-c
# before_install: cd Example && pod install && cd -
install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail && xcodebuild test -workspace Example/FHSTwitterEngine.xcworkspace -scheme FHSTwitterEngine -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
17 changes: 17 additions & 0 deletions FHSTwitterEngine.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Pod::Spec.new do |s|
s.name = "FHSTwitterEngine"
s.version = "0.1.8.4"
s.summary = "Twitter API for Cocoa developers"

s.homepage = "https://github.com/fhsjaagshs/FHSTwitterEngine"
s.license = 'MIT'
s.author = { "Nathaniel Symer" => "[email protected]" }
s.source = { :git => "https://github.com/salah-ghanim/FHSTwitterEngine.git", :tag => s.version.to_s }
s.social_media_url = "https://twitter.com/natesymer"
s.platform = :ios, '5.1'
s.requires_arc = true

s.source_files = 'src'

end
6 changes: 5 additions & 1 deletion FHSTwitterEngine/FHSTwitterEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ extern NSString * const FHSErrorDomain;

// statuses/update
- (NSError *)postTweet:(NSString *)tweetString;
- (NSError *)postTweet:(NSString *)tweetString inReplyTo:(NSString *)tweetID;
- (NSError *)postTweet:(NSString *)tweetString inReplyTo:(NSString *)inReplyToString;
- (NSError *)postTweet:(NSString *)tweetString withMediaIDs:(NSArray *)mediaIDs ;

// media/upload
- (void) uploadMediaWithData:(NSData *) imageData withCompletionBlock:(void (^)(NSError *error, id response)) completionBlock;

// statuses/home_timeline
- (id)getHomeTimelineSinceID:(NSString *)sinceID count:(int)count;
Expand Down
Loading