mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
fixes
This commit is contained in:
parent
e0239f1e4c
commit
0b668b0100
2 changed files with 16 additions and 16 deletions
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue