@wwdrew/expo-spotify-sdk 0.3.1 → 0.4.1
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.
- package/README.md +37 -4
- package/android/build.gradle +49 -0
- package/android/src/main/AndroidManifest.xml +11 -0
- package/android/src/main/java/expo/modules/spotifysdk/ExpoSpotifySDKModule.kt +180 -0
- package/build/ExpoSpotifySDK.types.d.ts +0 -1
- package/build/ExpoSpotifySDK.types.d.ts.map +1 -1
- package/build/ExpoSpotifySDK.types.js.map +1 -1
- package/external/android/SpotifySDK/auth-lib/spotify-auth-release-2.1.0.aar +0 -0
- package/ios/ExpoSpotifySDKModule.swift +1 -3
- package/ios/ExpoSpotifySessionManager.swift +3 -3
- package/ios/SpotifySDK/SpotifyiOS.xcframework/Info.plist +9 -5
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemote.h +14 -10
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +3 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTSessionManager.h +3 -13
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +2 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Info.plist +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Modules/module.modulemap +1 -1
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/PrivacyInfo.xcprivacy +14 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/SpotifyiOS +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +14 -10
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +3 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSessionManager.h +3 -13
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +2 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Info.plist +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap +1 -1
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/PrivacyInfo.xcprivacy +14 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_x86_64-simulator/SpotifyiOS.framework/_CodeSignature/CodeResources +20 -133
- package/package.json +3 -1
- package/plugin/build/android/withSpotifyAndroidAppBuildGradle.js +18 -2
- package/plugin/build/index.js +2 -2
- package/plugin/build/ios/{withSpotifyConfigIOS.d.ts → withSpotifyConfigValues.d.ts} +1 -1
- package/plugin/build/ios/{withSpotifyConfigIOS.js → withSpotifyConfigValues.js} +3 -3
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemote.h +0 -240
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +0 -18
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +0 -18
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +0 -36
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +0 -65
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +0 -75
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +0 -43
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +0 -18
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +0 -25
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +0 -16
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +0 -19
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +0 -32
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +0 -32
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +0 -262
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +0 -40
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +0 -15
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +0 -47
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +0 -103
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +0 -15
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTConfiguration.h +0 -63
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTError.h +0 -33
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTLogin.h +0 -10
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTMacros.h +0 -89
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTScope.h +0 -68
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTSession.h +0 -32
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SPTSessionManager.h +0 -140
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +0 -30
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Headers/SpotifyiOS.h +0 -7
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Info.plist +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/Modules/module.modulemap +0 -6
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_armv7/SpotifyiOS.framework/SpotifyiOS +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemote.h +0 -240
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteAlbum.h +0 -18
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteArtist.h +0 -18
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCommon.h +0 -36
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteConnectionParams.h +0 -65
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentAPI.h +0 -75
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteContentItem.h +0 -43
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteCrossfadeState.h +0 -18
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageAPI.h +0 -25
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteImageRepresentable.h +0 -16
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteLibraryState.h +0 -19
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackOptions.h +0 -32
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlaybackRestrictions.h +0 -32
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerAPI.h +0 -262
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePlayerState.h +0 -40
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemotePodcastPlaybackSpeed.h +0 -15
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h +0 -47
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserAPI.h +0 -103
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTAppRemoteUserCapabilities.h +0 -15
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTConfiguration.h +0 -63
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTError.h +0 -33
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTLogin.h +0 -10
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTMacros.h +0 -89
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTScope.h +0 -68
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSession.h +0 -32
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SPTSessionManager.h +0 -140
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyAppRemote.h +0 -30
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Headers/SpotifyiOS.h +0 -7
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Info.plist +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/Modules/module.modulemap +0 -6
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/SpotifyiOS +0 -0
- package/ios/SpotifySDK/SpotifyiOS.xcframework/ios-arm64_i386_x86_64-simulator/SpotifyiOS.framework/_CodeSignature/CodeResources +0 -537
- package/plugin/build/android/withSpotifyConfigAndroid.d.ts +0 -3
- package/plugin/build/android/withSpotifyConfigAndroid.js +0 -16
- package/plugin/build/withSpotifyConfig.d.ts +0 -3
- package/plugin/build/withSpotifyConfig.js +0 -11
|
@@ -44,26 +44,16 @@ typedef NSString * const SPTAuthorizationCode;
|
|
|
44
44
|
- (instancetype)init NS_UNAVAILABLE;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
Initiate the authorization process
|
|
47
|
+
Initiate the authorization process
|
|
48
48
|
|
|
49
49
|
@param scope The scope to request, e.g. `SPTPlaylistReadPrivateScope`|`SPTUserReadEmailScope` if you wish to request read access to private playlists, and read access to the user's email address.
|
|
50
50
|
@param options Options bitmask that informs authorization behavior.
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
- (void)initiateSessionWithScope:(SPTScope)scope
|
|
54
|
-
options:(SPTAuthorizationOptions)options NS_AVAILABLE_IOS(11_0);
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
Initiate the authorization process on iOS versions < 11.
|
|
58
|
-
|
|
59
|
-
@param scope The scope to request, e.g. `SPTPlaylistReadPrivateScope`|`SPTUserReadEmailScope` if you wish to request read access to private playlists, and read access to the user's email address.
|
|
60
|
-
@param options Options bitmask that informs authorization behavior.
|
|
61
|
-
@param presentingViewController The `UIViewController` to present the login `SFSafariViewController` on
|
|
51
|
+
@param campaign The campaign identifier, to help attribute where the account linking was initiated from.
|
|
62
52
|
See `SPTSessionManagerDelegate` for messages regarding changes in session state.
|
|
63
53
|
*/
|
|
64
54
|
- (void)initiateSessionWithScope:(SPTScope)scope
|
|
65
55
|
options:(SPTAuthorizationOptions)options
|
|
66
|
-
|
|
56
|
+
campaign:(nullable NSString *)campaign;
|
|
67
57
|
|
|
68
58
|
/// Attempt to renew the access token, using the refresh token in the current `SPTSession` which must be valid.
|
|
69
59
|
- (void)renewSession;
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
6
|
+
<array/>
|
|
7
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
8
|
+
<array/>
|
|
9
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
10
|
+
<array/>
|
|
11
|
+
<key>NSPrivacyTracking</key>
|
|
12
|
+
<false/>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Headers/SPTAppRemote.h</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
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
|
-
|
|
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
|
-
|
|
117
|
+
SBxEZidPSxu0kqTbIjqSsm5a77Y=
|
|
118
118
|
</data>
|
|
119
119
|
<key>Headers/SpotifyAppRemote.h</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
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
|
-
/
|
|
129
|
+
dIQEPuwCF05rSz5+JYQt/ZYEQ/8=
|
|
130
130
|
</data>
|
|
131
131
|
<key>Modules/module.modulemap</key>
|
|
132
132
|
<data>
|
|
133
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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>
|
|
354
|
+
<key>hash2</key>
|
|
471
355
|
<data>
|
|
472
|
-
|
|
356
|
+
vR9YKCxR0961pUp2+RjzaFT70qVubKGYzMnmFbHJRXg=
|
|
473
357
|
</data>
|
|
358
|
+
</dict>
|
|
359
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
360
|
+
<dict>
|
|
474
361
|
<key>hash2</key>
|
|
475
362
|
<data>
|
|
476
|
-
|
|
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
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Expo Module for native Spotify SDK",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"files": [
|
|
26
26
|
"plugin/build",
|
|
27
27
|
"build",
|
|
28
|
+
"android",
|
|
29
|
+
"external/android/SpotifySDK/auth-lib/spotify-auth-release-2.1.0.aar",
|
|
28
30
|
"ios",
|
|
29
31
|
"app.plugin.js",
|
|
30
32
|
"expo-module.config.json",
|
|
@@ -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
|
-
|
|
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
|
-
|
|
25
|
+
${manifestPlaceholders}
|
|
11
26
|
}
|
|
12
27
|
}`;
|
|
28
|
+
}
|
|
13
29
|
return config;
|
|
14
30
|
});
|
|
15
31
|
};
|
package/plugin/build/index.js
CHANGED
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.withSpotifyConfigValues = void 0;
|
|
4
4
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
5
|
-
const
|
|
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.
|
|
16
|
+
exports.withSpotifyConfigValues = withSpotifyConfigValues;
|