com.bugsnag.android.gradle.internal.ExternalNativeBuildTaskUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bugsnag-android-gradle-plugin Show documentation
Show all versions of bugsnag-android-gradle-plugin Show documentation
Gradle plugin to automatically upload ProGuard mapping files to Bugsnag.
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