-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
110 lines (92 loc) · 3.79 KB
/
build.gradle.kts
File metadata and controls
110 lines (92 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import com.android.build.gradle.BaseExtension
import com.lagradost.cloudstream3.gradle.CloudstreamExtension
import org.gradle.kotlin.dsl.register
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
buildscript {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
classpath("com.android.tools.build:gradle:8.13.2")
classpath("com.github.recloudstream:gradle:master-SNAPSHOT")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.3.0")
}
}
//json change may need to change in future to remove this
/*
w: file:///home/runner/work/cloudstream-extensions-phisher/cloudstream-extensions-phisher/src/StremioX/src/main/kotlin/com/phisher98/StremioX.kt:478:9 This annotation is currently applied to the value parameter only, but in the future it will also be applied to field.
- To opt in to applying to both value parameter and field, add '-Xannotation-default-target=param-property' to your compiler arguments.
- To keep applying to the value parameter only, use the '@param:' annotation target.
*/
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions {
freeCompilerArgs.add("-Xannotation-default-target=param-property")
}
}
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}
fun Project.cloudstream(configuration: CloudstreamExtension.() -> Unit) = extensions.getByName<CloudstreamExtension>("cloudstream").configuration()
fun Project.android(configuration: BaseExtension.() -> Unit) = extensions.getByName<BaseExtension>("android").configuration()
subprojects {
apply(plugin = "com.android.library")
apply(plugin = "kotlin-android")
apply(plugin = "com.lagradost.cloudstream3.gradle")
cloudstream {
setRepo(System.getenv("GITHUB_REPOSITORY") ?: "https://github.com/phisher98/cloudstream-extensions-phisher")
authors = listOf("Phisher98")
}
android {
namespace = "com.phisher98"
defaultConfig {
minSdk = 21
compileSdkVersion(35)
targetSdk = 35
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinJvmCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
freeCompilerArgs.addAll(
"-Xno-call-assertions",
"-Xno-param-assertions",
"-Xno-receiver-assertions"
)
}
}
}
dependencies {
val implementation by configurations
val cloudstream by configurations
cloudstream("com.lagradost:cloudstream3:pre-release")
// Other dependencies
implementation(kotlin("stdlib"))
implementation("com.github.Blatzar:NiceHttp:0.4.16")
implementation("org.jsoup:jsoup:1.22.1")
implementation("androidx.annotation:annotation:1.9.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.20.1")
implementation("com.fasterxml.jackson.core:jackson-databind:2.20.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2")
implementation("org.mozilla:rhino:1.9.0")
implementation("me.xdrop:fuzzywuzzy:1.4.0")
implementation("com.google.code.gson:gson:2.13.2")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
implementation("com.github.vidstige:jadb:v1.2.1")
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
}
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}