Skip to content

Commit 4af64f6

Browse files
committed
Merge branch 'master' into feat/1777-no-session-update-for-dropped-events
* master: build(deps): bump github/codeql-action from 2.1.31 to 2.1.32 (#2386) build(deps): bump fastlane from 2.210.1 to 2.211.0 (#2385) ref: json serialization error reporting (#2355) release: 7.31.0 ref: Fix outdated comment in SessionTracker (#2381) fix: Do not delete the app state (#2382) build: Split Swift and Clang format for pre-commit (#2380)
2 parents a774225 + 278625e commit 4af64f6

File tree

20 files changed

+179
-96
lines changed

20 files changed

+179
-96
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v3
2323

2424
- name: Initialize CodeQL
25-
uses: github/codeql-action/init@c3b6fce4ee2ca25bc1066aa3bf73962fda0e8898 # pin@v2
25+
uses: github/codeql-action/init@4238421316c33d73aeea2801274dd286f157c2bb # pin@v2
2626
with:
2727
languages: ${{ matrix.language }}
2828

@@ -35,4 +35,4 @@ jobs:
3535
-destination platform="iOS Simulator,OS=latest,name=iPhone 11 Pro"
3636
3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@c3b6fce4ee2ca25bc1066aa3bf73962fda0e8898 # pin@v2
38+
uses: github/codeql-action/analyze@4238421316c33d73aeea2801274dd286f157c2bb # pin@v2

.pre-commit-config.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,18 @@ repos:
1616

1717
- repo: local
1818
hooks:
19-
- id: clang-format
20-
name: Clang Format
19+
- id: format-clang
20+
name: Format ObjC, ObjC++, C, and C++
2121
entry: make
2222
language: system
23-
types_or: ["objective-c", "objective-c++", "c", "c++", "swift" ]
23+
types_or: ["objective-c", "objective-c++", "c", "c++"]
2424
args:
25-
- "format"
25+
- "format-clang"
26+
27+
- id: format-swift
28+
name: Format Swift
29+
entry: make
30+
language: system
31+
types_or: ["swift" ]
32+
args:
33+
- "format-swift"

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- Don't increase session's error count for dropped events (#2374)
8+
9+
## 7.31.0
10+
511
### Features
612

713
- Store breadcrumbs to disk for OOM events (#2347)
@@ -10,7 +16,7 @@
1016
### Fixes
1117

1218
- Too long flush duration (#2370)
13-
- Don't increase session's error count for dropped events (#2374)
19+
- Do not delete the app state when OOM tracking is disabled. The app state is needed to determine the app start type on the next app start. (#2382)
1420

1521
## 7.30.2
1622

Gemfile.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ GEM
1717
artifactory (3.0.15)
1818
atomos (0.1.3)
1919
aws-eventstream (1.2.0)
20-
aws-partitions (1.644.0)
21-
aws-sdk-core (3.159.0)
20+
aws-partitions (1.660.0)
21+
aws-sdk-core (3.167.0)
2222
aws-eventstream (~> 1, >= 1.0.2)
23-
aws-partitions (~> 1, >= 1.525.0)
24-
aws-sigv4 (~> 1.1)
23+
aws-partitions (~> 1, >= 1.651.0)
24+
aws-sigv4 (~> 1.5)
2525
jmespath (~> 1, >= 1.6.1)
26-
aws-sdk-kms (1.58.0)
27-
aws-sdk-core (~> 3, >= 3.127.0)
26+
aws-sdk-kms (1.59.0)
27+
aws-sdk-core (~> 3, >= 3.165.0)
2828
aws-sigv4 (~> 1.1)
29-
aws-sdk-s3 (1.114.0)
30-
aws-sdk-core (~> 3, >= 3.127.0)
29+
aws-sdk-s3 (1.117.1)
30+
aws-sdk-core (~> 3, >= 3.165.0)
3131
aws-sdk-kms (~> 1)
3232
aws-sigv4 (~> 1.4)
3333
aws-sigv4 (1.5.2)
@@ -86,7 +86,7 @@ GEM
8686
escape (0.0.4)
8787
ethon (0.15.0)
8888
ffi (>= 1.15.0)
89-
excon (0.93.0)
89+
excon (0.94.0)
9090
faraday (1.10.2)
9191
faraday-em_http (~> 1.0)
9292
faraday-em_synchrony (~> 1.0)
@@ -116,7 +116,7 @@ GEM
116116
faraday_middleware (1.2.0)
117117
faraday (~> 1.0)
118118
fastimage (2.2.6)
119-
fastlane (2.210.1)
119+
fastlane (2.211.0)
120120
CFPropertyList (>= 2.3, < 4.0.0)
121121
addressable (>= 2.8, < 3.0.0)
122122
artifactory (~> 3.0)
@@ -161,9 +161,9 @@ GEM
161161
fourflusher (2.3.1)
162162
fuzzy_match (2.0.4)
163163
gh_inspector (1.1.3)
164-
google-apis-androidpublisher_v3 (0.29.0)
165-
google-apis-core (>= 0.9.0, < 2.a)
166-
google-apis-core (0.9.0)
164+
google-apis-androidpublisher_v3 (0.31.0)
165+
google-apis-core (>= 0.9.1, < 2.a)
166+
google-apis-core (0.9.1)
167167
addressable (~> 2.5, >= 2.5.1)
168168
googleauth (>= 0.16.2, < 2.a)
169169
httpclient (>= 2.8.1, < 3.a)
@@ -172,10 +172,10 @@ GEM
172172
retriable (>= 2.0, < 4.a)
173173
rexml
174174
webrick
175-
google-apis-iamcredentials_v1 (0.15.0)
176-
google-apis-core (>= 0.9.0, < 2.a)
177-
google-apis-playcustomapp_v1 (0.11.0)
178-
google-apis-core (>= 0.9.0, < 2.a)
175+
google-apis-iamcredentials_v1 (0.16.0)
176+
google-apis-core (>= 0.9.1, < 2.a)
177+
google-apis-playcustomapp_v1 (0.12.0)
178+
google-apis-core (>= 0.9.1, < 2.a)
179179
google-apis-storage_v1 (0.19.0)
180180
google-apis-core (>= 0.9.0, < 2.a)
181181
google-cloud-core (1.6.0)
@@ -184,15 +184,15 @@ GEM
184184
google-cloud-env (1.6.0)
185185
faraday (>= 0.17.3, < 3.0)
186186
google-cloud-errors (1.3.0)
187-
google-cloud-storage (1.43.0)
187+
google-cloud-storage (1.44.0)
188188
addressable (~> 2.8)
189189
digest-crc (~> 0.4)
190190
google-apis-iamcredentials_v1 (~> 0.1)
191191
google-apis-storage_v1 (~> 0.19.0)
192192
google-cloud-core (~> 1.6)
193193
googleauth (>= 0.16.2, < 2.a)
194194
mini_mime (~> 1.0)
195-
googleauth (1.2.0)
195+
googleauth (1.3.0)
196196
faraday (>= 0.17.3, < 3.a)
197197
jwt (>= 1.4, < 3.0)
198198
memoist (~> 0.16)

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ lint:
2222
swiftlint
2323
.PHONY: lint
2424

25-
# Format all h,c,cpp and m files
26-
format:
25+
format: format-clang format-swift
26+
27+
# Format ObjC, ObjC++, C, and C++
28+
format-clang:
2729
@find . -type f \( -name "*.h" -or -name "*.hpp" -or -name "*.c" -or -name "*.cpp" -or -name "*.m" -or -name "*.mm" \) -and \
2830
! \( -path "**.build/*" -or -path "**Build/*" -or -path "**/Carthage/Checkouts/*" -or -path "**/libs/**" \) \
2931
| xargs clang-format -i -style=file
3032

33+
# Format Swift
34+
format-swift:
3135
swiftlint --fix
32-
.PHONY: format
3336

3437
test:
3538
@echo "--> Running all tests"

Samples/iOS-Swift/iOS-Swift.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@
10961096
"$(inherited)",
10971097
"@executable_path/Frameworks",
10981098
);
1099-
MARKETING_VERSION = 7.30.2;
1099+
MARKETING_VERSION = 7.31.0;
11001100
PRODUCT_BUNDLE_IDENTIFIER = "io.sentry.sample.iOS-Swift";
11011101
PRODUCT_NAME = "$(TARGET_NAME)";
11021102
PROVISIONING_PROFILE_SPECIFIER = "match Development io.sentry.sample.iOS-Swift";
@@ -1125,7 +1125,7 @@
11251125
"$(inherited)",
11261126
"@executable_path/Frameworks",
11271127
);
1128-
MARKETING_VERSION = 7.30.2;
1128+
MARKETING_VERSION = 7.31.0;
11291129
PRODUCT_BUNDLE_IDENTIFIER = "io.sentry.sample.iOS-Swift";
11301130
PRODUCT_NAME = "$(TARGET_NAME)";
11311131
PROVISIONING_PROFILE_SPECIFIER = "match AppStore io.sentry.sample.iOS-Swift";
@@ -1770,7 +1770,7 @@
17701770
"$(inherited)",
17711771
"@executable_path/Frameworks",
17721772
);
1773-
MARKETING_VERSION = 7.30.2;
1773+
MARKETING_VERSION = 7.31.0;
17741774
PRODUCT_BUNDLE_IDENTIFIER = "io.sentry.sample.iOS-Swift.Clip";
17751775
PRODUCT_NAME = "$(TARGET_NAME)";
17761776
PROVISIONING_PROFILE_SPECIFIER = "match Development io.sentry.sample.iOS-Swift.Clip";
@@ -1805,7 +1805,7 @@
18051805
"$(inherited)",
18061806
"@executable_path/Frameworks",
18071807
);
1808-
MARKETING_VERSION = 7.30.2;
1808+
MARKETING_VERSION = 7.31.0;
18091809
PRODUCT_BUNDLE_IDENTIFIER = "io.sentry.sample.iOS-Swift.Clip";
18101810
PRODUCT_NAME = "$(TARGET_NAME)";
18111811
PROVISIONING_PROFILE_SPECIFIER = "match AppStore io.sentry.sample.iOS-Swift.Clip";

Sentry.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Sentry"
3-
s.version = "7.30.2"
3+
s.version = "7.31.0"
44
s.summary = "Sentry client for cocoa"
55
s.homepage = "https://github.com/getsentry/sentry-cocoa"
66
s.license = "mit"

Sources/Configuration/Sentry.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ MACH_O_TYPE = mh_dylib
2828
FRAMEWORK_VERSION = A
2929

3030
PRODUCT_NAME = Sentry
31-
CURRENT_PROJECT_VERSION = 7.30.2
31+
CURRENT_PROJECT_VERSION = 7.31.0
3232
INFOPLIST_FILE = Sources/Sentry/Info.plist
3333
PRODUCT_BUNDLE_IDENTIFIER = io.sentry.Sentry
3434
ALWAYS_SEARCH_USER_PATHS = NO

Sources/Sentry/Public/SentryError.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ typedef NS_ENUM(NSInteger, SentryError) {
1515
};
1616

1717
SENTRY_EXTERN NSError *_Nullable NSErrorFromSentryError(SentryError error, NSString *description);
18+
SENTRY_EXTERN NSError *_Nullable NSErrorFromSentryErrorWithUnderlyingError(
19+
SentryError error, NSString *description, NSError *underlyingError);
20+
SENTRY_EXTERN NSError *_Nullable NSErrorFromSentryErrorWithException(
21+
SentryError error, NSString *description, NSException *exception);
1822

1923
SENTRY_EXTERN NSString *const SentryErrorDomain;
2024

Sources/Sentry/SentryAppStartTracker.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,6 @@ - (void)stop
285285
[NSNotificationCenter.defaultCenter removeObserver:self
286286
name:UIApplicationDidEnterBackgroundNotification
287287
object:nil];
288-
289-
# if SENTRY_HAS_UIKIT
290-
[self.appStateManager stop];
291-
# endif
292288
}
293289

294290
- (void)dealloc

0 commit comments

Comments
 (0)