GithubHelp home page GithubHelp logo

Comments (3)

SimonHalvdansson avatar SimonHalvdansson commented on July 30, 2024

What is the relation between this and the PR you posted? And what would be a solution? Does removing the jitpack.io thing as you did in the PR make it so the dependency automatically goes to a good source?

from harmonic-hn.

AppearamidGuy avatar AppearamidGuy commented on July 30, 2024

What is the relation between this and the PR you posted?

Almost none

Does removing the jitpack.io thing as you did in the PR make it so the dependency automatically goes to a good source?

The problem is with JCenter, not with JitPack. Currently build is set up with three repositories that Gradle uses to download libraries (dependencies): Google repo, JCenter, and JitPack. There is one more commonly used repo - Maven Central but Harmonic doesn't use it right now.

Google repo is used only for AGP, androidx libraries and other stuff made by Google, so we can ignore it. Out of remaining three html-textview is published only on JCenter and that's the problem. Some years ago it was fine but since then JCenter was going to shut down and now stays in read-only barely supported mode. So when there's a problem with JCenter, there's no way to download html-textview to build the app.

And what would be a solution?

Approximately from lowest effort to highest:

  • Do nothing. Most of the time JCenter works and the app builds fine, but sometimes it does not and it won't get better.
  • Ask original developer to republish library to Maven Central or to fix build, so it is available on JitPack.
  • Find a fork that is published not on JCenter
  • Fork yourself and fix build with JitPack
  • Fork yourself and publish to Maven Central
  • Copy library's code into the project

NB: while JitPack is a very convenient option there are some reasons it's not supported out of the box, see gradle/gradle#16310 (comment)

from harmonic-hn.

SimonHalvdansson avatar SimonHalvdansson commented on July 30, 2024

Thank you for the very detailed response! Of the very clearly listed solutions listed (thanks again) I went with copying the code into the project - this way it'll be easier to make and changes which could be useful because the library is not bug free. The project was completely abandoned so there was no hope in getting the original developer to do anything I think.

from harmonic-hn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.