Cocoapods: fix local path to downloaded and extracted pod archive.
This commit is contained in:
+1
-4
@@ -354,10 +354,7 @@ abstract class CocoapodsExtension @Inject constructor(private val project: Proje
|
|||||||
@get:Input var isAllowInsecureProtocol: Boolean
|
@get:Input var isAllowInsecureProtocol: Boolean
|
||||||
) : PodLocation() {
|
) : PodLocation() {
|
||||||
override fun getLocalPath(project: Project, podName: String): String {
|
override fun getLocalPath(project: Project, podName: String): String {
|
||||||
val fileName = url.toString().substringAfterLast("/")
|
return project.cocoapodsBuildDirs.externalSources("url").resolve(podName).absolutePath
|
||||||
val extension = PodDownloadUrlTask.getFileExtension(fileName) ?: error("Unknown file extension: $fileName")
|
|
||||||
val dirName = fileName.substringBeforeLast(".$extension")
|
|
||||||
return project.cocoapodsBuildDirs.externalSources("url").resolve(podName).resolve(dirName).absolutePath
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user