@wwdrew/expo-spotify-sdk 0.3.1 → 0.4.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 (97) hide show
  1. package/README.md +36 -3
  2. package/build/ExpoSpotifySDK.types.d.ts +0 -1
  3. package/build/ExpoSpotifySDK.types.d.ts.map +1 -1
  4. package/build/ExpoSpotifySDK.types.js.map +1 -1
  5. package/external/android/SpotifySDK/auth-lib/spotify-auth-release-2.1.0.aar +0 -0
  6. package/ios/ExpoSpotifySDKModule.swift +1 -3
  7. package/ios/ExpoSpotifySessionManager.swift +3 -3
  8. package/ios/SpotifySDK/SpotifyiOS.xcframework/Info.plist +9 -5
  9. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h +14 -10
  10. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +3 -0
  11. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTSessionManager.h +3 -13
  12. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +2 -0
  13. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist +0 -0
  14. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Modules/module.modulemap +1 -1
  15. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/PrivacyInfo.xcprivacy +14 -0
  16. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS +0 -0
  17. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +14 -10
  18. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +3 -0
  19. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSessionManager.h +3 -13
  20. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +2 -0
  21. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist +0 -0
  22. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap +1 -1
  23. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/PrivacyInfo.xcprivacy +14 -0
  24. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS +0 -0
  25. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/_CodeSignature/CodeResources +20 -133
  26. package/package.json +4 -3
  27. package/plugin/build/android/withSpotifyAndroidAppBuildGradle.js +18 -2
  28. package/plugin/build/index.js +2 -2
  29. package/plugin/build/ios/{withSpotifyConfigIOS.d.ts → withSpotifyConfigValues.d.ts} +1 -1
  30. package/plugin/build/ios/{withSpotifyConfigIOS.js → withSpotifyConfigValues.js} +3 -3
  31. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemote.h +0 -240
  32. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +0 -18
  33. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +0 -18
  34. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +0 -36
  35. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +0 -65
  36. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +0 -75
  37. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +0 -43
  38. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +0 -18
  39. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +0 -25
  40. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +0 -16
  41. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +0 -19
  42. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +0 -32
  43. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +0 -32
  44. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +0 -262
  45. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +0 -40
  46. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +0 -15
  47. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +0 -47
  48. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +0 -103
  49. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +0 -15
  50. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTConfiguration.h +0 -63
  51. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTError.h +0 -33
  52. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTLogin.h +0 -10
  53. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTMacros.h +0 -89
  54. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTScope.h +0 -68
  55. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTSession.h +0 -32
  56. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTSessionManager.h +0 -140
  57. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +0 -30
  58. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SpotifyiOS.h +0 -7
  59. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Info.plist +0 -0
  60. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Modules/module.modulemap +0 -6
  61. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/SpotifyiOS +0 -0
  62. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +0 -240
  63. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +0 -18
  64. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +0 -18
  65. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +0 -36
  66. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +0 -65
  67. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +0 -75
  68. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +0 -43
  69. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +0 -18
  70. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +0 -25
  71. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +0 -16
  72. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +0 -19
  73. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +0 -32
  74. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +0 -32
  75. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +0 -262
  76. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +0 -40
  77. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +0 -15
  78. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +0 -47
  79. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +0 -103
  80. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +0 -15
  81. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTConfiguration.h +0 -63
  82. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTError.h +0 -33
  83. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTLogin.h +0 -10
  84. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTMacros.h +0 -89
  85. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTScope.h +0 -68
  86. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSession.h +0 -32
  87. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSessionManager.h +0 -140
  88. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +0 -30
  89. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyiOS.h +0 -7
  90. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Info.plist +0 -0
  91. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap +0 -6
  92. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS +0 -0
  93. package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/_CodeSignature/CodeResources +0 -537
  94. package/plugin/build/android/withSpotifyConfigAndroid.d.ts +0 -3
  95. package/plugin/build/android/withSpotifyConfigAndroid.js +0 -16
  96. package/plugin/build/withSpotifyConfig.d.ts +0 -3
  97. package/plugin/build/withSpotifyConfig.js +0 -11
