Skip to content

Commit ad53a57

Browse files
committed
remove attachment example temporarily
1 parent 64544c2 commit ad53a57

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

examples/ExampleApp/app/src/main/kotlin/io/embrace/android/exampleapp/ui/examples/LogMessageAttachmentsExample.kt

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,29 +57,7 @@ fun LogMessageAttachmentsExample() {
5757
}
5858
Spacer(Modifier.padding(8.dp))
5959
Button(onClick = {
60-
val properties = when (includeProps) {
61-
true -> mapOf(
62-
"my_custom_key" to "my_custom_value"
63-
)
64-
else -> null
65-
}
66-
67-
if (hostFileOn3rdPartyServer) {
68-
Embrace.getInstance().logMessage(
69-
message = textValue,
70-
severity = severityValue,
71-
properties = properties,
72-
attachmentId = UUID.randomUUID().toString(),
73-
attachmentUrl = "https://example.com/my-attachment",
74-
)
75-
} else {
76-
Embrace.getInstance().logMessage(
77-
message = textValue,
78-
severity = severityValue,
79-
properties = properties,
80-
attachment = "Hello, world!".toByteArray(),
81-
)
82-
}
60+
TODO("Not supported in 7.0.")
8361
}) {
8462
Text("Send Log")
8563
}

0 commit comments

Comments
 (0)