@wwdrew/expo-spotify-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +113 -0
  3. package/app.plugin.js +1 -0
  4. package/build/ExpoSpotifySDK.types.d.ts +4 -0
  5. package/build/ExpoSpotifySDK.types.d.ts.map +1 -0
  6. package/build/ExpoSpotifySDK.types.js +2 -0
  7. package/build/ExpoSpotifySDK.types.js.map +1 -0
  8. package/build/ExpoSpotifySDKModule.d.ts +3 -0
  9. package/build/ExpoSpotifySDKModule.d.ts.map +1 -0
  10. package/build/ExpoSpotifySDKModule.js +5 -0
  11. package/build/ExpoSpotifySDKModule.js.map +1 -0
  12. package/build/ExpoSpotifySDKModule.web.d.ts +7 -0
  13. package/build/ExpoSpotifySDKModule.web.d.ts.map +1 -0
  14. package/build/ExpoSpotifySDKModule.web.js +12 -0
  15. package/build/ExpoSpotifySDKModule.web.js.map +1 -0
  16. package/build/index.d.ts +13 -0
  17. package/build/index.d.ts.map +1 -0
  18. package/build/index.js +12 -0
  19. package/build/index.js.map +1 -0
  20. package/expo-module.config.json +10 -0
  21. package/ios/ExpoSpotifyAuthDelegate.swift +11 -0
  22. package/ios/ExpoSpotifyConfiguration.swift +25 -0
  23. package/ios/ExpoSpotifySDK.podspec +30 -0
  24. package/ios/ExpoSpotifySDKModule.swift +32 -0
  25. package/ios/ExpoSpotifySessionManager+SessionManagerDelegate.swift +16 -0
  26. package/ios/ExpoSpotifySessionManager.swift +82 -0
  27. package/ios/SPTScopeSerializer.swift +44 -0
  28. package/ios/SpotifySDK/Licenses/MPMessagePack-LICENSE.md +20 -0
  29. package/ios/SpotifySDK/SpotifyiOS.xcframework/Info.plist +40 -0
  30. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h +281 -0
  31. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +18 -0
  32. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +18 -0
  33. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +36 -0
  34. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +65 -0
  35. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteConnectivityAPI.h +54 -0
  36. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteConnectivityState.h +15 -0
  37. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +76 -0
  38. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +46 -0
  39. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +18 -0
  40. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +25 -0
  41. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +16 -0
  42. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +19 -0
  43. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +32 -0
  44. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +32 -0
  45. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +262 -0
  46. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +40 -0
  47. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +15 -0
  48. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +52 -0
  49. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +103 -0
  50. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +15 -0
  51. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTConfiguration.h +66 -0
  52. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTError.h +33 -0
  53. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTLogin.h +10 -0
  54. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTMacros.h +89 -0
  55. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTScope.h +71 -0
  56. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTSession.h +32 -0
  57. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTSessionManager.h +140 -0
  58. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +30 -0
  59. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SpotifyiOS.h +7 -0
  60. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist +0 -0
  61. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Modules/module.modulemap +6 -0
  62. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS +0 -0
  63. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemote.h +240 -0
  64. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +18 -0
  65. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +18 -0
  66. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +36 -0
  67. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +65 -0
  68. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +75 -0
  69. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +43 -0
  70. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +18 -0
  71. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +25 -0
  72. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +16 -0
  73. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +19 -0
  74. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +32 -0
  75. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +32 -0
  76. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +262 -0
  77. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +40 -0
  78. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +15 -0
  79. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +47 -0
  80. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +103 -0
  81. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +15 -0
  82. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTConfiguration.h +63 -0
  83. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTError.h +33 -0
  84. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTLogin.h +10 -0
  85. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTMacros.h +89 -0
  86. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTScope.h +68 -0
  87. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTSession.h +32 -0
  88. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTSessionManager.h +140 -0
  89. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +30 -0
  90. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SpotifyiOS.h +7 -0
  91. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Info.plist +0 -0
  92. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Modules/module.modulemap +6 -0
  93. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/SpotifyiOS +0 -0
  94. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +240 -0
  95. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +18 -0
  96. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +18 -0
  97. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +36 -0
  98. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +65 -0
  99. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +75 -0
  100. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +43 -0
  101. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +18 -0
  102. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +25 -0
  103. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +16 -0
  104. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +19 -0
  105. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +32 -0
  106. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +32 -0
  107. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +262 -0
  108. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +40 -0
  109. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +15 -0
  110. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +47 -0
  111. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +103 -0
  112. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +15 -0
  113. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTConfiguration.h +63 -0
  114. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTError.h +33 -0
  115. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTLogin.h +10 -0
  116. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTMacros.h +89 -0
  117. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTScope.h +68 -0
  118. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSession.h +32 -0
  119. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSessionManager.h +140 -0
  120. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +30 -0
  121. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyiOS.h +7 -0
  122. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Info.plist +0 -0
  123. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap +6 -0
  124. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS +0 -0
  125. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/_CodeSignature/CodeResources +537 -0
  126. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +281 -0
  127. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +18 -0
  128. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +18 -0
  129. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +36 -0
  130. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +65 -0
  131. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteConnectivityAPI.h +54 -0
  132. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteConnectivityState.h +15 -0
  133. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +76 -0
  134. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +46 -0
  135. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +18 -0
  136. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +25 -0
  137. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +16 -0
  138. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +19 -0
  139. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +32 -0
  140. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +32 -0
  141. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +262 -0
  142. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +40 -0
  143. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +15 -0
  144. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +52 -0
  145. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +103 -0
  146. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +15 -0
  147. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTConfiguration.h +66 -0
  148. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTError.h +33 -0
  149. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTLogin.h +10 -0
  150. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTMacros.h +89 -0
  151. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTScope.h +71 -0
  152. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSession.h +32 -0
  153. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSessionManager.h +140 -0
  154. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +30 -0
  155. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyiOS.h +7 -0
  156. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist +0 -0
  157. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap +6 -0
  158. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS +0 -0
  159. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/_CodeSignature/CodeResources +567 -0
  160. package/package.json +58 -0
  161. package/plugin/build/android/withSpotifyAndroidAppBuildGradle.d.ts +3 -0
  162. package/plugin/build/android/withSpotifyAndroidAppBuildGradle.js +16 -0
  163. package/plugin/build/android/withSpotifyConfigAndroid.d.ts +3 -0
  164. package/plugin/build/android/withSpotifyConfigAndroid.js +16 -0
  165. package/plugin/build/index.d.ts +4 -0
  166. package/plugin/build/index.js +24 -0
  167. package/plugin/build/ios/withSpotifyConfigIOS.d.ts +3 -0
  168. package/plugin/build/ios/withSpotifyConfigIOS.js +16 -0
  169. package/plugin/build/ios/withSpotifyQueryScheme.d.ts +3 -0
  170. package/plugin/build/ios/withSpotifyQueryScheme.js +15 -0
  171. package/plugin/build/ios/withSpotifyURLScheme.d.ts +3 -0
  172. package/plugin/build/ios/withSpotifyURLScheme.js +19 -0
  173. package/plugin/build/types.d.ts +8 -0
  174. package/plugin/build/types.js +21 -0
  175. package/plugin/build/withSpotifyConfig.d.ts +3 -0
  176. package/plugin/build/withSpotifyConfig.js +11 -0
  177. package/server.js +93 -0
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withSpotifyConfigIOS = void 0;
4
+ const config_plugins_1 = require("@expo/config-plugins");
5
+ const withSpotifyConfigIOS = (config, spotifyConfig) => (0, config_plugins_1.withInfoPlist)(config, (config) => {
6
+ if (!config.modResults.ExpoSpotifySDK) {
7
+ config.modResults.ExpoSpotifySDK = {};
8
+ }
9
+ const spotifySDKConfig = config.modResults
10
+ .ExpoSpotifySDK;
11
+ Object.entries(spotifyConfig).forEach(([key, value]) => {
12
+ spotifySDKConfig[key] = value;
13
+ });
14
+ return config;
15
+ });
16
+ exports.withSpotifyConfigIOS = withSpotifyConfigIOS;
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from "@expo/config-plugins";
2
+ import { SpotifyConfig } from "../types";
3
+ export declare const withSpotifyQueryScheme: ConfigPlugin<SpotifyConfig>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withSpotifyQueryScheme = void 0;
4
+ const config_plugins_1 = require("@expo/config-plugins");
5
+ const SPOTIFY_SCHEME = "spotify";
6
+ const withSpotifyQueryScheme = (config) => (0, config_plugins_1.withInfoPlist)(config, (config) => {
7
+ if (!config.modResults.LSApplicationQueriesSchemes) {
8
+ config.modResults.LSApplicationQueriesSchemes = [];
9
+ }
10
+ if (!config.modResults.LSApplicationQueriesSchemes.includes(SPOTIFY_SCHEME)) {
11
+ config.modResults.LSApplicationQueriesSchemes.push(SPOTIFY_SCHEME);
12
+ }
13
+ return config;
14
+ });
15
+ exports.withSpotifyQueryScheme = withSpotifyQueryScheme;
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from "expo/config-plugins";
2
+ import { SpotifyConfig } from "../types";
3
+ export declare const withSpotifyURLScheme: ConfigPlugin<SpotifyConfig>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withSpotifyURLScheme = void 0;
4
+ const config_plugins_1 = require("expo/config-plugins");
5
+ const withSpotifyURLScheme = (config, { scheme }) => {
6
+ return (0, config_plugins_1.withInfoPlist)(config, (config) => {
7
+ const bundleId = config.ios?.bundleIdentifier;
8
+ const urlType = {
9
+ CFBundleURLName: bundleId,
10
+ CFBundleURLSchemes: [scheme],
11
+ };
12
+ if (!config.modResults.CFBundleURLTypes) {
13
+ config.modResults.CFBundleURLTypes = [];
14
+ }
15
+ config.modResults.CFBundleURLTypes.push(urlType);
16
+ return config;
17
+ });
18
+ };
19
+ exports.withSpotifyURLScheme = withSpotifyURLScheme;
@@ -0,0 +1,8 @@
1
+ export type SpotifyScopes = "ugc-image-upload" | "user-read-playback-state" | "user-modify-playback-state" | "user-read-currently-playing" | "app-remote-control" | "streaming" | "playlist-read-private" | "playlist-read-collaborative" | "playlist-modify-private" | "playlist-modify-public" | "user-follow-modify" | "user-follow-read" | "user-top-read" | "user-read-recently-played" | "user-library-modify" | "user-library-read" | "user-read-email" | "user-read-private";
2
+ export interface SpotifyConfig {
3
+ clientID: string;
4
+ host: string;
5
+ scheme: string;
6
+ tokenRefreshURL: string;
7
+ tokenSwapURL: string;
8
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /*
3
+
4
+ List of Scopes: https://developer.spotify.com/documentation/web-api/concepts/scopes
5
+
6
+ Note: these scopes are not currently available in the iOS SDK:
7
+
8
+ - user-read-playback-position
9
+ - user-soa-link
10
+ - user-soa-unlink
11
+ - user-manage-entitlements
12
+ - user-manage-partner
13
+ - user-create-partner
14
+
15
+ Also, although these scopes exist in the iOS SDK, they are not valid:
16
+
17
+ - user-read-birthdate
18
+ - openid
19
+
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { ConfigPlugin } from "@expo/config-plugins";
2
+ import { SpotifyConfig } from "./types";
3
+ export declare const withSpotifyConfig: ConfigPlugin<SpotifyConfig>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.withSpotifyConfig = void 0;
4
+ const withSpotifyConfigAndroid_1 = require("./android/withSpotifyConfigAndroid");
5
+ const withSpotifyConfigIOS_1 = require("./ios/withSpotifyConfigIOS");
6
+ const withSpotifyConfig = (config, spotifyConfig) => {
7
+ config = (0, withSpotifyConfigAndroid_1.withSpotifyConfigAndroid)(config, spotifyConfig);
8
+ config = (0, withSpotifyConfigIOS_1.withSpotifyConfigIOS)(config, spotifyConfig);
9
+ return config;
10
+ };
11
+ exports.withSpotifyConfig = withSpotifyConfig;
package/server.js ADDED
@@ -0,0 +1,93 @@
1
+ const axios = require("axios");
2
+ const crypto = require("crypto");
3
+ const express = require("express");
4
+ const qs = require("qs");
5
+
6
+ const app = express();
7
+
8
+ app.use(express.json());
9
+ app.use(express.urlencoded({ extended: true }));
10
+ app.use(express.json());
11
+
12
+ const CLIENT_ID = "<your_client_id>";
13
+ const CLIENT_SECRET = "<your_client_secret>";
14
+ const AUTH_HEADER =
15
+ "Basic " + Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString("base64"); // "CLIENT_ID + ":" + CLIENT_SECRET, "utf8").toString("base64");
16
+
17
+ const SPOTIFY_ACCOUNTS_ENDPOINT = "https://accounts.spotify.com";
18
+ const CLIENT_CALLBACK_URL = "expo-spotify-sdk-example://authenticate";
19
+ const ENCRYPTION_SECRET = "<your_encryption_secret>";
20
+
21
+ app.post("/swap", async (req, res) => {
22
+ console.log("WE'VE BEEN HIT!");
23
+
24
+ const auth_code = req.body.code;
25
+
26
+ try {
27
+ const response = await axios.post(
28
+ `${SPOTIFY_ACCOUNTS_ENDPOINT}/api/token`,
29
+ qs.stringify({
30
+ grant_type: "authorization_code",
31
+ redirect_uri: CLIENT_CALLBACK_URL,
32
+ code: auth_code,
33
+ }),
34
+ {
35
+ headers: {
36
+ Authorization: AUTH_HEADER,
37
+ "Content-Type": "application/x-www-form-urlencoded",
38
+ },
39
+ },
40
+ );
41
+
42
+ if (response.status === 200) {
43
+ const token_data = response.data;
44
+ const refresh_token = token_data.refresh_token;
45
+ const cipher = crypto.createCipher("aes-256-cbc", ENCRYPTION_SECRET);
46
+ let encrypted_token = cipher.update(refresh_token, "utf8", "hex");
47
+ encrypted_token += cipher.final("hex");
48
+ token_data.refresh_token = encrypted_token;
49
+
50
+ console.log({ token_data });
51
+
52
+ res.status(response.status).json(token_data);
53
+ } else {
54
+ res.status(response.status).send(response.data);
55
+ }
56
+ } catch (error) {
57
+ res.status(500).send(error.message);
58
+ }
59
+ });
60
+
61
+ app.post("/refresh", async (req, res) => {
62
+ const encrypted_token = req.body.refresh_token;
63
+ const decipher = crypto.createDecipher("aes-256-cbc", ENCRYPTION_SECRET);
64
+ let refresh_token = decipher.update(encrypted_token, "hex", "utf8");
65
+ refresh_token += decipher.final("utf8");
66
+
67
+ try {
68
+ const response = await axios.post(
69
+ `${SPOTIFY_ACCOUNTS_ENDPOINT}/api/token`,
70
+ qs.stringify({
71
+ grant_type: "refresh_token",
72
+ refresh_token,
73
+ }),
74
+ {
75
+ headers: {
76
+ Authorization: AUTH_HEADER,
77
+
78
+ "Content-Type": "application/x-www-form-urlencoded",
79
+ },
80
+ },
81
+ );
82
+
83
+ console.log({ data: response.data });
84
+
85
+ res.status(response.status).send(response.data);
86
+ } catch (error) {
87
+ res.status(500).send(error.message);
88
+ }
89
+ });
90
+
91
+ app.listen(3000, () => {
92
+ console.log("Server is running on port 3000");
93
+ });