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 cocoapods support #124

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ Follow these steps to make sure you are prepared to start coding.

### Add Dependencies

### CocoaPods

Add the following line to your Podfile

`pod 'Spotify-SDK'`

### Manually

1. Add the `SpotifyiOS.framework` to your Xcode project.

![Import SpotifyiOS.framework](img/import_sdk.png)
Expand Down
32 changes: 32 additions & 0 deletions Spotify-SDK.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Be sure to run `pod spec lint Spotify-SDK.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

s.name = "Spotify-SDK"
s.version = "1.2.2"
s.summary = "Spotify SDK for iOS"
s.description = <<-DESC
The Spotify iOS SDK allows your iOS application to authenticate users, as well as interact and always stay in sync with the main Spotify application running on the user’s device in the background.
DESC

s.homepage = "https://developer.spotify.com/documentation/ios/"
s.license = { :type => "MIT", :file => "Licenses/MPMessagePack-LICENSE.md" }
s.authors = { "jackfreeman" => "jackfreeman@google.com", "Arielle Vaniderstine" => "hack@ariari.io", "Konstantinos Karagiannis" => "konstantinosk@spotify.com" }

s.platform = :ios
s.ios.deployment_target = '9.0'

s.source = { :git => "https://github.com/spotify/ios-sdk.git", :tag => "v#{s.version}" }

s.source_files = 'SpotifyiOS.framework/Versions/A/Headers/*{.h}'
s.public_header_files = 'SpotifyiOS.framework/Versions/A/Headers/*{.h}'
s.vendored_frameworks = 'SpotifyiOS.framework'
s.exclude_files = "DemoProjects"

end