-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add frame drop issue generation (#65)
Co-authored-by: kpujjigit <[email protected]> Co-authored-by: Andrew McKnight <[email protected]>
- Loading branch information
1 parent
e6b2126
commit 652ccd7
Showing
18 changed files
with
158 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
brew 'gh' | ||
brew 'rbenv' | ||
brew 'ruby-build' | ||
tap 'getsentry/tools' | ||
brew 'getsentry/tools/sentry-cli' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
EmpowerPlant.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "bigint", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/attaswift/BigInt", | ||
"state" : { | ||
"revision" : "0ed110f7555c34ff468e72e1686e59721f2b0da6", | ||
"version" : "5.3.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "sentry-cocoa", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/getsentry/sentry-cocoa", | ||
"state" : { | ||
"revision" : "008325304ada69fa32aa7aeba967b65984f30569", | ||
"version" : "8.14.2" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
EmpowerPlant.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-101 KB
EmpowerPlant.xcworkspace/xcuserdata/wcap.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
38 changes: 0 additions & 38 deletions
38
EmpowerPlant.xcworkspace/xcuserdata/wcap.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,28 +15,35 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |
|
||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
// Override point for customization after application launch. | ||
|
||
// the Sentry default is to enable swizzling. we'll use that as our default as well. we check for the launch arg to disable swizzling; if it's provided, then we'll disable swizzling. if it's absent, then swizzling will be enabled. | ||
let enableSwizzling = !ProcessInfo.processInfo.arguments.contains("--disable-swizzling") | ||
|
||
SentrySDK.start { options in | ||
options.dsn = "https://[email protected]/6249899" | ||
|
||
// set the SDK debug mode according to defaults and overrides. | ||
#if DEBUG | ||
options.debug = true | ||
// in debug builds, we default to enabling debug mode. the launch arg --no-debug-mode-in-debug-build is a way to override that and turn it off, like if you don't want to see the logs in the xcode console. | ||
options.debug = !ProcessInfo.processInfo.arguments.contains("--no-debug-mode-in-debug-build") | ||
#else | ||
// in release builds, we default to disabling debug mode. the launch arg --debug-mode-in-release-build is a way to override that and turn it on. | ||
options.debug = ProcessInfo.processInfo.arguments.contains("--debug-mode-in-release-build") | ||
#endif | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring. | ||
// We recommend adjusting this value in production. | ||
options.tracesSampleRate = 1.0 | ||
options.profilesSampleRate = 1.0 | ||
options.enableCoreDataTracing = true | ||
options.enableFileIOTracing = true | ||
options.attachScreenshot = true | ||
options.attachViewHierarchy = true | ||
options.enableTimeToFullDisplayTracing = true | ||
options.enableAutoPerformanceTracing = true | ||
options.enableUserInteractionTracing = false | ||
|
||
options.enableSwizzling = enableSwizzling | ||
|
||
} | ||
SentrySDK.configureScope{ scope in | ||
scope.setTag(value: ["corporate", "enterprise", "self-serve"].randomElement() ?? "unknown", key: "customer.type") | ||
scope.setTag(value: ProcessInfo.processInfo.environment["USER"] ?? "tda", key: "se") | ||
scope.setTag(value: "\(enableSwizzling)", key: "enableSwizzling") | ||
} | ||
|
||
if ProcessInfo.processInfo.arguments.contains("--wipe-db") { | ||
|
Oops, something went wrong.