@@ -6,7 +6,7 @@
6
6
  <dict>
7
7
  <key>Headers/SPTAppRemote.h</key>
8
8
  <data>
9
- t7Hh0L+Ak3xs6WIBPjMos5RegOE=
9
+ vp2fDLrEgvwm5wd1GwLK2CnY1/4=
10
10
  </data>
11
11
  <key>Headers/SPTAppRemoteAlbum.h</key>
12
12
  <data>
@@ -38,7 +38,7 @@
38
38
  </data>
39
39
  <key>Headers/SPTAppRemoteContentItem.h</key>
40
40
  <data>
41
- tkJ3T/eZcZGrEXO2Js63LB6y8TY=
41
+ hO4Xt+59R4BoPfF0y7mIMcQTTiY=
42
42
  </data>
43
43
  <key>Headers/SPTAppRemoteCrossfadeState.h</key>
44
44
  <data>
@@ -114,11 +114,11 @@
114
114
  </data>
115
115
  <key>Headers/SPTSessionManager.h</key>
116
116
  <data>
117
- evF+aCKdg+ryTNUXk5Eik/6MNOk=
117
+ SBxEZidPSxu0kqTbIjqSsm5a77Y=
118
118
  </data>
119
119
  <key>Headers/SpotifyAppRemote.h</key>
120
120
  <data>
121
- TCwc+uBsEd4YUZOvpso42XL5VyQ=
121
+ 1Cw+jZPqfjJ5sc6yW7xoPHNN2fU=
122
122
  </data>
123
123
  <key>Headers/SpotifyiOS.h</key>
124
124
  <data>
@@ -126,32 +126,28 @@
126
126
  </data>
127
127
  <key>Info.plist</key>
128
128
  <data>
129
- /3qAvaISq2ovMu/k14w/EmLuV04=
129
+ dIQEPuwCF05rSz5+JYQt/ZYEQ/8=
130
130
  </data>
131
131
  <key>Modules/module.modulemap</key>
132
132
  <data>
133
- XmNK41tuIV8BMkBFvu+R5IiJC6s=
133
+ bSv5rrubzka9LTf5wONuMfVl89g=
134
+ </data>
135
+ <key>PrivacyInfo.xcprivacy</key>
136
+ <data>
137
+ AL1dh5ctObXBjoBiabSJ86M3HQs=
134
138
  </data>
135
139
  </dict>
136
140
  <key>files2</key>
137
141
  <dict>
138
142
  <key>Headers/SPTAppRemote.h</key>
139
143
  <dict>
140
- <key>hash</key>
141
- <data>
142
- t7Hh0L+Ak3xs6WIBPjMos5RegOE=
143
- </data>
144
144
  <key>hash2</key>
145
145
  <data>
146
- n1eb/urgmLhozCxMSEHITpWZ0/jAwg7Iw5s8W+IQhZQ=
146
+ LqO/oRsmWu5uFGJuYm2xmaj7Lq4bdmYhyYqD/nVFR8w=
147
147
  </data>
148
148
  </dict>
149
149
  <key>Headers/SPTAppRemoteAlbum.h</key>
150
150
  <dict>
151
- <key>hash</key>
152
- <data>
153
- Lu2h8RV/1rCYVe0UeVYTpq08R0s=
154
- </data>
155
151
  <key>hash2</key>
156
152
  <data>
157
153
  juYHeLMlaqhRmfOQgyPv3+mqe19WB9c/yN9YhZmYkuw=
@@ -159,10 +155,6 @@
159
155
  </dict>
160
156
  <key>Headers/SPTAppRemoteArtist.h</key>
161
157
  <dict>
162
- <key>hash</key>
163
- <data>
164
- tE8Iok89gLPlWD3mhRcBWnvJ7LM=
165
- </data>
166
158
  <key>hash2</key>
167
159
  <data>
