mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(analytics): enable datadog user interaction tracking (#2848)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
4ad80b019c
commit
bcad1d4a7f
2 changed files with 5 additions and 7 deletions
|
|
@ -15,6 +15,7 @@
|
|||
* 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 java.io.FileInputStream
|
||||
import java.util.Properties
|
||||
|
|
@ -149,7 +150,6 @@ android {
|
|||
}
|
||||
bundle { language { enableSplit = false } }
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
compose = true
|
||||
aidl = true
|
||||
buildConfig = true
|
||||
|
|
@ -182,9 +182,9 @@ secrets {
|
|||
}
|
||||
|
||||
datadog {
|
||||
// compose instrumentation is broken for kotlin 2.2.x - see:
|
||||
// https://github.com/DataDog/dd-sdk-android-gradle-plugin/issues/407
|
||||
// composeInstrumentation = InstrumentationMode.AUTO
|
||||
if (!gradle.startParameter.taskNames.any { it.contains("fdroid", ignoreCase = true) }) {
|
||||
composeInstrumentation = InstrumentationMode.AUTO
|
||||
}
|
||||
}
|
||||
|
||||
// per protobuf-gradle-plugin docs, this is recommended for android
|
||||
|
|
|
|||
|
|
@ -176,9 +176,7 @@ abstract class GeeksvilleApplication :
|
|||
.trackFrustrations(true)
|
||||
.trackLongTasks()
|
||||
.trackNonFatalAnrs(true)
|
||||
// Re-enable tracking when auto instrumentation available. See note in `app/build.gradle`
|
||||
.disableUserInteractionTracking()
|
||||
// .trackUserInteractions()
|
||||
.trackUserInteractions()
|
||||
.enableComposeActionTracking()
|
||||
.build()
|
||||
Rum.enable(rumConfiguration)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue