mirror of
https://github.com/recloudstream/cloudstream.git
synced 2025-08-24 03:07:23 +08:00
fix dokka & newpipe build issue (#1326)
This commit is contained in:
4
.github/workflows/generate_dokka.yml
vendored
4
.github/workflows/generate_dokka.yml
vendored
@ -55,11 +55,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/src/
|
cd $GITHUB_WORKSPACE/src/
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew app:dokkaHtml
|
./gradlew docs:dokkaHtml
|
||||||
|
|
||||||
- name: Copy Dokka
|
- name: Copy Dokka
|
||||||
run: |
|
run: |
|
||||||
cp -r $GITHUB_WORKSPACE/src/app/build/dokka/html/* $GITHUB_WORKSPACE/dokka/
|
cp -r $GITHUB_WORKSPACE/src/docs/build/dokka/html/* $GITHUB_WORKSPACE/dokka/
|
||||||
|
|
||||||
- name: Push builds
|
- name: Push builds
|
||||||
run: |
|
run: |
|
||||||
|
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@ -10,6 +10,7 @@
|
|||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
<option value="$PROJECT_DIR$/app" />
|
<option value="$PROJECT_DIR$/app" />
|
||||||
|
<option value="$PROJECT_DIR$/docs" />
|
||||||
<option value="$PROJECT_DIR$/library" />
|
<option value="$PROJECT_DIR$/library" />
|
||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
|
6
.idea/studiobot.xml
generated
Normal file
6
.idea/studiobot.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="StudioBotProjectSettings">
|
||||||
|
<option name="shareContext" value="OptedOut" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -1,9 +1,7 @@
|
|||||||
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
|
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
|
||||||
import org.jetbrains.dokka.gradle.DokkaTask
|
|
||||||
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
|
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import java.net.URL
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
@ -152,10 +150,6 @@ android {
|
|||||||
namespace = "com.lagradost.cloudstream3"
|
namespace = "com.lagradost.cloudstream3"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
maven("https://jitpack.io")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Testing
|
// Testing
|
||||||
testImplementation("junit:junit:4.13.2")
|
testImplementation("junit:junit:4.13.2")
|
||||||
@ -204,7 +198,7 @@ dependencies {
|
|||||||
// PlayBack
|
// PlayBack
|
||||||
implementation("com.jaredrummler:colorpicker:1.1.0") // Subtitle Color Picker
|
implementation("com.jaredrummler:colorpicker:1.1.0") // Subtitle Color Picker
|
||||||
implementation("com.github.recloudstream:media-ffmpeg:1.1.0") // Custom FF-MPEG Lib for Audio Codecs
|
implementation("com.github.recloudstream:media-ffmpeg:1.1.0") // Custom FF-MPEG Lib for Audio Codecs
|
||||||
implementation("com.github.teamnewpipe:NewPipeExtractor:176da72") /* For Trailers
|
implementation("com.github.teamnewpipe:NewPipeExtractor:v0.24.2") /* For Trailers
|
||||||
^ Update to Latest Commits if Trailers Misbehave, github.com/TeamNewPipe/NewPipeExtractor/commits/dev */
|
^ Update to Latest Commits if Trailers Misbehave, github.com/TeamNewPipe/NewPipeExtractor/commits/dev */
|
||||||
implementation("com.github.albfernandez:juniversalchardet:2.5.0") // Subtitle Decoding
|
implementation("com.github.albfernandez:juniversalchardet:2.5.0") // Subtitle Decoding
|
||||||
|
|
||||||
@ -283,22 +277,4 @@ tasks.withType<KotlinCompile> {
|
|||||||
jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility")
|
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<DokkaTask>().configureEach {
|
|
||||||
moduleName.set("Cloudstream")
|
|
||||||
dokkaSourceSets {
|
|
||||||
named("main") {
|
|
||||||
sourceLink {
|
|
||||||
// Unix based directory relative path to the root of the project (where you execute gradle respectively).
|
|
||||||
localDirectory.set(file("src/main/java"))
|
|
||||||
|
|
||||||
// URL showing where the source code can be accessed through the web browser
|
|
||||||
remoteUrl.set(URL("https://github.com/recloudstream/cloudstream/tree/master/app/src/main/java"))
|
|
||||||
|
|
||||||
// Suffix which is used to append the line number to the URL. Use #L for GitHub
|
|
||||||
remoteLineSuffix.set("#L")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -17,6 +17,8 @@ allprojects {
|
|||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
mavenLocal()
|
||||||
|
maven("https://jitpack.io")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -26,4 +28,4 @@ plugins {
|
|||||||
|
|
||||||
//tasks.register<Delete>("clean") {
|
//tasks.register<Delete>("clean") {
|
||||||
// delete(rootProject.layout.buildDirectory)
|
// delete(rootProject.layout.buildDirectory)
|
||||||
//}
|
//}
|
1
docs/.gitignore
vendored
Normal file
1
docs/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/build
|
109
docs/build.gradle.kts
Normal file
109
docs/build.gradle.kts
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
import org.jetbrains.dokka.gradle.DokkaTask
|
||||||
|
import java.net.URL
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("com.android.library")
|
||||||
|
id("kotlin-android")
|
||||||
|
id("org.jetbrains.dokka")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdk = 34
|
||||||
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdk = 21
|
||||||
|
targetSdk = 33
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace = "com.lagradost.api"
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val dokkaImplementation by configurations.creating {
|
||||||
|
// This ensures you can access artifacts
|
||||||
|
isCanBeResolved = true
|
||||||
|
isTransitive = true
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
dokkaImplementation("androidx.test.ext:junit-ktx:1.2.1")
|
||||||
|
dokkaImplementation("androidx.core:core-ktx:1.13.1")
|
||||||
|
dokkaImplementation("androidx.appcompat:appcompat:1.7.0")
|
||||||
|
dokkaImplementation("androidx.navigation:navigation-ui-ktx:2.7.7")
|
||||||
|
dokkaImplementation("androidx.lifecycle:lifecycle-livedata-ktx:2.8.3")
|
||||||
|
dokkaImplementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.3")
|
||||||
|
dokkaImplementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
|
||||||
|
dokkaImplementation("jp.wasabeef:glide-transformations:4.3.0")
|
||||||
|
dokkaImplementation("androidx.preference:preference-ktx:1.2.1")
|
||||||
|
dokkaImplementation("com.google.android.material:material:1.12.0")
|
||||||
|
dokkaImplementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||||
|
dokkaImplementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
||||||
|
dokkaImplementation("com.github.bumptech.glide:glide:4.16.0")
|
||||||
|
dokkaImplementation("com.github.bumptech.glide:okhttp3-integration:4.16.0")
|
||||||
|
dokkaImplementation("com.google.guava:guava:33.2.1-android")
|
||||||
|
dokkaImplementation("dev.zacsweers.autoservice:auto-service-ksp:1.2.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-ui:1.4.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-cast:1.4.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-common:1.4.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-session:1.4.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-exoplayer:1.4.0")
|
||||||
|
dokkaImplementation("com.google.android.mediahome:video:1.0.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-exoplayer-hls:1.4.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-exoplayer-dash:1.4.0")
|
||||||
|
dokkaImplementation("androidx.media3:media3-datasource-okhttp:1.4.0")
|
||||||
|
dokkaImplementation("com.jaredrummler:colorpicker:1.1.0") // Subtitle Color Picker
|
||||||
|
dokkaImplementation("com.github.recloudstream:media-ffmpeg:1.1.0") // Custom FF-MPEG Lib for Audio Codecs
|
||||||
|
dokkaImplementation("com.github.teamnewpipe:NewPipeExtractor:v0.24.2")
|
||||||
|
dokkaImplementation("com.github.albfernandez:juniversalchardet:2.5.0") // Subtitle Decoding
|
||||||
|
dokkaImplementation("ch.acra:acra-core:5.11.3")
|
||||||
|
dokkaImplementation("ch.acra:acra-toast:5.11.3")
|
||||||
|
dokkaImplementation("com.facebook.shimmer:shimmer:0.5.0") // Shimmering Effect (Loading Skeleton)
|
||||||
|
dokkaImplementation("androidx.palette:palette-ktx:1.0.0") // Palette For Images -> Colors
|
||||||
|
dokkaImplementation("androidx.tvprovider:tvprovider:1.0.0")
|
||||||
|
dokkaImplementation("com.github.discord:OverlappingPanels:0.1.5") // Gestures
|
||||||
|
dokkaImplementation("androidx.biometric:biometric:1.2.0-alpha05") // Fingerprint Authentication
|
||||||
|
dokkaImplementation("com.github.rubensousa:previewseekbar-media3:1.1.1.0") // SeekBar Preview
|
||||||
|
dokkaImplementation("io.github.g0dkar:qrcode-kotlin:4.2.0") // QR code for PIN Auth on TV
|
||||||
|
dokkaImplementation("org.mozilla:rhino:1.7.15") // run JavaScript
|
||||||
|
dokkaImplementation("me.xdrop:fuzzywuzzy:1.4.0") // Library/Ext Searching with Levenshtein Distance
|
||||||
|
dokkaImplementation("com.github.LagradOst:SafeFile:0.0.6") // To Prevent the URI File Fu*kery
|
||||||
|
dokkaImplementation("org.conscrypt:conscrypt-android:2.5.2") // To Fix SSL Fu*kery on Android 9
|
||||||
|
dokkaImplementation("com.uwetrottmann.tmdb2:tmdb-java:2.11.0") // TMDB API v3 Wrapper Made with RetroFit
|
||||||
|
dokkaImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.1")
|
||||||
|
dokkaImplementation("androidx.work:work-runtime:2.9.0")
|
||||||
|
dokkaImplementation("androidx.work:work-runtime-ktx:2.9.0")
|
||||||
|
dokkaImplementation("com.github.Blatzar:NiceHttp:0.4.11") // HTTP Lib
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.withType<DokkaTask>().configureEach {
|
||||||
|
dokkaSourceSets {
|
||||||
|
moduleName = "Cloudstream"
|
||||||
|
register("cloudstream") {
|
||||||
|
listOf("androidMain", "commonMain").forEach { srcName ->
|
||||||
|
sourceRoot("../library/src/$srcName/kotlin")
|
||||||
|
}
|
||||||
|
sourceRoot(file("../app/src/main/java"))
|
||||||
|
|
||||||
|
classpath.from(android.bootClasspath)
|
||||||
|
classpath.from(dokkaImplementation.files)
|
||||||
|
|
||||||
|
sourceLink {
|
||||||
|
localDirectory = file("..")
|
||||||
|
remoteUrl = URL("https://github.com/recloudstream/cloudstream/tree/master")
|
||||||
|
remoteLineSuffix = "#L"
|
||||||
|
}
|
||||||
|
|
||||||
|
dokkaImplementation.dependencies.forEach {
|
||||||
|
externalDocumentationLink {
|
||||||
|
url = URL("https://javadoc.io/doc/${it.group}/${it.name}/${it.version}")
|
||||||
|
packageListUrl = URL("https://javadoc.io/doc/${it.group}/${it.name}/${it.version}/package-list")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
library/.gitignore
vendored
Normal file
1
library/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/build
|
@ -27,16 +27,11 @@ kotlin {
|
|||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0")
|
||||||
implementation("me.xdrop:fuzzywuzzy:1.4.0") // Match extractors
|
implementation("me.xdrop:fuzzywuzzy:1.4.0") // Match extractors
|
||||||
implementation("org.mozilla:rhino:1.7.15") // run JavaScript
|
implementation("org.mozilla:rhino:1.7.15") // run JavaScript
|
||||||
implementation("com.github.teamnewpipe:NewPipeExtractor:176da72")
|
implementation("com.github.teamnewpipe:NewPipeExtractor:v0.24.2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenLocal()
|
|
||||||
maven("https://jitpack.io")
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
|
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
rootProject.name = "CloudStream"
|
rootProject.name = "CloudStream"
|
||||||
|
|
||||||
include(":app")
|
include(":app")
|
||||||
include(":library")
|
include(":library")
|
||||||
|
include(":docs")
|
Reference in New Issue
Block a user