You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/api/EmbraceBytecodeInstrumentation.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ abstract class EmbraceBytecodeInstrumentation @Inject internal constructor(objec
14
14
* Global flag that overrides all others & decides whether Embrace should perform any bytecode instrumentation.
15
15
* Defaults to true.
16
16
*/
17
-
val enabled:Property<Boolean> = objectFactory.property(Boolean::class.java)
17
+
val enabled:Property<Boolean> = objectFactory.property(Boolean::class.java).convention(true)
18
18
19
19
/**
20
20
* Whether Embrace should automatically instrument OkHttp requests. Defaults to true.
Copy file name to clipboardExpand all lines: embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/buildreporter/BuildTelemetryService.kt
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,16 @@ abstract class BuildTelemetryService :
25
25
interfaceParams : BuildServiceParameters {
26
26
val request:Property<BuildTelemetryRequest>
27
27
val baseUrl:Property<String>
28
+
val telemetryDisabled:Property<Boolean>
28
29
}
29
30
30
31
/**
31
32
* It gets called moments before build is about to finish.
32
33
*/
33
34
overridefunclose() {
35
+
if (parameters.telemetryDisabled.get()) {
36
+
return
37
+
}
34
38
val networkService =OkHttpNetworkService(parameters.baseUrl.get())
Copy file name to clipboardExpand all lines: embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/config/InstrumentationBehaviorImpl.kt
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,24 +14,28 @@ class InstrumentationBehaviorImpl(
Copy file name to clipboardExpand all lines: embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/tasks/il2cpp/Il2CppUploadTaskRegistration.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ class Il2CppUploadTaskRegistration : EmbraceTaskRegistration {
Copy file name to clipboardExpand all lines: embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/tasks/ndk/NdkUploadTaskRegistration.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ class NdkUploadTaskRegistration(
Copy file name to clipboardExpand all lines: embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/tasks/r8/JvmMappingUploadTaskRegistration.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ class JvmMappingUploadTaskRegistration : EmbraceTaskRegistration {
0 commit comments