Skip to content

Commit 325c07d

Browse files
TobiGrStypox
andcommitted
Use Piped's fork of nanojson for better performance
Also, our fork of nanojson was outdated, while FireMasterK's is not Use nanojson without fastutil Co-authored-by: Stypox <[email protected]>
1 parent 0b99100 commit 325c07d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ allprojects {
2727
}
2828

2929
ext {
30-
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
30+
// When updating nanojson from FireMasterK's fork, take the last commit that does not use
31+
// fastutil, since we don't want to add fastutil as a dependency of NewPipeExtractor.
32+
nanojsonVersion = "f0493317e52614f296bcb491d7838b7c6e5823e6"
3133
jsr305Version = "3.0.2"
3234
junitVersion = "5.12.1"
3335
checkstyleVersion = "10.4"

extractor/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ ext {
2929
dependencies {
3030
implementation project(':timeago-parser')
3131

32-
implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
3332
implementation 'org.jsoup:jsoup:1.19.1'
33+
implementation "com.github.FireMasterK:nanojson:$nanojsonVersion"
3434
implementation "com.google.code.findbugs:jsr305:$jsr305Version"
3535

3636
implementation "org.mozilla:rhino:$rhinoVersion"

timeago-parser/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dependencies {
2-
implementation "com.github.TeamNewPipe:nanojson:$nanojsonVersion"
2+
implementation "com.github.FireMasterK:nanojson:$nanojsonVersion"
33
implementation "com.google.code.findbugs:jsr305:$jsr305Version"
44
}

0 commit comments

Comments
 (0)