168
160
  16uyxiFbm57Zbm6EvDLKut7wUBQYMY0gqsco8+e1EUQ=
@@ -170,10 +162,6 @@
170
162
  </dict>
171
163
  <key>Headers/SPTAppRemoteCommon.h</key>
172
164
  <dict>
173
- <key>hash</key>
174
- <data>
175
- CpelKULwWd0nTTZbrWggK9Wh1Sk=
176
- </data>
177
165
  <key>hash2</key>
178
166
  <data>
179
167
  w2tXhJ6V84gaIx/oufHMM0aVRj6s5J1qhoHN/N8dwKA=
@@ -181,10 +169,6 @@
181
169
  </dict>
182
170
  <key>Headers/SPTAppRemoteConnectionParams.h</key>
183
171
  <dict>
184
- <key>hash</key>
185
- <data>
186
- 5Q+ZskgYeMEl9/QUrJEGrIOt/qU=
187
- </data>
188
172
  <key>hash2</key>
189
173
  <data>
190
174
  YBy/6s0WAEfEy7DbEx+Y7Emavnp8+95MrmRfai1kCXI=
@@ -192,10 +176,6 @@
192
176
  </dict>
193
177
  <key>Headers/SPTAppRemoteConnectivityAPI.h</key>
194
178
  <dict>
195
- <key>hash</key>
196
- <data>
197
- 1IsWgCd35d9eLZ1bLK9rcc42SC4=
198
- </data>
199
179
  <key>hash2</key>
200
180
  <data>
201
181
  y39A3+0t/j/EkXSsm0S/dJ/bbq6oPB+x7VzRh9UPF6I=
@@ -203,10 +183,6 @@
203
183
  </dict>
204
184
  <key>Headers/SPTAppRemoteConnectivityState.h</key>
205
185
  <dict>
206
- <key>hash</key>
207
- <data>
208
- gQ/++ZcqYbuCiOwa5pfKqlY081s=
209
- </data>
210
186
  <key>hash2</key>
211
187
  <data>
212
188
  OXTYAMLmKRT8pEPD3x5G+Srjfc6genLNyv7/+LONxZE=
@@ -214,10 +190,6 @@
214
190
  </dict>
215
191
  <key>Headers/SPTAppRemoteContentAPI.h</key>
216
192
  <dict>
217
- <key>hash</key>
218
- <data>
219
- 0CSzqvLvOMUxpLRCSBx47RDBMdA=
220
- </data>
221
193
  <key>hash2</key>
222
194
  <data>
223
195
  wUxkL7K8laoKaNERxEMy7g1idgkQHHEcXkWDTd502Lc=
@@ -225,21 +197,13 @@
225
197
  </dict>
226
198
  <key>Headers/SPTAppRemoteContentItem.h</key>
227
199
  <dict>
228
- <key>hash</key>
229
- <data>
230
- tkJ3T/eZcZGrEXO2Js63LB6y8TY=
231
- </data>
232
200
  <key>hash2</key>
233
201
  <data>
234
- xJQbxcr/OCWc0bREbNhIcHee/B4hx1LXlatNxlT4/ak=
202
+ OVONqE0kPMPEPtBmg6qBJyk13EX7AS+Gty4eabVgX10=
235
203
  </data>
236
204
  </dict>
237
205
  <key>Headers/SPTAppRemoteCrossfadeState.h</key>
238
206
  <dict>
239
- <key>hash</key>
240
- <data>
241
- USFdXS57TktpjTBwfq4MRMR5AR8=
242
- </data>
243
207
  <key>hash2</key>
244
208
  <data>
245
209
  06hbkMdjdn6+wjqoIYXh27mnu6W2fKZ6Q0LPUQ8I85M=
@@ -247,10 +211,6 @@
247
211
  </dict>
248
212
  <key>Headers/SPTAppRemoteImageAPI.h</key>
249
213
  <dict>
250
- <key>hash</key>
251
- <data>
252
- cFwXJG6kY/Wp9abR7/JSlGRjVhU=
253
- </data>
254
214
  <key>hash2</key>
