Comments (3)
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.
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.
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)
- Deprecate Nitter integration HOT 1
- Can't remove unloading item from bookmarks HOT 3
- WebView crashes if Harmonic waits too long on the background. HOT 2
- Search locally askHN comments HOT 4
- Add option for pagination
- Cap scroll animation length HOT 2
- Push Tag HOT 1
- Post translator support
- Comment header HOT 2
- Polls not showing when coming from Algolia (search/submissions) HOT 1
- Comment count disappearing when doing fold/unfold HOT 1
- Folded comment count not updating HOT 1
- Clarify vote direction in toast HOT 2
- Question: Comment search and archive.org only available with WebView HOT 12
- Unable to open link when replying to a comment HOT 2
- Says Algolia is down, while HN is down but not algolia
- Don't truncate links in select text view
- Feature request: see posts I upvoted
- Feature Request: Android home screen widget
- very long wikipedia summary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harmonic-hn.