kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
feat(analytics): enable datadog user interaction tracking (#2848)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>pull/2851/head
rodzic
4ad80b019c
commit
bcad1d4a7f
|
|
@ -15,6 +15,7 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import com.datadog.gradle.plugin.InstrumentationMode
|
||||||
import io.gitlab.arturbosch.detekt.Detekt
|
import io.gitlab.arturbosch.detekt.Detekt
|
||||||
import java.io.FileInputStream
|
import java.io.FileInputStream
|
||||||
import java.util.Properties
|
import java.util.Properties
|
||||||
|
|
@ -149,7 +150,6 @@ android {
|
||||||
}
|
}
|
||||||
bundle { language { enableSplit = false } }
|
bundle { language { enableSplit = false } }
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
viewBinding = true
|
|
||||||
compose = true
|
compose = true
|
||||||
aidl = true
|
aidl = true
|
||||||
buildConfig = true
|
buildConfig = true
|
||||||
|
|
@ -182,9 +182,9 @@ secrets {
|
||||||
}
|
}
|
||||||
|
|
||||||
datadog {
|
datadog {
|
||||||
// compose instrumentation is broken for kotlin 2.2.x - see:
|
if (!gradle.startParameter.taskNames.any { it.contains("fdroid", ignoreCase = true) }) {
|
||||||
// https://github.com/DataDog/dd-sdk-android-gradle-plugin/issues/407
|
composeInstrumentation = InstrumentationMode.AUTO
|
||||||
// composeInstrumentation = InstrumentationMode.AUTO
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// per protobuf-gradle-plugin docs, this is recommended for android
|
// per protobuf-gradle-plugin docs, this is recommended for android
|
||||||
|
|
|
||||||
|
|
@ -176,9 +176,7 @@ abstract class GeeksvilleApplication :
|
||||||
.trackFrustrations(true)
|
.trackFrustrations(true)
|
||||||
.trackLongTasks()
|
.trackLongTasks()
|
||||||
.trackNonFatalAnrs(true)
|
.trackNonFatalAnrs(true)
|
||||||
// Re-enable tracking when auto instrumentation available. See note in `app/build.gradle`
|
.trackUserInteractions()
|
||||||
.disableUserInteractionTracking()
|
|
||||||
// .trackUserInteractions()
|
|
||||||
.enableComposeActionTracking()
|
.enableComposeActionTracking()
|
||||||
.build()
|
.build()
|
||||||
Rum.enable(rumConfiguration)
|
Rum.enable(rumConfiguration)
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue