1- import com.lagradost.cloudstream3.gradle.CloudstreamExtension
21import 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
46buildscript {
57 repositories {
@@ -10,10 +12,10 @@ buildscript {
1012 }
1113
1214 dependencies {
13- classpath(" com.android.tools.build:gradle:7.0.4 " )
15+ classpath(" com.android.tools.build:gradle:8.7.3 " )
1416 // Cloudstream gradle plugin which makes everything work and builds plugins
1517 classpath(" com.github.recloudstream:gradle:-SNAPSHOT" )
16- classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21 " )
18+ classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0 " )
1719 }
1820}
1921
@@ -41,45 +43,47 @@ subprojects {
4143 }
4244
4345 android {
46+ namespace = " recloudstream"
47+
4448 defaultConfig {
4549 minSdk = 21
46- compileSdkVersion(33 )
47- targetSdk = 33
50+ compileSdkVersion(35 )
51+ targetSdk = 35
4852 }
4953
5054 compileOptions {
5155 sourceCompatibility = JavaVersion .VERSION_1_8
5256 targetCompatibility = JavaVersion .VERSION_1_8
5357 }
5458
55- tasks.withType< org.jetbrains.kotlin.gradle.tasks. KotlinCompile > {
56- kotlinOptions {
57- jvmTarget = " 1.8 " // Required
58- // Disables some unnecessary features
59- freeCompilerArgs = freeCompilerArgs +
60- " -Xno-call -assertions" +
61- " -Xno-param -assertions" +
62- " -Xno-receiver-assertions "
59+ tasks.withType<KotlinJvmCompile > {
60+ compilerOptions {
61+ jvmTarget.set( JvmTarget . JVM_1_8 ) // Required
62+ freeCompilerArgs.addAll(
63+ " -Xno-call-assertions " ,
64+ " -Xno-param -assertions" ,
65+ " -Xno-receiver -assertions"
66+ )
6367 }
6468 }
6569 }
6670
6771 dependencies {
68- val apk by configurations
72+ val cloudstream by configurations
6973 val implementation by configurations
7074
71- // Stubs for all Cloudstream classes
72- apk (" com.lagradost:cloudstream3:pre-release" )
75+ // Stubs for all cloudstream classes
76+ cloudstream (" com.lagradost:cloudstream3:pre-release" )
7377
74- // these dependencies can include any of those which are added by the app,
75- // but you dont need to include any of them if you dont need them
76- // https://github.com/recloudstream/cloudstream/blob/master/app/build.gradle
77- implementation(kotlin(" stdlib" )) // adds standard kotlin features, like listOf, mapOf etc
78- implementation(" com.github.Blatzar:NiceHttp:0.4.11" ) // http library
79- implementation(" org.jsoup:jsoup:1.16.2 " ) // html parser
78+ // These dependencies can include any of those which are added by the app,
79+ // but you don't need to include any of them if you don't need them.
80+ // https://github.com/recloudstream/cloudstream/blob/master/app/build.gradle.kts
81+ implementation(kotlin(" stdlib" )) // Adds Standard Kotlin Features
82+ implementation(" com.github.Blatzar:NiceHttp:0.4.11" ) // HTTP Lib
83+ implementation(" org.jsoup:jsoup:1.18.3 " ) // HTML Parser
8084 }
8185}
8286
8387task<Delete >(" clean" ) {
84- delete(rootProject.buildDir )
85- }
88+ delete(rootProject.layout.buildDirectory )
89+ }
0 commit comments