[Gradle] Fix warnings in GenerateArtifactPodspecTask
^KT-56904 In Progress
This commit is contained in:
committed by
Space Team
parent
de504c9e93
commit
8833193349
+3
-3
@@ -40,7 +40,7 @@ abstract class GenerateArtifactPodspecTask : DefaultTask() {
|
||||
abstract val specName: Property<String>
|
||||
|
||||
@get:Input
|
||||
abstract val specVersion: Property<String?>
|
||||
abstract val specVersion: Property<String>
|
||||
|
||||
@get:OutputDirectory
|
||||
abstract val destinationDir: DirectoryProperty
|
||||
@@ -134,8 +134,8 @@ abstract class GenerateArtifactPodspecTask : DefaultTask() {
|
||||
put(specNameKey, specName.get())
|
||||
}
|
||||
|
||||
if (!attributes.get().containsKey(specVersionKey)) {
|
||||
specVersion.get()?.let { put(specVersionKey, it) }
|
||||
if (!attributes.get().containsKey(specVersionKey) && specVersion.isPresent) {
|
||||
put(specVersionKey, specVersion.get())
|
||||
}
|
||||
|
||||
if (vendoredKeys.none { attributes.get().containsKey(it) }) {
|
||||
|
||||
Reference in New Issue
Block a user