Skip to content

Commit

Permalink
Spotify iOS SDK v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jalopezcar committed Jun 7, 2024
1 parent c6421a3 commit 1a31dc2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Spotify iOS SDK v2.1.1
What's New:
- Added the new campaign parameter in the sample apps.

## Spotify iOS SDK v2.1.0
What's New:
- Expanded existing API with campaign parameter to allow consumers to specify details about where the auth flow was initiated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ - (void)didTapAuthButton:(ConnectButton *)sender
/*
Start the authorization process. This requires user input.
*/
[self.sessionManager initiateSessionWithScope:scope options:SPTDefaultAuthorizationOption];
[self.sessionManager initiateSessionWithScope:scope options:SPTDefaultAuthorizationOption campaign:nil];
}

#pragma mark - SPTSessionManagerDelegate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,7 @@ class ViewController: UIViewController, SPTSessionManagerDelegate, SPTAppRemoteD
For more information, see https://developer.spotify.com/web-api/using-scopes/.
*/
let scope: SPTScope = [.appRemoteControl, .playlistReadPrivate]

if #available(iOS 11, *) {
// Use this on iOS 11 and above to take advantage of SFAuthenticationSession
sessionManager.initiateSession(with: scope, options: .clientOnly)
} else {
// Use this on iOS versions < 11 to use SFSafariViewController
sessionManager.initiateSession(with: scope, options: .clientOnly, presenting: self)
}
sessionManager.initiateSession(with: scope, options: .clientOnly, campaign: nil)
}


Expand Down
10 changes: 5 additions & 5 deletions SpotifyiOS.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>SpotifyiOS.framework/SpotifyiOS</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SpotifyiOS.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>SpotifyiOS.framework/SpotifyiOS</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>SpotifyiOS.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS
Binary file not shown.
Binary file not shown.

0 comments on commit 1a31dc2

Please sign in to comment.