unsplash / unsplash-photopicker-android

📱An Android photo picker to search and download photos from Unsplash.
MIT License
336 stars 62 forks source link

Move off of Bintray and onto Maven Central #11

Open masqueNada opened 3 years ago

masqueNada commented 3 years ago

Issue:

As of May 1st, Bintray is sunsetted and this library went down with it. https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

Builds are now failing with:

Execution failed for task ':app:dataBindingMergeGenClassesAppStore'.
> Could not resolve all files for configuration ':app:appStoreCompileClasspath'.
   > Could not resolve com.unsplash.pickerandroid:photopicker:1.0.0.
     Required by:
         project :app
      > Could not resolve com.unsplash.pickerandroid:photopicker:1.0.0.
         > Could not get resource 'https://dl.bintray.com/unsplash/unsplash-photopicker-android/com/unsplash/pickerandroid/photopicker/1.0.0/photopicker-1.0.0.pom'.
            > Could not GET 'https://dl.bintray.com/unsplash/unsplash-photopicker-android/com/unsplash/pickerandroid/photopicker/1.0.0/photopicker-1.0.0.pom'. Received status code 403 from server: Forbidden
      > Could not resolve com.unsplash.pickerandroid:photopicker:1.0.0.
         > Could not get resource 'https://dl.bintray.com/apollographql/android/com/unsplash/pickerandroid/photopicker/1.0.0/photopicker-1.0.0.pom'.
            > Could not GET 'https://dl.bintray.com/apollographql/android/com/unsplash/pickerandroid/photopicker/1.0.0/photopicker-1.0.0.pom'. Received status code 403 from server: Forbidden

Suggested fix:

Please move off of it and distribute the library on Maven Central instead.

avi-yadav commented 3 years ago

Do we have any solutions meanwhile?

Ynnck123 commented 3 years ago

Is this library still maintained? If yes, please provide the library on another platform

ocollet commented 3 years ago

Hi, so sorry for the lack of update.

I just removed references to Binary in the repo and updated the instructions in the README file, to use JitPack. I'll look into moving it to Maven Central in the future.

Let me know if this is working or not for you.

imramsuthakar commented 3 years ago

The solution for the above issue is

allprojects { repositories { google() // maven { url "https://dl.bintray.com/unsplash/unsplash-photopicker-android" } // Need to remove the code here } }

== then build.gradle app

// implementation 'com.unsplash.pickerandroid:photopicker:1.0.0' ==> Remove this one implementation 'com.github.unsplash:unsplash-photopicker-android:1.0.0' ==> Add this one

Hope it will help!