Skip to content

Commit

Permalink
[YouTube] update extractor to fix YouTube comments not showing
Browse files Browse the repository at this point in the history
2. Fix build due to jcentre shutdown, use forked versions of ExoPlayer and groupie libraries
3. update youtube regex in extractor to fetch webm audio streams (a regression introduced in earlier release)
  • Loading branch information
ShareASmile committed Nov 10, 2024
1 parent 5931b06 commit 4bd56bd
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ android {
// debug build. This seems to be a Gradle bug, therefore
// TODO: update Gradle version
release {
if (System.properties.containsKey('packageSuffix')) {
applicationIdSuffix System.getProperty('packageSuffix')
resValue "string", "app_name", "NewPipe " + System.getProperty('packageSuffix')
archivesBaseName = 'NewPipe_' + System.getProperty('packageSuffix')
}
applicationIdSuffix ".Revo"
resValue "string", "app_name", "NewPipe " + "Revo"
archivesBaseName = 'app'
minifyEnabled true
shrinkResources true // could be disabled to fix F-Droid's reproducible build
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
archivesBaseName = 'app'
applicationIdSuffix ".Revo"
resValue "string", "app_name", "NewPipe " + "Revo"
}
}

Expand Down Expand Up @@ -96,10 +101,10 @@ ext {
icepickVersion = '3.2.0'
stethoVersion = '1.5.1'
leakCanaryVersion = '2.5'
exoPlayerVersion = '2.11.8'
exoPlayerVersion = 'r2.11.8'
androidxLifecycleVersion = '2.2.0'
androidxRoomVersion = '2.2.5'
groupieVersion = '2.8.1'
groupieVersion = '2.9.1'
markwonVersion = '4.6.0'
googleAutoServiceVersion = '1.0-rc7'
}
Expand Down Expand Up @@ -167,7 +172,7 @@ dependencies {
// name and the commit hash with the commit hash of the (pushed) commit you want to test
// This works thanks to JitPack: https://jitpack.io/
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
implementation 'com.github.ShareASmile:NewPipeExtractor:8787d1879dc7f1f8a2145f282ef16ee1103bbe7e'
implementation 'com.github.ShareASmile.NewPipeExtractor:NewPipeExtractor:v0.22.7.3'

/** Third-party libraries **/
// Instance state boilerplate elimination
Expand All @@ -182,16 +187,16 @@ dependencies {
implementation "com.squareup.okhttp3:okhttp:3.12.13"

// Media player
implementation "com.google.android.exoplayer:exoplayer:${exoPlayerVersion}"
implementation "com.google.android.exoplayer:extension-mediasession:${exoPlayerVersion}"
implementation "com.github.ShareASmile.ExoPlayer:library:${exoPlayerVersion}"
implementation "com.github.ShareASmile.ExoPlayer:extension-mediasession:${exoPlayerVersion}"

// Metadata generator for service descriptors
compileOnly "com.google.auto.service:auto-service-annotations:${googleAutoServiceVersion}"
kapt "com.google.auto.service:auto-service:${googleAutoServiceVersion}"

// Manager for complex RecyclerView layouts
implementation "com.xwray:groupie:${groupieVersion}"
implementation "com.xwray:groupie-kotlin-android-extensions:${groupieVersion}"
implementation "com.github.ShareASmile.groupie:groupie:${groupieVersion}"
implementation "com.github.ShareASmile.groupie:groupie-kotlin-android-extensions:${groupieVersion}"

// Circular ImageView
implementation "de.hdodenhof:circleimageview:3.1.0"
Expand Down

0 comments on commit 4bd56bd

Please sign in to comment.