ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.12k stars 1.56k forks source link

Jitpack.io is down. Is there a way around using it? #1578

Closed cellis closed 3 years ago

cellis commented 3 years ago

Version

Tell us which versions you are using:

Platform

Android

Expected behaviour

While building a release, expect it to complete successfully with an APK file.

Actual behaviour

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseAssets'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
   > Could not resolve com.github.yalantis:ucrop:2.2.6-native.
     Required by:
         project :app > project :react-native-image-crop-picker
      > Could not resolve com.github.yalantis:ucrop:2.2.6-native.
         > Could not get resource 'https://www.jitpack.io/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom'.
            > Could not GET 'https://www.jitpack.io/com/github/yalantis/ucrop/2.2.6-native/ucrop-2.2.6-native.pom'.
               > Read timed out

Steps to reproduce

  1. Create new CRA native project

  2. Attempt to build with no jitpack repo cache

Attachments

See here: https://github.com/jitpack/jitpack.io/issues/4539

mickamy commented 3 years ago

Guess you can publish it to mavenLocal and use it in your project. Clone com.github.yalantis:ucrop:2.2.6-native and run ./gradlew publishToMavenLocal. And in your project build.gradle, add following lines.

allprojects {
    repositories {
        mavenLocal()
        // other maven repos...
    }
}

https://docs.gradle.org/current/userguide/publishing_maven.html

If you were to build it on CI or somewhere, you can build the module as a .jar file and include it in your project.

tommeier commented 3 years ago

https://twitter.com/jitpack/status/1389766485057363968?s=20

Seanmclem commented 2 years ago

I had to update react-native-braintree-dropin-ui to the latest version, with something like yarn upgrade react-native-braintree-dropin-ui