255
215
  <data>
256
216
  IZe/KdziuyH++/XzVhual9PbJGOmoSITmoGzKUDXxm0=
@@ -258,10 +218,6 @@
258
218
  </dict>
259
219
  <key>Headers/SPTAppRemoteImageRepresentable.h</key>
260
220
  <dict>
261
- <key>hash</key>
262
- <data>
263
- ciJ5/qk+pvsaWmK/Htwzo8VWV+I=
264
- </data>
265
221
  <key>hash2</key>
266
222
  <data>
267
223
  gZBSnduQFKgPAyxGlhOITe/t2W4V3Wbn8s4rwLOfz+E=
@@ -269,10 +225,6 @@
269
225
  </dict>
270
226
  <key>Headers/SPTAppRemoteLibraryState.h</key>
271
227
  <dict>
272
- <key>hash</key>
273
- <data>
274
- SVMsqEYwTZpjyW7aoWdcj/WlP7k=
275
- </data>
276
228
  <key>hash2</key>
277
229
  <data>
278
230
  /eJQTzpaVEJiOoqG2rKbd+0WCitm5v/ii0bcBbF+bN8=
@@ -280,10 +232,6 @@
280
232
  </dict>
281
233
  <key>Headers/SPTAppRemotePlaybackOptions.h</key>
282
234
  <dict>
283
- <key>hash</key>
284
- <data>
285
- pvw2bdL4fv6RTSBuMCc9K5QevCQ=
286
- </data>
287
235
  <key>hash2</key>
288
236
  <data>
289
237
  1G7XYL6zsUzdDiLHAk90M4xKRAsCcnG0anx7hJtBOIw=
@@ -291,10 +239,6 @@
291
239
  </dict>
292
240
  <key>Headers/SPTAppRemotePlaybackRestrictions.h</key>
293
241
  <dict>
294
- <key>hash</key>
295
- <data>
296
- ALUn1+dXGFf0AEY4mWOSFz4F3qg=
297
- </data>
298
242
  <key>hash2</key>
299
243
  <data>
300
244
  +N64MGaUhioHAEuekcSrvVl1FcxznUei5Yq1/KkNei0=
@@ -302,10 +246,6 @@
302
246
  </dict>
303
247
  <key>Headers/SPTAppRemotePlayerAPI.h</key>
304
248
  <dict>
305
- <key>hash</key>
306
- <data>
307
- krhVrXqBo4Nh4YXRuHZURfKclEE=
308
- </data>
309
249
  <key>hash2</key>
310
250
  <data>
311
251
  6z0uDE9BpPOZKQnKlWPNWCwR/SI0sNAdsE9bBd8vBPM=
@@ -313,10 +253,6 @@
313
253
  </dict>
314
254
  <key>Headers/SPTAppRemotePlayerState.h</key>
315
255
  <dict>
316
- <key>hash</key>
317
- <data>
318
- 0nUxiikB1mLHRqFJodmtSGL1hqo=
319
- </data>
320
256
  <key>hash2</key>
321
257
  <data>
322
258
  7Ll+4R7t6Q6NmK8hPnM9+eTrmWR1giwbO0tl3gNveGg=
@@ -324,10 +260,6 @@
324
260
  </dict>
325
261
  <key>Headers/SPTAppRemotePodcastPlaybackSpeed.h</key>
326
262
  <dict>
327
- <key>hash</key>
328
- <data>
329
- buVPJyc1tr0zVzlF8BxtP1fmG2s=
330
- </data>
331
263
  <key>hash2</key>
332
264
  <data>
333
265
  K6cJayK1RuCic1Fs7eLWuw6H0MhhoRWO7Qfvn4NOW0s=
@@ -335,10 +267,6 @@
335
267
  </dict>
336
268
  <key>Headers/SPTAppRemoteTrack.h</key>
337
269
  <dict>
338
- <key>hash</key>
339
- <data>
340
- v7ZLVkQtBEpkm+4SivDvn3tYr0M=
341
- </data>
342
270
  <key>hash2</key>
