Skip to content

Commit 1ed53c7

Browse files
authored
feat(Android): Add screenshots for View Hierarchy (#7087)
1 parent de35a08 commit 1ed53c7

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
![View Hierarchy Example](viewhierarchy-example-android.png)

src/platform-includes/enriching-events/attach-viewhierarchy/android.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ plugins {
2222

2323
```kotlin {filename:app/build.gradle.kts}
2424
plugins {
25-
id("io.sentry.kotlin.compiler.gradle") version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.0.0') }}"
25+
id("io.sentry.kotlin.compiler.gradle") version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.7.0') }}"
2626
}
2727
```

src/platforms/android/common/kotlin-compiler-plugin.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ Kotlin Compiler plugins are executed during compilation and thus need to be appl
5151

5252
```groovy {filename:app/build.gradle}
5353
plugins {
54-
id "io.sentry.kotlin.compiler.gradle" version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.0.0') }}"
54+
id "io.sentry.kotlin.compiler.gradle" version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.7.0') }}"
5555
}
5656
```
5757

5858
```kotlin {filename:app/build.gradle.kts}
5959
plugins {
60-
id("io.sentry.kotlin.compiler.gradle") version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.0.0') }}"
60+
id("io.sentry.kotlin.compiler.gradle") version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.7.0') }}"
6161
}
6262
```
6363

src/platforms/android/common/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,13 @@ The <PlatformLink to="/kotlin-compiler-plugin/">Sentry Kotlin Compiler Plugin</P
289289

290290
```groovy {filename:app/build.gradle}
291291
plugins {
292-
id "io.sentry.kotlin.compiler.gradle" version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.0.0') }}"
292+
id "io.sentry.kotlin.compiler.gradle" version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.7.0') }}"
293293
}
294294
```
295295

296296
```kotlin {filename:app/build.gradle.kts}
297297
plugins {
298-
id("io.sentry.kotlin.compiler.gradle") version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.0.0') }}"
298+
id("io.sentry.kotlin.compiler.gradle") version "{{@inject packages.version('sentry.kotlin.compiler-plugin', '3.7.0') }}"
299299
}
300300
```
301301

src/platforms/common/enriching-events/viewhierarchy.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,16 @@ View hierarchies appear in the "Attachments" tab, where you can view all attachm
5050

5151
On the **Issue Details** page, you can interact with the view hierarchy attachment in a section called "View Hierarchy". This section represents the state of your application at the time of an error event. There are three displays: a tree view, wireframe, and detailed view for a selected node. You can select nodes in either the tree or the wireframe to view the properties collected by the SDK. The SDK will report on the following keys for each node in the view: `alpha`, `visible`, `x`, `y`, `width`, `height`, `type`, and `identifier` if applicable, but there may be additional values specific to the SDK. This feature can be used as an exploratory tool to debug layout issues, visualize unnecessarily rendered content, or gain a better understanding of the relationship between views.
5252

53+
<PlatformSection supported={["android"]}>
54+
<PlatformContent includePath="enriching-events/attach-viewhierarchy-example" />
55+
</PlatformSection>
56+
57+
<PlatformSection notSupported={["android"]}>
58+
5359
![View Hierarchy Example](viewhierarchy-example.png)
5460

61+
</PlatformSection>
62+
5563
<PlatformSection supported={["react-native"]}>
5664

5765
## View Hierarchy Mapping to React Native Components

0 commit comments

Comments
 (0)