Skip to content

Commit

Permalink
Spotify iOS SDK v2.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
josianebezerra committed Aug 14, 2024
1 parent cc087da commit 5bd49e2
Show file tree
Hide file tree
Showing 81 changed files with 301 additions and 1,387 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Spotify iOS SDK v2.1.7

What's New:

- Add support for iOS 17.4 API for universal links in web authentication
- 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
403 changes: 0 additions & 403 deletions DemoProjects/NowPlayingView/NowPlayingView.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion DemoProjects/NowPlayingView/NowPlayingView/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<string></string>
<key>CFBundleURLSchemes</key>
<array>
<string>&lt;#URL_Scheme#&gt;</string>
<string>spotify-ios-test-app</string>
</array>
</dict>
</array>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import SpotifyiOS
class SceneDelegate: UIResponder, UIWindowSceneDelegate,
SPTAppRemoteDelegate {

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

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

Expand Down
12 changes: 12 additions & 0 deletions DemoProjects/NowPlayingView/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Now Playing View

A project that demonstrates listening to and displaying the current player state, and allowing the user to control the playback.

Steps:

1. Install XcodeGen via `brew install xcodegen` command.
2. Run `xcodegen` in the demo project
2. Open `NowPlayingView.xcodeproj`
3. Create an app in [https://developer.spotify.com/dashboard](https://developer.spotify.com/dashboard)
- Add any name and description
- Add the redirect URI: `spotify-ios-test-app://spotify-login-callback`
- Check iOS SDK
4. Edit Settings and add the bundleId `com.spotify.SpotifyAppRemoteDemo`
3. Copy your `clientID` in `SceneDelegate.swift`
2 changes: 1 addition & 1 deletion DemoProjects/NowPlayingView/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ targets:
- path: README.md
buildPhase: none
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.testappremote
PRODUCT_BUNDLE_IDENTIFIER: com.spotify.SpotifyIosSampleApp
INFOPLIST_FILE: NowPlayingView/Info.plist
dependencies:
- framework: ../../SpotifyiOS.xcframework
16 changes: 0 additions & 16 deletions DemoProjects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,4 @@ This Objective-C project focuses solely on the authentication part of the SDK. I

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.

## How to use the provided Ruby script

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.

First make sure you have [Homebrew](https://brew.sh/) installed.

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.

Navigate to the directory containing this readme in your terminal and run the following commands:

1. `brew install rbenv`
2. `rbenv install $(rbenv local)`
3. `$(rbenv which gem) install sinatra encrypted_strings`

Now to run the ruby script and have your local server running simply execute the following command:

$(rbenv which ruby) spotify_token_swap.rb
15 changes: 15 additions & 0 deletions DemoProjects/SPTLoginSampleAppObjc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPTLoginSampleAppObjc

A project that focuses solely on the authentication part of the SDK.

Steps:

1. Install XcodeGen via `brew install xcodegen` command.
2. Run `xcodegen` in the demo project
2. Open `SPTLoginSampleAppObjc.xcodeproj`
3. Create an app in [https://developer.spotify.com/dashboard](https://developer.spotify.com/dashboard)
- Add any name and description
- Add the redirect URI: `spotify-login-sdk-test-app-objc://spotify-login-callback`
- Check iOS SDK
4. Edit Settings and add the bundleId `com.spotify.SPTLoginSampleAppObjc`
3. Copy your `clientID` in `ViewController.m`
Loading

0 comments on commit 5bd49e2

Please sign in to comment.