343
271
  <data>
344
272
  z1NcXcgGzKWhIOZevAQkV2xci5z/j6p8DOz2fc8daAQ=
@@ -346,10 +274,6 @@
346
274
  </dict>
347
275
  <key>Headers/SPTAppRemoteUserAPI.h</key>
348
276
  <dict>
349
- <key>hash</key>
350
- <data>
351
- jqgSBg6Bc1Aae/ON6m2ZsusMyoY=
352
- </data>
353
277
  <key>hash2</key>
354
278
  <data>
355
279
  TwgrVtdlg5ymXlTu1AUGCYsgADjaiPCfAw3xtP4Ni+0=
@@ -357,10 +281,6 @@
357
281
  </dict>
358
282
  <key>Headers/SPTAppRemoteUserCapabilities.h</key>
359
283
  <dict>
360
- <key>hash</key>
361
- <data>
362
- On4cqNDucPiWZnxsw2L7e02TifQ=
363
- </data>
364
284
  <key>hash2</key>
365
285
  <data>
366
286
  rgzoWbjiSQUKhTH4hzYJo1V4oOZ4xFWukaED0hRL7yw=
@@ -368,10 +288,6 @@
368
288
  </dict>
369
289
  <key>Headers/SPTConfiguration.h</key>
370
290
  <dict>
371
- <key>hash</key>
372
- <data>
373
- wInZ+pQ74rpgg+DSyN9GdZEoRVI=
374
- </data>
375
291
  <key>hash2</key>
376
292
  <data>
377
293
  KOEVP54qMgj9xnvGAjhJOZfDI84RSGqCmPCUA7D5qXs=
@@ -379,10 +295,6 @@
379
295
  </dict>
380
296
  <key>Headers/SPTError.h</key>
381
297
  <dict>
382
- <key>hash</key>
383
- <data>
384
- Kj+zm7PGIYwZLO3nL5NfqmfXVXk=
385
- </data>
386
298
  <key>hash2</key>
387
299
  <data>
388
300
  I3Wuh5U8eLBeuTGWV/yJYUs5Atyxua9PVcNY/2cngUw=
@@ -390,10 +302,6 @@
390
302
  </dict>
391
303
  <key>Headers/SPTLogin.h</key>
392
304
  <dict>
393
- <key>hash</key>
394
- <data>
395
- ZPUkIqDFb0qI+2kxt9cwkiviDko=
396
- </data>
397
305
  <key>hash2</key>
398
306
  <data>
399
307
  3ztxaTf7CakFIb3Taz03z0g6SIig46Typzij8SFOjhQ=
@@ -401,10 +309,6 @@
401
309
  </dict>
402
310
  <key>Headers/SPTMacros.h</key>
403
311
  <dict>
404
- <key>hash</key>
405
- <data>
406
- 2idMsqzDSas1N9J6xTuIf5w7ozI=
407
- </data>
408
312
  <key>hash2</key>
409
313
  <data>
410
314
  UnnsQX3ImXUW0a1tx8DJP31c400JMOqw3gBvpITN3ZQ=
@@ -412,10 +316,6 @@
412
316
  </dict>
413
317
  <key>Headers/SPTScope.h</key>
414
318
  <dict>
415
- <key>hash</key>
416
- <data>
417
- F575KcNSsah0efQcJ9NxqhMj1XU=
418
- </data>
419
319
  <key>hash2</key>
420
320
  <data>
421
321
  oZRtWZZrHNdvliwGwMDUAH/E2Vm6ndbJY/bjqznGmMk=
@@ -423,10 +323,6 @@
423
323
  </dict>
424
324
  <key>Headers/SPTSession.h</key>
425
325
  <dict>
426
- <key>hash</key>
427
- <data>
428
- tlKyXr4cYHsmCVT1Pirrn7YD35M=
429
- </data>
430
326
  <key>hash2</key>
431
327
  <data>
432
328
  vBWbY6+HvUhHlV9tJR+cTDCIm7PX7qYms/CZ4o6rdE8=
