All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugsnag.android.gradle.internal.ExternalNativeBuildTaskUtil.kt Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
package com.bugsnag.android.gradle.internal

import com.android.build.gradle.tasks.ExternalNativeBuildTask
import org.gradle.api.provider.Provider

object ExternalNativeBuildTaskUtil {
    fun findSearchPath(buildTask: Provider) =
        buildTask.flatMap { it.soFolder }.map { soFolder ->
            soFolder.asFile.parentFile.parentFile.takeIf { it.parentFile.name == "cxx" }
                ?: soFolder.asFile.parentFile.parentFile.parentFile.takeIf { it.parentFile.name == "cxx" }
                ?: soFolder.asFile
        }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy