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)