@@ -434,32 +330,20 @@
434
330
  </dict>
435
331
  <key>Headers/SPTSessionManager.h</key>
436
332
  <dict>
437
- <key>hash</key>
438
- <data>
439
- evF+aCKdg+ryTNUXk5Eik/6MNOk=
440
- </data>
441
333
  <key>hash2</key>
442
334
  <data>
443
- p/WBdGNx2Obgjj9TAAjhS6QP/j80z8ShuFmr6uQdNZA=
335
+ Wldpc0wHvSO51aH3GNEzkjoNiJ6dahRIY18k3tOBxbY=
444
336
  </data>
445
337
  </dict>
446
338
  <key>Headers/SpotifyAppRemote.h</key>
447
339
  <dict>
448
- <key>hash</key>
449
- <data>
450
- TCwc+uBsEd4YUZOvpso42XL5VyQ=
451
- </data>
452
340
  <key>hash2</key>
453
341
  <data>
454
- qmvRjoF49m2IoRzbsHDQHB2LJu8WgF14k9gGWPiBVvE=
342
+ 0ObwzhpBLFLDyQYujNSwdCRrHo9QoTRQWSOlQ82MHyM=
455
343
  </data>
456
344
  </dict>
457
345
  <key>Headers/SpotifyiOS.h</key>
458
346
  <dict>
459
- <key>hash</key>
460
- <data>
461
- q2AWpJkisBaRyAAIh23bnigAQec=
462
- </data>
463
347
  <key>hash2</key>
464
348
  <data>
465
349
  w/SJykKvp2r09Ybp14YnSuITltaCZXKnBTWeQ1NILHM=
@@ -467,13 +351,16 @@
467
351
  </dict>
468
352
  <key>Modules/module.modulemap</key>
469
353
  <dict>
470
- <key>hash</key>
354
+ <key>hash2</key>
471
355
  <data>
472
- XmNK41tuIV8BMkBFvu+R5IiJC6s=
356
+ vR9YKCxR0961pUp2+RjzaFT70qVubKGYzMnmFbHJRXg=
473
357
  </data>
358
+ </dict>
359
+ <key>PrivacyInfo.xcprivacy</key>
360
+ <dict>
474
361
  <key>hash2</key>
475
362
  <data>
476
- geE0H7wPQlfolmnYAJkb+uT3V9APuwa2AmaouUqjmWQ=
363
+ WpuPwM3bECAbtHzCgEs/AExyUUdmItJb/E61TtRuEIQ=
477
364
  </data>
478
365
  </dict>
479
366
  </dict>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwdrew/expo-spotify-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Expo Module for native Spotify SDK",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,7 +28,8 @@
28
28
  "ios",
29
29
  "app.plugin.js",
30
30
  "expo-module.config.json",
31
- "server.js"
31
+ "server.js",
32
+ "external/android/SpotifySDK/auth-lib/spotify-auth-release-2.1.0.aar"
32
33
  ],
33
34
  "jest": {
34
35
  "preset": "expo-module-scripts"
@@ -50,4 +51,4 @@
50
51
  "react": "*",
51
52
  "react-native": "*"
52
53
  }
53
- }
54
+ }
@@ -4,12 +4,28 @@ exports.withSpotifyAndroidAppBuildGradle = void 0;
4
4
  const config_plugins_1 = require("@expo/config-plugins");
