Skip to content

Commit 0bb0f83

Browse files
Last Sync: 2025-12-24 03:47 (Mobile)
1 parent bf9beba commit 0bb0f83

1 file changed

Lines changed: 44 additions & 32 deletions

File tree

build.gradle.kts

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
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-
// Repository JitPack untuk tools dan dependensi
910
maven("https://jitpack.io")
1011
}
1112

1213
dependencies {
13-
classpath("com.android.tools.build:gradle:8.2.2") // Versi AGP yang stabil
14-
// FIX: Tambahkan 'master-' sebelum SNAPSHOT
15-
classpath("com.github.recloudstream:gradle:master-SNAPSHOT")
16-
// Disarankan Kotlin 1.9.23 agar kompatibel dengan Cloudstream saat ini
17-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
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:-SNAPSHOT")
16+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
1817
}
1918
}
2019

@@ -36,7 +35,6 @@ subprojects {
3635
apply(plugin = "com.lagradost.cloudstream3.gradle")
3736

3837
cloudstream {
39-
// Jika berjalan di GitHub workflow, gunakan variabel environment repository
4038
setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/hexated/cloudstream-extensions-hexated")
4139
authors = listOf("Hexated")
4240
}
@@ -45,44 +43,58 @@ subprojects {
4543
namespace = "com.hexated"
4644

4745
defaultConfig {
48-
minSdk = 21
49-
// FIX: Gunakan sintaks property, bukan method
50-
compileSdk = 35
46+
minSdk = 26
47+
compileSdkVersion(35)
5148
targetSdk = 35
49+
5250
}
5351

5452
compileOptions {
5553
sourceCompatibility = JavaVersion.VERSION_1_8
5654
targetCompatibility = JavaVersion.VERSION_1_8
5755
}
5856

59-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
60-
kotlinOptions {
61-
jvmTarget = "1.8"
62-
freeCompilerArgs = freeCompilerArgs +
63-
"-Xno-call-assertions" +
64-
"-Xno-param-assertions" +
65-
"-Xno-receiver-assertions"
57+
58+
tasks.withType<KotlinJvmCompile> {
59+
compilerOptions {
60+
jvmTarget.set(JvmTarget.JVM_1_8)
61+
freeCompilerArgs.addAll(
62+
"-Xno-call-assertions",
63+
"-Xno-param-assertions",
64+
"-Xno-receiver-assertions"
65+
)
66+
allWarningsAsErrors.set(false)
6667
}
6768
}
6869
}
6970

7071
dependencies {
71-
// FIX: Gunakan 'compileOnly' atau 'cloudstream' configuration secara eksplisit
72-
// untuk menghindari error "Configuration not found"
73-
add("cloudstream", "com.lagradost:cloudstream3:pre-release")
74-
75-
implementation(kotlin("stdlib"))
76-
implementation("com.github.Blatzar:NiceHttp:0.4.13")
77-
implementation("org.jsoup:jsoup:1.18.3")
78-
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
79-
implementation("io.karn:khttp-android:0.1.2")
80-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0")
81-
implementation("org.mozilla:rhino:1.7.14")
72+
val cloudstream by configurations
73+
val implementation by configurations
74+
75+
// Cloudstream dependencies
76+
cloudstream("com.lagradost:cloudstream3:pre-release")
77+
78+
// Other dependencies
79+
implementation(kotlin("stdlib")) // Untuk Kotlin Standard Library
80+
implementation("com.github.Blatzar:NiceHttp:0.4.13") // Untuk HTTP requests
81+
implementation("org.jsoup:jsoup:1.19.1") // Untuk parsing HTML
82+
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.0") // JANGAN DIGANTI ke versi terbaru, karena ada masalah dengan versi terbaru
83+
implementation("com.fasterxml.jackson.core:jackson-databind:2.16.0") // Untuk serialisasi/deserialisasi JSON
84+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1") // Untuk coroutines di Android
85+
implementation("org.mozilla:rhino:1.8.0") // Untuk JavaScript engine
86+
implementation("me.xdrop:fuzzywuzzy:1.4.0") // Untuk fuzzy matching
87+
implementation("com.google.code.gson:gson:2.11.0") // Untuk serialisasi/deserialisasi JSON
88+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0") // Untuk serialisasi/deserialisasi JSON
89+
implementation("app.cash.quickjs:quickjs-android:0.9.2") // Untuk JavaScript engine
90+
implementation("com.squareup.okhttp3:okhttp:4.12.0") // Untuk HTTP requests
91+
implementation("androidx.core:core-ktx:1.16.0") // Untuk Log dan utilitas Android
92+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") // Untuk coroutines
93+
8294
}
8395
}
8496

85-
// Task clean standar
86-
tasks.register<Delete>("clean") {
87-
delete(rootProject.buildDir)
97+
task<Delete>("clean") {
98+
delete(rootProject.layout.buildDirectory)
8899
}
100+

0 commit comments

Comments
 (0)