[KT-53392] Cocoapods: add deprecation for the direct pod urls.
This commit is contained in:
committed by
Space
parent
3cb4b8ddda
commit
fdac190511
+1
@@ -313,6 +313,7 @@ abstract class CocoapodsExtension @Inject constructor(private val project: Proje
|
|||||||
* @param flatten does archive contains subdirectory that needs to be expanded
|
* @param flatten does archive contains subdirectory that needs to be expanded
|
||||||
* @param isAllowInsecureProtocol enables communication with a repository over an insecure HTTP connection.
|
* @param isAllowInsecureProtocol enables communication with a repository over an insecure HTTP connection.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated("Will be removed in a 1.8 version. Use pods published as a git repository instead")
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun url(url: String, flatten: Boolean = false, isAllowInsecureProtocol: Boolean = false): PodLocation = Url(URI(url), flatten, isAllowInsecureProtocol)
|
fun url(url: String, flatten: Boolean = false, isAllowInsecureProtocol: Boolean = false): PodLocation = Url(URI(url), flatten, isAllowInsecureProtocol)
|
||||||
|
|
||||||
|
|||||||
+6
-5
@@ -458,12 +458,13 @@ open class KotlinCocoapodsPlugin : Plugin<Project> {
|
|||||||
it.podName = project.provider { pod.name.asValidTaskName() }
|
it.podName = project.provider { pod.name.asValidTaskName() }
|
||||||
it.podSource = project.provider<Git> { podSource }
|
it.podSource = project.provider<Git> { podSource }
|
||||||
}
|
}
|
||||||
|
is Url -> {
|
||||||
is Url -> project.tasks.register(pod.toPodDownloadTaskName, PodDownloadUrlTask::class.java) {
|
SingleWarningPerBuild.show(project, "Direct pod downloading by url will be removed in a 1.8 version. Use pods published as a git repository instead.")
|
||||||
it.podName = project.provider { pod.name.asValidTaskName() }
|
project.tasks.register(pod.toPodDownloadTaskName, PodDownloadUrlTask::class.java) {
|
||||||
it.podSource = project.provider<Url> { podSource }
|
it.podName = project.provider { pod.name.asValidTaskName() }
|
||||||
|
it.podSource = project.provider<Url> { podSource }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> return@all
|
else -> return@all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user