|
1 | | -import com.lagradost.cloudstream3.gradle.CloudstreamExtension |
2 | 1 | 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 |
3 | 5 |
|
4 | 6 | buildscript { |
5 | 7 | repositories { |
6 | 8 | google() |
7 | 9 | mavenCentral() |
8 | | - // Shitpack repo which contains our tools and dependencies |
| 10 | + // Jitpack repo which contains our tools and dependencies |
9 | 11 | maven("https://jitpack.io") |
10 | 12 | } |
11 | 13 |
|
@@ -44,43 +46,43 @@ subprojects { |
44 | 46 |
|
45 | 47 | defaultConfig { |
46 | 48 | minSdk = 21 |
47 | | - compileSdkVersion(33) |
48 | | - targetSdk = 33 |
| 49 | + compileSdkVersion(35) |
| 50 | + targetSdk = 35 |
49 | 51 | } |
50 | 52 |
|
51 | 53 | compileOptions { |
52 | 54 | sourceCompatibility = JavaVersion.VERSION_1_8 |
53 | 55 | targetCompatibility = JavaVersion.VERSION_1_8 |
54 | 56 | } |
55 | 57 |
|
56 | | - tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { |
57 | | - kotlinOptions { |
58 | | - jvmTarget = "1.8" // Required |
59 | | - // Disables some unnecessary features |
60 | | - freeCompilerArgs = freeCompilerArgs + |
61 | | - "-Xno-call-assertions" + |
62 | | - "-Xno-param-assertions" + |
63 | | - "-Xno-receiver-assertions" |
| 58 | + tasks.withType<KotlinJvmCompile> { |
| 59 | + compilerOptions { |
| 60 | + jvmTarget.set(JvmTarget.JVM_1_8) // Required |
| 61 | + freeCompilerArgs.addAll( |
| 62 | + "-Xno-call-assertions", |
| 63 | + "-Xno-param-assertions", |
| 64 | + "-Xno-receiver-assertions" |
| 65 | + ) |
64 | 66 | } |
65 | 67 | } |
66 | 68 | } |
67 | 69 |
|
68 | 70 | dependencies { |
69 | | - val apk by configurations |
| 71 | + val cloudstream by configurations |
70 | 72 | val implementation by configurations |
71 | 73 |
|
72 | | - // Stubs for all Cloudstream classes |
73 | | - apk("com.lagradost:cloudstream3:pre-release") |
| 74 | + // Stubs for all cloudstream classes |
| 75 | + cloudstream("com.lagradost:cloudstream3:pre-release") |
74 | 76 |
|
75 | | - // these dependencies can include any of those which are added by the app, |
76 | | - // but you dont need to include any of them if you dont need them |
77 | | - // https://github.com/recloudstream/cloudstream/blob/master/app/build.gradle |
78 | | - implementation(kotlin("stdlib")) // adds standard kotlin features |
79 | | - implementation("com.github.Blatzar:NiceHttp:0.4.13") // http library |
80 | | - implementation("org.jsoup:jsoup:1.18.1") // html parser |
81 | | - implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.2") |
82 | | - implementation("com.fasterxml.jackson.core:jackson-databind:2.17.2") |
83 | | - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") |
| 77 | + // These dependencies can include any of those which are added by the app, |
| 78 | + // but you don't need to include any of them if you don't need them. |
| 79 | + // https://github.com/recloudstream/cloudstream/blob/master/app/build.gradle.kts |
| 80 | + implementation(kotlin("stdlib")) // Adds Standard Kotlin Features |
| 81 | + implementation("com.github.Blatzar:NiceHttp:0.4.13") // HTTP Lib |
| 82 | + implementation("org.jsoup:jsoup:1.21.2") // HTML Parser |
| 83 | + // IMPORTANT: Do not bump Jackson above 2.13.1, as newer versions will |
| 84 | + // break compatibility on older Android devices. |
| 85 | + implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.0") // JSON Parser |
84 | 86 | } |
85 | 87 | } |
86 | 88 |
|
|
0 commit comments