Skip to content

Commit 5bd49e2

Browse files
Spotify iOS SDK v2.1.7
1 parent cc087da commit 5bd49e2

File tree

81 files changed

+301
-1387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+301
-1387
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## Spotify iOS SDK v2.1.7
4+
5+
What's New:
6+
7+
- Add support for iOS 17.4 API for universal links in web authentication
8+
- Fix minor issues with the web authentication flow
9+
- Update demo apps project setup to use Xcodegen for managing Xcode project files
10+
311
## Spotify iOS SDK v2.1.6
412

513
What's New:

DemoProjects/NowPlayingView/NowPlayingView.xcodeproj/project.pbxproj

Lines changed: 0 additions & 403 deletions
This file was deleted.

DemoProjects/NowPlayingView/NowPlayingView.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

DemoProjects/NowPlayingView/NowPlayingView/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<string></string>
3030
<key>CFBundleURLSchemes</key>
3131
<array>
32-
<string>&lt;#URL_Scheme#&gt;</string>
32+
<string>spotify-ios-test-app</string>
3333
</array>
3434
</dict>
3535
</array>

DemoProjects/NowPlayingView/NowPlayingView/SceneDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import SpotifyiOS
44
class SceneDelegate: UIResponder, UIWindowSceneDelegate,
55
SPTAppRemoteDelegate {
66

7-
private let clientIdentifier = "<#ClientID#>"
8-
private let redirectUri = URL(string:"<#RedirectURI#>")!
7+
private let redirectUri = URL(string:"spotify-ios-test-app://spotify-login-callback")!
8+
private let clientIdentifier = "<#ClientId#>"
99

1010
static private let kAccessTokenKey = "access-token-key"
1111

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
# Now Playing View
22

33
A project that demonstrates listening to and displaying the current player state, and allowing the user to control the playback.
4+
5+
Steps:
6+
7+
1. Install XcodeGen via `brew install xcodegen` command.
8+
2. Run `xcodegen` in the demo project
9+
2. Open `NowPlayingView.xcodeproj`
10+
3. Create an app in [https://developer.spotify.com/dashboard](https://developer.spotify.com/dashboard)
11+
- Add any name and description
12+
- Add the redirect URI: `spotify-ios-test-app://spotify-login-callback`
13+
- Check iOS SDK
14+
4. Edit Settings and add the bundleId `com.spotify.SpotifyAppRemoteDemo`
15+
3. Copy your `clientID` in `SceneDelegate.swift`

DemoProjects/NowPlayingView/project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ targets:
1111
- path: README.md
1212
buildPhase: none
1313
settings:
14-
PRODUCT_BUNDLE_IDENTIFIER: com.testappremote
14+
PRODUCT_BUNDLE_IDENTIFIER: com.spotify.SpotifyIosSampleApp
1515
INFOPLIST_FILE: NowPlayingView/Info.plist
1616
dependencies:
1717
- framework: ../../SpotifyiOS.xcframework

DemoProjects/README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,4 @@ This Objective-C project focuses solely on the authentication part of the SDK. I
1414

1515
This Swift project shows you how to use both the authentication and remote control parts of the SDK together. This is valuable if you want to be able to control playback but also need additional scopes for the Web API. You will have to run this project on a real device as it requires the Spotify iOS app be installed. You will also need a server to perform the token swap operation.
1616

17-
## How to use the provided Ruby script
1817

19-
For some of the above sample projects a server is required to perform an OAuth token swap, these instructions will help you run a sample server for testing.
20-
21-
First make sure you have [Homebrew](https://brew.sh/) installed.
22-
23-
We will use rbenv to manage ruby versions, if you are familiar with ruby or prefer to use a different environment management tool feel free.
24-
25-
Navigate to the directory containing this readme in your terminal and run the following commands:
26-
27-
1. `brew install rbenv`
28-
2. `rbenv install $(rbenv local)`
29-
3. `$(rbenv which gem) install sinatra encrypted_strings`
30-
31-
Now to run the ruby script and have your local server running simply execute the following command:
32-
33-
$(rbenv which ruby) spotify_token_swap.rb
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPTLoginSampleAppObjc
2+
3+
A project that focuses solely on the authentication part of the SDK.
4+
5+
Steps:
6+
7+
1. Install XcodeGen via `brew install xcodegen` command.
8+
2. Run `xcodegen` in the demo project
9+
2. Open `SPTLoginSampleAppObjc.xcodeproj`
10+
3. Create an app in [https://developer.spotify.com/dashboard](https://developer.spotify.com/dashboard)
11+
- Add any name and description
12+
- Add the redirect URI: `spotify-login-sdk-test-app-objc://spotify-login-callback`
13+
- Check iOS SDK
14+
4. Edit Settings and add the bundleId `com.spotify.SPTLoginSampleAppObjc`
15+
3. Copy your `clientID` in `ViewController.m`

0 commit comments

Comments
 (0)