5
5
  const withSpotifyAndroidAppBuildGradle = (config, spotifyConfig) => {
6
6
  return (0, config_plugins_1.withAppBuildGradle)(config, (config) => {
7
- config.modResults.contents += `
7
+ const defaultConfigPattern = /(defaultConfig\s*{[\s\S]*?)(})/s;
8
+ const manifestPlaceholders = `
9
+ manifestPlaceholders = [
10
+ spotifyClientId: "${spotifyConfig.clientID}",
11
+ spotifyRedirectUri: "${spotifyConfig.scheme}://${spotifyConfig.host}",
12
+ redirectSchemeName: "${spotifyConfig.scheme}",
13
+ redirectHostName: "${spotifyConfig.host}"
14
+ ]
15
+ `;
16
+ if (defaultConfigPattern.test(config.modResults.contents)) {
17
+ // If the defaultConfig block exists, add the manifestPlaceholders to it
18
+ config.modResults.contents = config.modResults.contents.replace(defaultConfigPattern, `$1${manifestPlaceholders}$2`);
19
+ }
20
+ else {
21
+ // If the defaultConfig block doesn't exist, add it to the android block
22
+ config.modResults.contents += `
8
23
  android {
9
24
  defaultConfig {
10
- manifestPlaceholders = [redirectSchemeName: "${spotifyConfig.scheme}", redirectHostName: "${spotifyConfig.host}"]
25
+ ${manifestPlaceholders}
11
26
  }
12
27
  }`;
28
+ }
13
29
  return config;
14
30
  });
15
31
  };
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withSpotifySdkConfig = void 0;
4
4
  const withSpotifyAndroidAppBuildGradle_1 = require("./android/withSpotifyAndroidAppBuildGradle");
5
+ const withSpotifyConfigValues_1 = require("./ios/withSpotifyConfigValues");
5
6
  const withSpotifyQueryScheme_1 = require("./ios/withSpotifyQueryScheme");
6
7
  const withSpotifyURLScheme_1 = require("./ios/withSpotifyURLScheme");
7
- const withSpotifyConfig_1 = require("./withSpotifyConfig");
8
8
  const withSpotifySdkConfig = (config, spotifyConfig) => {
9
9
  if (!spotifyConfig.host) {
10
10
  throw new Error("Missing required Spotify config value: host");
@@ -15,10 +15,10 @@ const withSpotifySdkConfig = (config, spotifyConfig) => {
15
15
  if (!spotifyConfig.clientID) {
16
16
  throw new Error("Missing required Spotify config value: clientID");
17
17
  }
18
- config = (0, withSpotifyConfig_1.withSpotifyConfig)(config, spotifyConfig);
19
18
  // Android specific
20
19
  config = (0, withSpotifyAndroidAppBuildGradle_1.withSpotifyAndroidAppBuildGradle)(config, spotifyConfig);
21
20
  // iOS specific
21
+ config = (0, withSpotifyConfigValues_1.withSpotifyConfigValues)(config, spotifyConfig);
22
22
  config = (0, withSpotifyQueryScheme_1.withSpotifyQueryScheme)(config, spotifyConfig);
23
23
  config = (0, withSpotifyURLScheme_1.withSpotifyURLScheme)(config, spotifyConfig);
24
24
  return config;
@@ -1,3 +1,3 @@
1
1
  import { ConfigPlugin } from "@expo/config-plugins";
2
2
  import { SpotifyConfig } from "../types";
3
- export declare const withSpotifyConfigIOS: ConfigPlugin<SpotifyConfig>;
3
+ export declare const withSpotifyConfigValues: ConfigPlugin<SpotifyConfig>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withSpotifyConfigIOS = void 0;
3
+ exports.withSpotifyConfigValues = void 0;
4
4
  const config_plugins_1 = require("@expo/config-plugins");
5
- const withSpotifyConfigIOS = (config, spotifyConfig) => (0, config_plugins_1.withInfoPlist)(config, (config) => {
5
+ const withSpotifyConfigValues = (config, spotifyConfig) => (0, config_plugins_1.withInfoPlist)(config, (config) => {
6
6
  if (!config.modResults.ExpoSpotifySDK) {
7
7
  config.modResults.ExpoSpotifySDK = {};
8
8
  }
@@ -13,4 +13,4 @@ const withSpotifyConfigIOS = (config, spotifyConfig) => (0, config_plugins_1.wit
13
13
  });
14
14
  return config;
15
15
  });
16
- exports.withSpotifyConfigIOS = withSpotifyConfigIOS;
16
+ exports.withSpotifyConfigValues = withSpotifyConfigValues;