diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b5647b..629b84f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/DemoProjects/SPTLoginSampleApp/SPTLoginSampleApp/ViewController.m b/DemoProjects/SPTLoginSampleApp/SPTLoginSampleApp/ViewController.m index 93ebb35..e015907 100644 --- a/DemoProjects/SPTLoginSampleApp/SPTLoginSampleApp/ViewController.m +++ b/DemoProjects/SPTLoginSampleApp/SPTLoginSampleApp/ViewController.m @@ -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 diff --git a/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift/ViewController.swift b/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift/ViewController.swift index 3d107db..65956a6 100644 --- a/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift/ViewController.swift +++ b/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift/ViewController.swift @@ -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) } diff --git a/SpotifyiOS.xcframework/Info.plist b/SpotifyiOS.xcframework/Info.plist index bd62a64..14a9c8d 100644 --- a/SpotifyiOS.xcframework/Info.plist +++ b/SpotifyiOS.xcframework/Info.plist @@ -8,32 +8,32 @@ BinaryPath SpotifyiOS.framework/SpotifyiOS LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath SpotifyiOS.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator BinaryPath SpotifyiOS.framework/SpotifyiOS LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath SpotifyiOS.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS b/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS index 7d1378d..9f5f4a9 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/SpotifyiOS b/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS index a755734..ea5652c 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