Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ import Foundation
func anrStopped(result: SentryANRStoppedResult?)
}

@objcMembers
@_spi(Private) public final class SentryANRStoppedResult: NSObject {
@objc @_spi(Private) public final class SentryANRStoppedResult: NSObject {

public let minDuration: TimeInterval
public let maxDuration: TimeInterval
let minDuration: TimeInterval
let maxDuration: TimeInterval

public init(minDuration: TimeInterval, maxDuration: TimeInterval) {
init(minDuration: TimeInterval, maxDuration: TimeInterval) {
self.minDuration = minDuration
self.maxDuration = maxDuration
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

import UIKit

@objcMembers
@_spi(Private) public final class SentryDefaultViewRenderer: NSObject, SentryViewRenderer {
public func render(view: UIView) -> UIImage {
final class SentryDefaultViewRenderer: NSObject, SentryViewRenderer {
func render(view: UIView) -> UIImage {
let image = UIGraphicsImageRenderer(size: view.bounds.size).image { _ in
view.drawHierarchy(in: view.bounds, afterScreenUpdates: false)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@

import UIKit

@objcMembers
@_spi(Private) public final class SentryViewRendererV2: NSObject, SentryViewRenderer {
final class SentryViewRendererV2: NSObject, SentryViewRenderer {
let enableFastViewRendering: Bool

public init(enableFastViewRendering: Bool) {
init(enableFastViewRendering: Bool) {
self.enableFastViewRendering = enableFastViewRendering
}

public func render(view: UIView) -> UIImage {
func render(view: UIView) -> UIImage {
let scale = (view as? UIWindow ?? view.window)?.screen.scale ?? 1
let image = SentryGraphicsImageRenderer(size: view.bounds.size, scale: scale).image { context in
if enableFastViewRendering {
Expand Down
1 change: 0 additions & 1 deletion Sources/Swift/Protocol/SentryLog.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/// A structured log entry that captures log data with associated attribute metadata.
///
/// Use the `options.beforeSendLog` callback to modify or filter log data.
@objc
@objcMembers
public final class SentryLog: NSObject {
/// Alias for `SentryAttribute` to maintain backward compatibility after `SentryLog.Attribute` was renamed to `SentryAttribute`.
Expand Down
Loading