1- import com.android.build.api.dsl.LibraryExtension
1+ import com.android.build.gradle.BaseExtension
22import com.lagradost.cloudstream3.gradle.CloudstreamExtension
33import org.gradle.kotlin.dsl.register
44import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -12,9 +12,9 @@ buildscript {
1212 }
1313
1414 dependencies {
15- classpath(" com.android.tools.build:gradle:9.2.1 " )
15+ classpath(" com.android.tools.build:gradle:8.13.2 " )
1616 classpath(" com.github.recloudstream:gradle:-SNAPSHOT" )
17- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.4 .0" )
17+ classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.3 .0" )
1818 }
1919}
2020
@@ -27,10 +27,12 @@ allprojects {
2727}
2828
2929fun Project.cloudstream (configuration : CloudstreamExtension .() -> Unit ) = extensions.getByName<CloudstreamExtension >(" cloudstream" ).configuration()
30- fun Project.android (configuration : LibraryExtension .() -> Unit ) = extensions.getByName<LibraryExtension >(" android" ).configuration()
30+
31+ fun Project.android (configuration : BaseExtension .() -> Unit ) = extensions.getByName<BaseExtension >(" android" ).configuration()
3132
3233subprojects {
3334 apply (plugin = " com.android.library" )
35+ apply (plugin = " kotlin-android" )
3436 apply (plugin = " com.lagradost.cloudstream3.gradle" )
3537
3638 cloudstream {
@@ -40,17 +42,20 @@ subprojects {
4042
4143 android {
4244 namespace = " com.miku"
43- compileSdk = 35
4445
4546 defaultConfig {
4647 minSdk = 21
48+ compileSdkVersion(35 )
49+ targetSdk = 35
50+
4751 }
4852
4953 compileOptions {
5054 sourceCompatibility = JavaVersion .VERSION_1_8
5155 targetCompatibility = JavaVersion .VERSION_1_8
5256 }
5357
58+
5459 tasks.withType<KotlinJvmCompile > {
5560 compilerOptions {
5661 jvmTarget.set(JvmTarget .JVM_1_8 )
@@ -65,8 +70,8 @@ subprojects {
6570 }
6671
6772 dependencies {
68- val implementation = configurations.getByName( " implementation " )
69- val cloudstream = configurations.getByName( " cloudstream " )
73+ val implementation by configurations
74+ val cloudstream by configurations
7075
7176 // Cloudstream dependencies
7277 cloudstream(" com.lagradost:cloudstream3:pre-release" )
@@ -76,18 +81,18 @@ subprojects {
7681 implementation(" com.github.Blatzar:NiceHttp:0.4.18" )
7782 implementation(" org.jsoup:jsoup:1.22.2" )
7883 implementation(" androidx.annotation:annotation:1.10.0" )
79- implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.22.0 " )
84+ implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.20.1 " )
8085 implementation(" com.fasterxml.jackson.core:jackson-databind:2.22.0" )
8186 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2" )
82- implementation(" org.mozilla:rhino:1.9.1 " )
87+ implementation(" org.mozilla:rhino:1.9.0 " )
8388 implementation(" me.xdrop:fuzzywuzzy:1.4.0" )
8489 implementation(" com.google.code.gson:gson:2.14.0" )
85- implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.11 .0" )
90+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.9 .0" )
8691 implementation(" com.github.vidstige:jadb:v1.3.0" )
8792 implementation(" org.bouncycastle:bcpkix-jdk15on:1.70" )
8893 }
8994}
9095
9196tasks.register<Delete >(" clean" ) {
9297 delete(rootProject.layout.buildDirectory)
93- }
98+ }
0 commit comments