Skip to content

Commit 96d49d5

Browse files
Last Sync: 2025-12-24 05:57 (Mobile)
1 parent 4c0ba94 commit 96d49d5

1 file changed

Lines changed: 41 additions & 35 deletions

File tree

build.gradle.kts

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import com.lagradost.cloudstream3.gradle.CloudstreamExtension
21
import com.android.build.gradle.BaseExtension
2+
import com.lagradost.cloudstream3.gradle.CloudstreamExtension
3+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
4+
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
35

46
buildscript {
57
repositories {
68
google()
79
mavenCentral()
8-
// Shitpack repo which contains our tools and dependencies
910
maven("https://jitpack.io")
1011
}
1112

1213
dependencies {
13-
classpath("com.android.tools.build:gradle:8.7.3")
14-
// Cloudstream gradle plugin which makes everything work and builds plugins
15-
classpath("com.github.recloudstream:gradle:-SNAPSHOT")
14+
classpath("com.android.tools.build:gradle:8.7.3") // Jangan diganti ke versi terbaru, karena ada masalah dengan versi terbaru
15+
classpath("com.github.recloudstream:gradle:master-SNAPSHOT")
1616
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
1717
}
1818
}
@@ -25,6 +25,7 @@ allprojects {
2525
}
2626
}
2727

28+
2829
fun Project.cloudstream(configuration: CloudstreamExtension.() -> Unit) = extensions.getByName<CloudstreamExtension>("cloudstream").configuration()
2930

3031
fun Project.android(configuration: BaseExtension.() -> Unit) = extensions.getByName<BaseExtension>("android").configuration()
@@ -35,60 +36,65 @@ subprojects {
3536
apply(plugin = "com.lagradost.cloudstream3.gradle")
3637

3738
cloudstream {
38-
// when running through github workflow, GITHUB_REPOSITORY should contain current repository name
39-
setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/hexated/cloudstream-extensions-hexated")
39+
setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/HatsuneMikuUwU/cloudstream-extensions-uwu")
40+
authors = listOf("UwU")
41+
}
4042

41-
authors = listOf("Hexated")
42-
}
4343

4444
android {
45-
namespace = "com.hexated"
45+
namespace = "com.uwu"
4646

4747
defaultConfig {
4848
minSdk = 21
4949
compileSdkVersion(35)
5050
targetSdk = 35
51+
5152
}
5253

5354
compileOptions {
5455
sourceCompatibility = JavaVersion.VERSION_1_8
5556
targetCompatibility = JavaVersion.VERSION_1_8
5657
}
5758

58-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
59-
kotlinOptions {
60-
jvmTarget = "1.8" // Required
61-
// Disables some unnecessary features
62-
freeCompilerArgs = freeCompilerArgs +
63-
"-Xno-call-assertions" +
64-
"-Xno-param-assertions" +
65-
"-Xno-receiver-assertions"
59+
60+
tasks.withType<KotlinJvmCompile> {
61+
compilerOptions {
62+
jvmTarget.set(JvmTarget.JVM_1_8)
63+
freeCompilerArgs.addAll(
64+
"-Xno-call-assertions",
65+
"-Xno-param-assertions",
66+
"-Xno-receiver-assertions"
67+
)
6668
}
6769
}
6870
}
6971

7072
dependencies {
71-
val apk by configurations
73+
val cloudstream by configurations
7274
val implementation by configurations
73-
74-
// Stubs for all Cloudstream classes
75-
apk("com.lagradost:cloudstream3:pre-release")
76-
77-
// these dependencies can include any of those which are added by the app,
78-
// but you dont need to include any of them if you dont need them
79-
// https://github.com/recloudstream/cloudstream/blob/master/app/build.gradle
80-
81-
implementation(kotlin("stdlib")) // adds standard kotlin features, like listOf, mapOf etc
82-
implementation("com.github.Blatzar:NiceHttp:0.4.13") // http library
83-
implementation("org.jsoup:jsoup:1.18.3") // html parser
84-
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
85-
implementation("io.karn:khttp-android:0.1.2")
86-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0")
87-
implementation("org.mozilla:rhino:1.7.14") //run JS
75+
76+
// Cloudstream dependencies
77+
cloudstream("com.lagradost:cloudstream3:pre-release")
78+
79+
// Other dependencies
80+
implementation(kotlin("stdlib")) // Untuk Kotlin Standard Library
81+
implementation("com.github.Blatzar:NiceHttp:0.4.13") // Untuk HTTP requests
82+
implementation("org.jsoup:jsoup:1.18.3") // Untuk parsing HTML
83+
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.0") // JANGAN DIGANTI ke versi terbaru, karena ada masalah dengan versi terbaru
84+
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.0") // Untuk serialisasi/deserialisasi JSON
85+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1") // Untuk coroutines di Android
86+
implementation("com.faendir.rhino:rhino-android:1.6.0") // Untuk JavaScript engine
87+
implementation("me.xdrop:fuzzywuzzy:1.4.0") // Untuk fuzzy matching
88+
implementation("com.google.code.gson:gson:2.11.0") // Untuk serialisasi/deserialisasi JSON
89+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") // Untuk serialisasi/deserialisasi JSON
90+
implementation("app.cash.quickjs:quickjs-android:0.9.2") // Untuk JavaScript engine
91+
implementation("com.squareup.okhttp3:okhttp:4.12.0") // Untuk HTTP requests
92+
implementation("androidx.core:core-ktx:1.16.0") // Untuk Log dan utilitas Android
93+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") // Untuk coroutines
8894

8995
}
9096
}
9197

9298
task<Delete>("clean") {
93-
delete(rootProject.buildDir)
99+
delete(rootProject.layout.buildDirectory)
94100
}

0 commit comments

Comments
 (0)