Skip to content

Commit

Permalink
Merge pull request #442 from jalopezcar/release_v3.0.0
Browse files Browse the repository at this point in the history
Spotify iOS SDK v3.0.0
  • Loading branch information
jalopezcar authored Oct 3, 2024
2 parents b5f10bb + 965ee2a commit af71ec0
Show file tree
Hide file tree
Showing 51 changed files with 64 additions and 157 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Spotify iOS SDK v3.0.0

What's New:

- Remove `checkIfSpotifyAppIsActive`. It won't work with new versions of the Spotify iOS app.

## Spotify iOS SDK v2.1.7

What's New:
Expand All @@ -8,6 +14,7 @@ What's New:
- Fix minor issues with the web authentication flow
- Update demo apps project setup to use Xcodegen for managing Xcode project files


## Spotify iOS SDK v2.1.6

What's New:
Expand Down
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,31 +163,6 @@ Follow these steps to make sure you are prepared to start coding.
#import <SpotifyiOS/SpotifyiOS.h>
```
### Check if Spotify is Active
If a user is already using Spotify, but has not authorized your application, you can use the following check to prompt them to
start the authorization process.
*Swift*
```swift
SPTAppRemote.checkIfSpotifyAppIsActive { active in
if active {
// Prompt the user to connect Spotify here
}
}
```

*Objective-c*

```objective-c
[SPTAppRemote checkIfSpotifyAppIsActive:^(BOOL active) {
if (active) {
// Prompt the user to connect Spotify here
}
}];
```
### Authorize Your Application
To be able to use the playback control part of the SDK the user needs to authorize your application. If they haven't, the connection will fail with a `No token provided` error. To allow the user to authorize your app, you can use the built-in authorization flow.
Expand Down
Binary file modified SpotifyiOS.xcframework/_CodeSignature/CodeDirectory
Binary file not shown.
Binary file modified SpotifyiOS.xcframework/_CodeSignature/CodeRequirements-1
Binary file not shown.
36 changes: 18 additions & 18 deletions SpotifyiOS.xcframework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<dict>
<key>ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h</key>
<data>
vnH9md9A+3U0vyvptdR1iXtwcSI=
eLO5G6ixqex9BgndCpLwWScIeDM=
</data>
<key>ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h</key>
<data>
Expand Down Expand Up @@ -126,7 +126,7 @@
</data>
<key>ios-arm64/SpotifyiOS.framework/Info.plist</key>
<data>
TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q=
RTBnONo050REziDvbhgGOktTyCw=
</data>
<key>ios-arm64/SpotifyiOS.framework/Modules/module.modulemap</key>
<data>
Expand All @@ -138,11 +138,11 @@
</data>
<key>ios-arm64/SpotifyiOS.framework/SpotifyiOS</key>
<data>
63FAAqrydvowtujFf1n5h0PH89s=
Ua1Sanplbr6WSHfqYFNgtguXNPI=
</data>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h</key>
<data>
vnH9md9A+3U0vyvptdR1iXtwcSI=
eLO5G6ixqex9BgndCpLwWScIeDM=
</data>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h</key>
<data>
Expand Down Expand Up @@ -262,7 +262,7 @@
</data>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist</key>
<data>
TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q=
RTBnONo050REziDvbhgGOktTyCw=
</data>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap</key>
<data>
Expand All @@ -274,7 +274,7 @@
</data>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS</key>
<data>
d0XmMGlUjE0wBI8nlpOgQy8xfQg=
aSHmB6H0dXF1iLKZCaoJzR0qJ5g=
</data>
</dict>
<key>files2</key>
Expand All @@ -283,11 +283,11 @@
<dict>
<key>hash</key>
<data>
vnH9md9A+3U0vyvptdR1iXtwcSI=
eLO5G6ixqex9BgndCpLwWScIeDM=
</data>
<key>hash2</key>
<data>
2MxPMlBvKIcvpMjeMcWXi7/TjyO97FUipLUGFgCuaJ4=
wZHKEQF9WpdzvB0k3hp7Gy64hCMdClir8rKnRNkimG4=
</data>
</dict>
<key>ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h</key>
Expand Down Expand Up @@ -613,11 +613,11 @@
<dict>
<key>hash</key>
<data>
TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q=
RTBnONo050REziDvbhgGOktTyCw=
</data>
<key>hash2</key>
<data>
UW0y+wabsgke89Mbni2yFsi0xtoUrtNvAqczkwwdp0U=
A5Xz4wNFTrzQ/Z4lperZs2rk/8CGwHEIgZdH0g2eiU0=
</data>
</dict>
<key>ios-arm64/SpotifyiOS.framework/Modules/module.modulemap</key>
Expand Down Expand Up @@ -646,22 +646,22 @@
<dict>
<key>hash</key>
<data>
63FAAqrydvowtujFf1n5h0PH89s=
Ua1Sanplbr6WSHfqYFNgtguXNPI=
</data>
<key>hash2</key>
<data>
t9FC2WNizg0DTopVTpD5ZauIOfyCOgGNj6axDLY9GN0=
hg5S3NpvbW3sKtdbLgLeKBB5YaIbW9+7JPjYpi5HpBc=
</data>
</dict>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h</key>
<dict>
<key>hash</key>
<data>
vnH9md9A+3U0vyvptdR1iXtwcSI=
eLO5G6ixqex9BgndCpLwWScIeDM=
</data>
<key>hash2</key>
<data>
2MxPMlBvKIcvpMjeMcWXi7/TjyO97FUipLUGFgCuaJ4=
wZHKEQF9WpdzvB0k3hp7Gy64hCMdClir8rKnRNkimG4=
</data>
</dict>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h</key>
Expand Down Expand Up @@ -987,11 +987,11 @@
<dict>
<key>hash</key>
<data>
TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q=
RTBnONo050REziDvbhgGOktTyCw=
</data>
<key>hash2</key>
<data>
UW0y+wabsgke89Mbni2yFsi0xtoUrtNvAqczkwwdp0U=
A5Xz4wNFTrzQ/Z4lperZs2rk/8CGwHEIgZdH0g2eiU0=
</data>
</dict>
<key>ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap</key>
Expand Down Expand Up @@ -1020,11 +1020,11 @@
<dict>
<key>hash</key>
<data>
d0XmMGlUjE0wBI8nlpOgQy8xfQg=
aSHmB6H0dXF1iLKZCaoJzR0qJ5g=
</data>
<key>hash2</key>
<data>
odQ891GTbRYt8ZBKrDWbzZFid8Fr1jggp1uGkfDOGDo=
VsMkD6t9h0D50BaGp3DCbVxVyyySSaHhE0vg6CITMhk=
</data>
</dict>
</dict>
Expand Down
Binary file modified SpotifyiOS.xcframework/_CodeSignature/CodeSignature
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,6 @@ typedef NS_ENUM(NSUInteger, SPTAppRemoteLogLevel) {
logLevel:(SPTAppRemoteLogLevel)logLevel NS_DESIGNATED_INITIALIZER;
#pragma mark Class Methods

/**
* Checks if the Spotify app is active on the user's device. You can use this to determine if maybe you should prompt
* the user to connect to Spotify (because you know they are already using Spotify if it is active). The Spotify app
* will be considered active if music is playing or the app is active in the background.
*
* @param completion Completion block for determining the result of the check. YES if Spotify is active, othewise NO.
*/
+ (void)checkIfSpotifyAppIsActive:(void (^)(BOOL active))completion;

/**
* Determine the current version of the Spotify App Remote
*
Expand Down
Binary file modified SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist
Binary file not shown.
Binary file modified SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,6 @@ typedef NS_ENUM(NSUInteger, SPTAppRemoteLogLevel) {
logLevel:(SPTAppRemoteLogLevel)logLevel NS_DESIGNATED_INITIALIZER;
#pragma mark Class Methods

/**
* Checks if the Spotify app is active on the user's device. You can use this to determine if maybe you should prompt
* the user to connect to Spotify (because you know they are already using Spotify if it is active). The Spotify app
* will be considered active if music is playing or the app is active in the background.
*
* @param completion Completion block for determining the result of the check. YES if Spotify is active, othewise NO.
*/
+ (void)checkIfSpotifyAppIsActive:(void (^)(BOOL active))completion;

/**
* Determine the current version of the Spotify App Remote
*
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/html/Blocks/SPTAppRemoteCallback.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h1 class="title">SPTAppRemoteCallback Block Reference</h1>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
59 changes: 1 addition & 58 deletions docs/html/Classes/SPTAppRemote.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ <h1 id="library-title">

<option value="//api/name/appRemoteVersion">+ appRemoteVersion</option>

<option value="//api/name/checkIfSpotifyAppIsActive:">+ checkIfSpotifyAppIsActive:</option>

<option value="//api/name/spotifyItunesItemIdentifier">+ spotifyItunesItemIdentifier</option>

</optgroup>
Expand Down Expand Up @@ -284,61 +282,6 @@ <h4 class="method-subtitle parameter-title">Return Value</h4>



<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">SPTAppRemote.h</code></p>
</div>


</div>
</div>
</div><div class="section-method">
<a name="//api/name/checkIfSpotifyAppIsActive:" title="checkIfSpotifyAppIsActive:"></a>
<h3 class="method-title"><code><a href="#//api/name/checkIfSpotifyAppIsActive:">+&nbsp;checkIfSpotifyAppIsActive:</a></code>
</h3>

<div class="method-info">
<div class="pointy-thing"></div>

<div class="method-info-container">


<div class="method-subsection brief-description">
<p>Checks if the Spotify app is active on the user&rsquo;s device. You can use this to determine if maybe you should prompt
the user to <a href="#//api/name/connect">connect</a> to Spotify (because you know they are already using Spotify if it is active). The Spotify app
will be considered active if music is playing or the app is active in the background.</p>
</div>



<div class="method-subsection method-declaration"><code>+ (void)checkIfSpotifyAppIsActive:(void ( ^ ) ( BOOL active ))<em>completion</em></code></div>



<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">

<tr>
<th scope="row" class="argument-name"><code>completion</code></th>
<td><p>Completion block for determining the result of the check. YES if Spotify is active, othewise NO.</p></td>
</tr>

</table>
</div>













<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">SPTAppRemote.h</code></p>
Expand Down Expand Up @@ -1309,7 +1252,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Classes/SPTAppRemoteConnectionParams.html
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Classes/SPTConfiguration.html
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Classes/SPTError.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h2 class="subtitle subtitle-overview">Overview</h2>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Classes/SPTSession.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Classes/SPTSessionManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Constants/SPTAppRemoteErrorCode.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Constants/SPTAppRemoteLogLevel.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/Constants/SPTAuthorizationOptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h4 class="method-subtitle">Declared In</h4>
<footer>
<div class="footer-copyright">

<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-07-29</p>
<p class="copyright">Copyright &copy; 2024 Spotify. All rights reserved. Updated: 2024-10-02</p>


<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
Expand Down
Loading

0 comments on commit af71ec0

Please sign in to comment.