diff --git a/CHANGELOG.md b/CHANGELOG.md index 45d26bfc..3292ba34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## next + +* Android: + * `spotify-auth` SDK is now retrieved via Maven Central instead of being sourced from an AAR file + ## 2.2.0 * iOS and Android * adds SkipToIndex and getCapabilities diff --git a/README.md b/README.md index 76696ab3..2611574c 100644 --- a/README.md +++ b/README.md @@ -30,16 +30,16 @@ This package is using both the spotify-app-remote sdk and spotify-auth library. From the [Spotify Android SDK Quick Start](https://developer.spotify.com/documentation/android/quick-start/). You need two things: 1. Register your app in the [spotify developer portal](https://developer.spotify.com/dashboard/). You also need to create a sha-1 fingerprint and add this and your package name to the app settings on the dashboard as well as a redirect url. -2. download the current [Spotify Android SDK](https://github.com/spotify/android-sdk/releases). Here you need the spotify-app-remote-*.aar and spotify-auth-*.aar. +2. download the current [Spotify Android SDK](https://github.com/spotify/android-sdk/releases). Here you need the spotify-app-remote-*.aar. -After you are all setup you need to add the *.aar files to your Android Project as Modules. See the [Spotify Android SDK Quick Start](https://developer.spotify.com/documentation/android/quick-start/) for detailed information. +After you are all setup you need to add the SDKs *.aar file to your Android Project as Module. See the [Spotify Android SDK Quick Start](https://developer.spotify.com/documentation/android/quick-start/) for detailed information. ##### Installation instructions for Android Studio 4.2+ Since Android Studio 4.2 you need to manually perform these steps in order to add .jar/.aar files: 1. Open the android folder of your flutter project as an Android Studio project -2. In the android root folder create two folders: spotify-app-remote and spotify-auth and place the corresponding aar files and create empty build.gradle files, like on the screenshot below: +2. In the android root folder create a single folder for `spotify-app-remote`, place the corresponding aar file and create an empty build.gradle file, like on the screenshot below: ![image](https://user-images.githubusercontent.com/42183561/125422846-24e03bf0-ec7f-409f-b382-0ef2d0213d08.png) 3. Content of the `spotify-app-remote/build.gradle` file: @@ -47,14 +47,9 @@ Since Android Studio 4.2 you need to manually perform these steps in order to ad configurations.maybeCreate("default") artifacts.add("default", file('spotify-app-remote-release-x.x.x.aar')) ``` -4. Content of the `spotify-auth/build.gradle` file: +4. In the android root folder find `settings.gradle` file, open it and add the following line at the top of the file: ``` -configurations.maybeCreate("default") -artifacts.add("default", file('spotify-auth-release-x.x.x.aar')) -``` -5. In the android root folder find `settings.gradle` file, open it and add the following line at the top of the file: -``` -include ':spotify-auth', ':spotify-app-remote' +include ':spotify-app-remote' ``` ### iOS diff --git a/android/build.gradle b/android/build.gradle index d44cf42c..024f8975 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -44,7 +44,7 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" // -- spotify - implementation project(':spotify-auth') + implementation "com.spotify.android:auth:1.2.6" implementation project(':spotify-app-remote') implementation 'com.google.code.gson:gson:2.8.6' // -- events diff --git a/android/settings.gradle b/android/settings.gradle index 98d1a011..78fc8caa 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,2 +1,2 @@ rootProject.name = 'spotify_sdk' -include ':spotify-auth', ':spotify-app-remote' \ No newline at end of file +include ':spotify-app-remote' \ No newline at end of file diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 888e79e5..849cbc37 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,4 +1,4 @@ -include ':app', ':spotify-auth', ':spotify-app-remote' +include ':app', ':spotify-app-remote' def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() diff --git a/example/android/spotify-auth/build.gradle b/example/android/spotify-auth/build.gradle deleted file mode 100644 index 2ca3f6c3..00000000 --- a/example/android/spotify-auth/build.gradle +++ /dev/null @@ -1,2 +0,0 @@ -configurations.maybeCreate("default") -artifacts.add("default", file('spotify-auth-release-1.2.3.aar')) \ No newline at end of file diff --git a/example/android/spotify-auth/spotify-auth-release-1.2.3.aar b/example/android/spotify-auth/spotify-auth-release-1.2.3.aar deleted file mode 100644 index da309427..00000000 Binary files a/example/android/spotify-auth/spotify-auth-release-1.2.3.aar and /dev/null differ