1- import com.android.build.gradle.BaseExtension
1+ import com.android.build.api.dsl.LibraryExtension
22import com.lagradost.cloudstream3.gradle.CloudstreamExtension
3- import org.gradle.kotlin.dsl.register
43import org.jetbrains.kotlin.gradle.dsl.JvmTarget
54import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
65
@@ -12,9 +11,9 @@ buildscript {
1211 }
1312
1413 dependencies {
15- classpath(" com.android.tools.build:gradle:8.13.2 " )
16- classpath(" com.github.recloudstream:gradle:-SNAPSHOT" )
17- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.3 .0" )
14+ classpath(" com.android.tools.build:gradle:9.1.1 " )
15+ classpath(" com.github.recloudstream:gradle:master -SNAPSHOT" )
16+ classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.4 .0" )
1817 }
1918}
2019
@@ -26,13 +25,14 @@ allprojects {
2625 }
2726}
2827
29- fun Project.cloudstream (configuration : CloudstreamExtension .() -> Unit ) = extensions.getByName<CloudstreamExtension >(" cloudstream" ).configuration()
28+ fun Project.cloudstream (configuration : CloudstreamExtension .() -> Unit ) =
29+ extensions.getByType<CloudstreamExtension >().configuration()
3030
31- fun Project.android (configuration : BaseExtension .() -> Unit ) = extensions.getByName<BaseExtension >(" android" ).configuration()
31+ fun Project.android (configuration : LibraryExtension .() -> Unit ) =
32+ extensions.getByType<LibraryExtension >().configuration()
3233
3334subprojects {
3435 apply (plugin = " com.android.library" )
35- apply (plugin = " kotlin-android" )
3636 apply (plugin = " com.lagradost.cloudstream3.gradle" )
3737
3838 cloudstream {
@@ -42,58 +42,60 @@ subprojects {
4242
4343 android {
4444 namespace = " com.miku"
45+ compileSdk = 35
4546
4647 defaultConfig {
4748 minSdk = 21
48- compileSdkVersion(35 )
49- targetSdk = 35
50-
49+ targetSdk = 37
5150 }
5251
5352 compileOptions {
54- sourceCompatibility = JavaVersion .VERSION_1_8
55- targetCompatibility = JavaVersion .VERSION_1_8
53+ sourceCompatibility = JavaVersion .VERSION_18
54+ targetCompatibility = JavaVersion .VERSION_18
5655 }
5756
58-
59- tasks.withType<KotlinJvmCompile > {
57+ tasks.withType<KotlinJvmCompile >().configureEach {
6058 compilerOptions {
61- jvmTarget.set(JvmTarget .JVM_1_8 )
59+ jvmTarget.set(JvmTarget .JVM_18 )
60+
6261 freeCompilerArgs.addAll(
6362 " -Xno-call-assertions" ,
6463 " -Xno-param-assertions" ,
65- " -Xno-receiver-assertions" ,
66- " -Xannotation-default-target=param-property"
64+ " -Xno-receiver-assertions"
6765 )
6866 }
6967 }
7068 }
7169
7270 dependencies {
73- val implementation by configurations
74- val cloudstream by configurations
71+ add(" cloudstream" , " com.lagradost:cloudstream3:pre-release" )
7572
76- // Cloudstream dependencies
77- cloudstream(" com.lagradost:cloudstream3:pre-release" )
78-
79- // Other dependencies
80- implementation(kotlin(" stdlib" ))
81- implementation(" com.github.Blatzar:NiceHttp:0.4.18" )
82- implementation(" org.jsoup:jsoup:1.22.2" )
83- implementation(" androidx.annotation:annotation:1.10.0" )
84- implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.20.1" )
85- implementation(" com.fasterxml.jackson.core:jackson-databind:2.22.0" )
86- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2" )
87- implementation(" org.mozilla:rhino:1.9.0" )
88- implementation(" me.xdrop:fuzzywuzzy:1.4.0" )
89- implementation(" com.google.code.gson:gson:2.14.0" )
90- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0" )
91- implementation(" com.github.vidstige:jadb:v1.3.0" )
92- implementation(" org.bouncycastle:bcpkix-jdk15on:1.70" )
93- implementation(" app.cash.quickjs:quickjs-android:0.9.2" )
73+ // Kotlin & Coroutines
74+ add(" implementation" , kotlin(" stdlib" ))
75+ add(" implementation" , " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0" )
76+ add(" implementation" , " org.jetbrains.kotlinx:kotlinx-coroutines-core:1.11.0" )
77+ add(" implementation" , " org.jetbrains.kotlinx:kotlinx-serialization-json:1.11.0" )
78+
79+ // Network & Scraping
80+ add(" implementation" , " com.github.Blatzar:NiceHttp:0.4.18" )
81+ add(" implementation" , " com.squareup.okhttp3:okhttp:5.4.0" )
82+ add(" implementation" , " org.jsoup:jsoup:1.22.2" )
83+
84+ // JSON Parsing
85+ add(" implementation" , " com.fasterxml.jackson.module:jackson-module-kotlin:2.22.0" )
86+ add(" implementation" , " com.fasterxml.jackson.core:jackson-databind:2.22.0" )
87+ add(" implementation" , " com.google.code.gson:gson:2.14.0" )
88+
89+ // JavaScript Evaluation
90+ add(" implementation" , " com.faendir.rhino:rhino-android:1.6.0" )
91+ add(" implementation" , " app.cash.quickjs:quickjs-android:0.9.2" )
92+
93+ // Utils & Core
94+ add(" implementation" , " me.xdrop:fuzzywuzzy:1.4.0" )
95+ add(" implementation" , " androidx.core:core-ktx:1.19.0" )
9496 }
9597}
9698
9799tasks.register<Delete >(" clean" ) {
98100 delete(rootProject.layout.buildDirectory)
99- }
101+ }
0 commit comments