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/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue