
com.instana.android.plugin.IgnoredClasses.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-agent-plugin Show documentation
Show all versions of android-agent-plugin Show documentation
Gather end-user Android app performance data
The newest version!
/*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2021
*/
package com.instana.android.plugin
import org.gradle.api.logging.Logger
object IgnoredClasses {
val instanaLibraries = Regex("com\\.instana\\.android\\..*")
val troublesomeAnalytics = listOf(
Regex("com\\.appsflyer\\..*"),
Regex("com\\.google\\.android\\.gms\\.internal\\.(?!ads\\.).*"),
Regex("com\\.google\\.firebase\\..*"),
Regex("com\\.instabug\\.library\\..*"),
Regex("com\\.newrelic\\..*"),
Regex("androidx\\.window\\.embedding\\.EmbeddingAdapter.*"),
)
fun from(list: List, logger: Logger): List {
return list.map { it.replace("/","\\.") }
.mapNotNull {
try {
Regex(it)
} catch (e: Throwable) {
logger.error("Invalid regex provided to ignoreClassesRegex: $it")
null
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy