-
Notifications
You must be signed in to change notification settings - Fork 8
/
UninitializedSdkInternalInterfaceImpl.kt
88 lines (67 loc) · 2.69 KB
/
UninitializedSdkInternalInterfaceImpl.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package io.embrace.android.embracesdk
import android.annotation.SuppressLint
import io.embrace.android.embracesdk.internal.EmbraceInternalInterface
import io.embrace.android.embracesdk.internal.InternalTracingApi
import io.embrace.android.embracesdk.internal.network.http.NetworkCaptureData
import io.embrace.android.embracesdk.network.EmbraceNetworkRequest
@SuppressLint("EmbracePublicApiPackageRule")
internal class UninitializedSdkInternalInterfaceImpl(
internalTracer: InternalTracingApi
) : EmbraceInternalInterface, InternalTracingApi by internalTracer {
override fun logInfo(message: String, properties: Map<String, Any>?) {}
override fun logWarning(message: String, properties: Map<String, Any>?, stacktrace: String?) {}
override fun logError(message: String, properties: Map<String, Any>?, stacktrace: String?, isException: Boolean) {}
@Suppress("DEPRECATION")
override fun logHandledException(
throwable: Throwable,
type: LogType,
properties: Map<String, Any>?,
customStackTrace: Array<StackTraceElement>?
) {
}
override fun recordCompletedNetworkRequest(
url: String,
httpMethod: String,
startTime: Long,
endTime: Long,
bytesSent: Long,
bytesReceived: Long,
statusCode: Int,
traceId: String?,
networkCaptureData: NetworkCaptureData?
) {
}
override fun recordIncompleteNetworkRequest(
url: String,
httpMethod: String,
startTime: Long,
endTime: Long,
error: Throwable?,
traceId: String?,
networkCaptureData: NetworkCaptureData?
) {
}
override fun recordIncompleteNetworkRequest(
url: String,
httpMethod: String,
startTime: Long,
endTime: Long,
errorType: String?,
errorMessage: String?,
traceId: String?,
networkCaptureData: NetworkCaptureData?
) {
}
override fun recordNetworkRequest(embraceNetworkRequest: EmbraceNetworkRequest) {}
override fun logComposeTap(point: Pair<Float, Float>, elementName: String) {}
override fun shouldCaptureNetworkBody(url: String, method: String): Boolean = false
override fun setProcessStartedByNotification() {}
override fun isNetworkSpanForwardingEnabled(): Boolean = false
override fun getSdkCurrentTime(): Long = System.currentTimeMillis()
override fun isInternalNetworkCaptureDisabled(): Boolean = false
override fun isAnrCaptureEnabled(): Boolean = false
override fun isNdkEnabled(): Boolean = false
override fun logInternalError(message: String?, details: String?) {}
override fun logInternalError(error: Throwable) {}
override fun stopSdk() {}
}