mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
fix class cast exception?
This commit is contained in:
parent
b33cad4ce8
commit
75355b1517
3 changed files with 13 additions and 7 deletions
|
@ -24,6 +24,7 @@ dependencies {
|
|||
compileOnly("com.google.guava:guava:30.1.1-jre")
|
||||
compileOnly("com.android.tools:sdk-common:30.0.0")
|
||||
compileOnly("com.android.tools.build:gradle:7.2.2")
|
||||
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
|
||||
|
||||
implementation("com.github.Aliucord.dex2jar:dex-translator:d5a5efb06c")
|
||||
implementation("com.github.Aliucord.jadx:jadx-core:1a213e978d")
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.gradle.api.Project
|
|||
import org.gradle.api.tasks.AbstractCopyTask
|
||||
import org.gradle.api.tasks.bundling.Zip
|
||||
import org.gradle.api.tasks.compile.AbstractCompile
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
const val TASK_GROUP = "cloudstream"
|
||||
|
||||
|
@ -27,12 +28,16 @@ fun registerTasks(project: Project) {
|
|||
|
||||
it.pluginClassFile.set(pluginClassFile)
|
||||
|
||||
for (name in arrayOf("compileDebugJavaWithJavac", "compileDebugKotlin")) {
|
||||
val task = project.tasks.findByName(name) as AbstractCompile?
|
||||
if (task != null) {
|
||||
it.dependsOn(task)
|
||||
it.input.from(task.destinationDirectory)
|
||||
}
|
||||
val kotlinTask = project.tasks.findByName("compileDebugKotlin") as KotlinCompile?
|
||||
if (kotlinTask != null) {
|
||||
it.dependsOn(kotlinTask)
|
||||
it.input.from(kotlinTask.destinationDirectory)
|
||||
}
|
||||
|
||||
val javacTask = project.tasks.findByName("compileDebugJavaWithJavac") as AbstractCompile?
|
||||
if (javacTask != null) {
|
||||
it.dependsOn(javacTask)
|
||||
it.input.from(javacTask.destinationDirectory)
|
||||
}
|
||||
|
||||
it.outputFile.set(intermediates.resolve("classes.dex"))
|
||||
|
|
Loading…
Reference in a new issue