From 0b668b0100934fe5a228c65131913d38d084a466 Mon Sep 17 00:00:00 2001 From: C10udburst <18114966+C10udburst@users.noreply.github.com> Date: Thu, 4 Aug 2022 09:58:18 +0200 Subject: [PATCH] fixes --- .../lagradost/gradle/tasks/GenSourcesTask.kt | 4 +-- .../com/lagradost/gradle/tasks/Tasks.kt | 28 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/kotlin/com/lagradost/gradle/tasks/GenSourcesTask.kt b/src/main/kotlin/com/lagradost/gradle/tasks/GenSourcesTask.kt index fc55d29..5f756da 100644 --- a/src/main/kotlin/com/lagradost/gradle/tasks/GenSourcesTask.kt +++ b/src/main/kotlin/com/lagradost/gradle/tasks/GenSourcesTask.kt @@ -1,6 +1,6 @@ package com.lagradost.gradle.tasks -import com.cloudstream.gradle.getCloudstream +import com.lagradost.gradle.getCloudstream import jadx.api.JadxArgs import jadx.api.JadxDecompiler import jadx.api.impl.NoOpCodeCache @@ -13,7 +13,7 @@ import java.util.function.Function abstract class GenSourcesTask : DefaultTask() { @TaskAction fun genSources() { - val extension = project.extensions.getAliucord() + val extension = project.extensions.getCloudstream() val apkinfo = extension.apkinfo!! val sourcesJarFile = apkinfo.cache.resolve("cloudstream-${apkinfo.version}-sources.jar") diff --git a/src/main/kotlin/com/lagradost/gradle/tasks/Tasks.kt b/src/main/kotlin/com/lagradost/gradle/tasks/Tasks.kt index 5e6260d..2010516 100644 --- a/src/main/kotlin/com/lagradost/gradle/tasks/Tasks.kt +++ b/src/main/kotlin/com/lagradost/gradle/tasks/Tasks.kt @@ -1,6 +1,6 @@ package com.lagradost.gradle.tasks -import com.cloudstream.gradle.getCloudstream +import com.lagradost.gradle.getCloudstream import com.android.build.gradle.BaseExtension import com.android.build.gradle.tasks.ProcessLibraryManifest import groovy.json.JsonBuilder @@ -43,21 +43,21 @@ fun registerTasks(project: Project) { val compileDexTask = compileDex.get() it.dependsOn(compileDexTask) - it.doFirst { - require(project.version != "unspecified") { - "No version is set" - } + // it.doFirst { + // require(project.version != "unspecified") { + // "No version is set" + // } - if (extension.pluginClassName == null) { - if (pluginClassFile.exists()) { - extension.pluginClassName = pluginClassFile.readText() - } - } + // if (extension.pluginClassName == null) { + // if (pluginClassFile.exists()) { + // extension.pluginClassName = pluginClassFile.readText() + // } + // } - require(extension.pluginClassName != null) { - "No plugin class found, make sure your plugin class is annotated with @CloudstreamPlugin" - } - } + // require(extension.pluginClassName != null) { + // "No plugin class found, make sure your plugin class is annotated with @CloudstreamPlugin" + // } + // } it.from(compileDexTask.outputFile) it.into(project.buildDir)