-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on crashlytics (#11)
- Loading branch information
Jesse Crocker
authored
Oct 22, 2020
1 parent
928f361
commit 1475d00
Showing
18 changed files
with
94 additions
and
138 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 |
---|---|---|
|
@@ -27,3 +27,4 @@ DerivedData | |
Podfile.lock | ||
Pods/* | ||
demo/pods/* | ||
TBOOMDetector.xcodeproj/project.xcworkspace |
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,13 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.3.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-merge-conflict | ||
- id: no-commit-to-branch | ||
args: [--branch, master] | ||
- repo: https://github.com/doublify/pre-commit-clang-format | ||
sha: 62302476d0da01515660132d76902359bed0f782 | ||
hooks: | ||
- id: clang-format |
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,12 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.0] - 2020-10-22 | ||
### Changed | ||
- Dependency on crashlytics has been removed, and TBOOMDetector must now be passed a block that will be called to determine if the last session crashed. | ||
- Minimum iOS version has changed to 10.0. | ||
- Code is now formatted with Clang Format using pre-commit hooks. | ||
- Removed cocoapods from demo app. |
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 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,21 +1,22 @@ | ||
# TBOOMDetector | ||
|
||
Detect Out Of Memory events in an iOS app by process of elimination. If we can't figure out why the app is relaunching, it must have been the OOM Killer. For a complete explanation read [this excellent blog post from Facebook](https://code.facebook.com/posts/1146930688654547/reducing-fooms-in-the-facebook-ios-app/). | ||
|
||
Requires crashlytics for detecting crashes. | ||
|
||
Example: | ||
|
||
```objc | ||
TBOOMDetector *oomDetector = [[TBOOMDetector alloc] initWithCrashlyticsApiKey:@"..." | ||
directory:directory | ||
TBOOMDetector *oomDetector = [[TBOOMDetector alloc] initWithDirectory:directory | ||
crashCheck:^BOOL{ | ||
// return [[Crashlytics crashlytics] didCrashDuringPreviousExecution] | ||
return NO; | ||
} | ||
callback:^(TBTerminationType terminationType) { | ||
if(terminationType == TBTerminationTypeBackgroundOom) { | ||
DDLogError(@"Detected Background OOM"); | ||
[Answers logCustomEventWithName:@"OOM Background Crash" | ||
customAttributes:nil]; | ||
} else if(terminationType == TBTerminationTypeForegroundOom) { | ||
DDLogError(@"Detected Foreground OOM"); | ||
[Answers logCustomEventWithName:@"OOM foreground Crash" | ||
customAttributes:nil]; | ||
} | ||
}]; | ||
``` |
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 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 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 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.
Oops, something went wrong.