Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Format
run: dart format --set-exit-if-changed lib test example
- name: Analyze
run: flutter analyze lib test example
run: flutter analyze lib test example --no-fatal-infos
- name: Publish dry run
run: flutter pub publish --dry-run
- name: Build web version
Expand Down
9 changes: 6 additions & 3 deletions ios/Classes/SwiftSpotifySdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,12 @@ public class SwiftSpotifySdkPlugin: NSObject, FlutterPlugin {
} else {
// Note: A blank string will play the user's last song or pick a random one.
self.appRemote?.authorizeAndPlayURI(spotifyUri, asRadio: asRadio ?? false, additionalScopes: scopes) { success in
if (!success) {
self.connectionStatusHandler?.connectionResult?(FlutterError(code: "spotifyNotInstalled", message: "Spotify app is not installed", details: nil))
}
if (!success) {
self.connectionStatusHandler?.connectionResult?(FlutterError(code: "spotifyNotInstalled", message: "Spotify app is not installed", details: nil))
self.connectionStatusHandler?.tokenResult?(FlutterError(code: "spotifyNotInstalled", message: "Spotify app is not installed", details: nil))
self.connectionStatusHandler?.connectionResult = nil
self.connectionStatusHandler?.tokenResult = nil
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ios/prepare-iOS-SDK.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ FRAMEWORK_NAME="SpotifyiOS.xcframework"
rm -fR ${REPO_NAME}
mkdir ${REPO_NAME}
git clone https://github.com/spotify/${REPO_NAME}
git -C ${REPO_NAME} checkout tags/v3.0.0
git -C ${REPO_NAME} checkout tags/v5.0.1
find ./${REPO_NAME} -mindepth 1 -maxdepth 1 -not -name ${FRAMEWORK_NAME} -exec rm -rf '{}' \; # Keep on only the xcframework folder
2 changes: 1 addition & 1 deletion lib/platform_channels.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MethodNames {
/// method name for [resume]
static const String resume = 'resume';

/// method name for [podcastPlaybackSpeed]
/// method name for [setPodcastPlaybackSpeed]
static const String setPodcastPlaybackSpeed = 'setPodcastPlaybackSpeed';

/// method name for [skipToIndex]
Expand Down
2 changes: 1 addition & 1 deletion lib/spotify_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ class SpotifySdk {

/// Sets the repeat mode
///
/// Set [repeatMode] to a value of [RepeatMode] either [off, track, context].
/// Set [repeatMode] to a value of [RepeatMode].
/// Throws a [PlatformException] if adding failed
/// Throws a [MissingPluginException] if the method is not implemented on
/// the native platforms.
Expand Down
Loading