diff --git a/CHANGELOG.md b/CHANGELOG.md index d8f98d1..c57a74d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: @@ -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: diff --git a/README.md b/README.md index 407fbb8..f494cde 100644 --- a/README.md +++ b/README.md @@ -163,31 +163,6 @@ Follow these steps to make sure you are prepared to start coding. #import ``` -### 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. diff --git a/SpotifyiOS.xcframework/_CodeSignature/CodeDirectory b/SpotifyiOS.xcframework/_CodeSignature/CodeDirectory index ca02320..89cd84a 100644 Binary files a/SpotifyiOS.xcframework/_CodeSignature/CodeDirectory and b/SpotifyiOS.xcframework/_CodeSignature/CodeDirectory differ diff --git a/SpotifyiOS.xcframework/_CodeSignature/CodeRequirements-1 b/SpotifyiOS.xcframework/_CodeSignature/CodeRequirements-1 index 07f25fa..0d3b7fc 100644 Binary files a/SpotifyiOS.xcframework/_CodeSignature/CodeRequirements-1 and b/SpotifyiOS.xcframework/_CodeSignature/CodeRequirements-1 differ diff --git a/SpotifyiOS.xcframework/_CodeSignature/CodeResources b/SpotifyiOS.xcframework/_CodeSignature/CodeResources index fbe8ee2..58a0fe5 100644 --- a/SpotifyiOS.xcframework/_CodeSignature/CodeResources +++ b/SpotifyiOS.xcframework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h - vnH9md9A+3U0vyvptdR1iXtwcSI= + eLO5G6ixqex9BgndCpLwWScIeDM= ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h @@ -126,7 +126,7 @@ ios-arm64/SpotifyiOS.framework/Info.plist - TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q= + RTBnONo050REziDvbhgGOktTyCw= ios-arm64/SpotifyiOS.framework/Modules/module.modulemap @@ -138,11 +138,11 @@ ios-arm64/SpotifyiOS.framework/SpotifyiOS - 63FAAqrydvowtujFf1n5h0PH89s= + Ua1Sanplbr6WSHfqYFNgtguXNPI= ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h - vnH9md9A+3U0vyvptdR1iXtwcSI= + eLO5G6ixqex9BgndCpLwWScIeDM= ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h @@ -262,7 +262,7 @@ ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist - TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q= + RTBnONo050REziDvbhgGOktTyCw= ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap @@ -274,7 +274,7 @@ ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS - d0XmMGlUjE0wBI8nlpOgQy8xfQg= + aSHmB6H0dXF1iLKZCaoJzR0qJ5g= files2 @@ -283,11 +283,11 @@ hash - vnH9md9A+3U0vyvptdR1iXtwcSI= + eLO5G6ixqex9BgndCpLwWScIeDM= hash2 - 2MxPMlBvKIcvpMjeMcWXi7/TjyO97FUipLUGFgCuaJ4= + wZHKEQF9WpdzvB0k3hp7Gy64hCMdClir8rKnRNkimG4= ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h @@ -613,11 +613,11 @@ hash - TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q= + RTBnONo050REziDvbhgGOktTyCw= hash2 - UW0y+wabsgke89Mbni2yFsi0xtoUrtNvAqczkwwdp0U= + A5Xz4wNFTrzQ/Z4lperZs2rk/8CGwHEIgZdH0g2eiU0= ios-arm64/SpotifyiOS.framework/Modules/module.modulemap @@ -646,22 +646,22 @@ hash - 63FAAqrydvowtujFf1n5h0PH89s= + Ua1Sanplbr6WSHfqYFNgtguXNPI= hash2 - t9FC2WNizg0DTopVTpD5ZauIOfyCOgGNj6axDLY9GN0= + hg5S3NpvbW3sKtdbLgLeKBB5YaIbW9+7JPjYpi5HpBc= ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h hash - vnH9md9A+3U0vyvptdR1iXtwcSI= + eLO5G6ixqex9BgndCpLwWScIeDM= hash2 - 2MxPMlBvKIcvpMjeMcWXi7/TjyO97FUipLUGFgCuaJ4= + wZHKEQF9WpdzvB0k3hp7Gy64hCMdClir8rKnRNkimG4= ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h @@ -987,11 +987,11 @@ hash - TzCJ2TWQnUVUJ+yxG81MEW1Xa7Q= + RTBnONo050REziDvbhgGOktTyCw= hash2 - UW0y+wabsgke89Mbni2yFsi0xtoUrtNvAqczkwwdp0U= + A5Xz4wNFTrzQ/Z4lperZs2rk/8CGwHEIgZdH0g2eiU0= ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap @@ -1020,11 +1020,11 @@ hash - d0XmMGlUjE0wBI8nlpOgQy8xfQg= + aSHmB6H0dXF1iLKZCaoJzR0qJ5g= hash2 - odQ891GTbRYt8ZBKrDWbzZFid8Fr1jggp1uGkfDOGDo= + VsMkD6t9h0D50BaGp3DCbVxVyyySSaHhE0vg6CITMhk= diff --git a/SpotifyiOS.xcframework/_CodeSignature/CodeSignature b/SpotifyiOS.xcframework/_CodeSignature/CodeSignature index 584864a..e94f7a6 100644 Binary files a/SpotifyiOS.xcframework/_CodeSignature/CodeSignature and b/SpotifyiOS.xcframework/_CodeSignature/CodeSignature differ diff --git a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h index d425852..161bf0d 100644 --- a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h +++ b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h @@ -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 * diff --git a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist index bcda781..790f20d 100755 Binary files a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist and b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist differ diff --git a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS index e8d7769..17bb3e5 100755 Binary files a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS and b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS differ diff --git a/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h index d425852..161bf0d 100644 --- a/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +++ b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h @@ -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 * diff --git a/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist index bcda781..790f20d 100755 Binary files a/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist and b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist differ diff --git a/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS index da7e8f8..96ce695 100755 Binary files a/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS and b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS differ diff --git a/docs/html/Blocks/SPTAppRemoteCallback.html b/docs/html/Blocks/SPTAppRemoteCallback.html index ff72c1e..d06daf7 100755 --- a/docs/html/Blocks/SPTAppRemoteCallback.html +++ b/docs/html/Blocks/SPTAppRemoteCallback.html @@ -80,7 +80,7 @@

SPTAppRemoteCallback Block Reference