Skip to content

Commit 7410780

Browse files
authored
Merge pull request #1558 from bugsnag/release-v6.27.0
Release v6.27.0
2 parents c730af7 + 6f895b8 commit 7410780

24 files changed

+125
-92
lines changed

.buildkite/pipeline.full.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ steps:
199199
command:
200200
- "--app=/app/build/iOSTestApp.ipa"
201201
- "--farm=bb"
202-
- "--device=IOS_13"
202+
- "--device=IOS_12"
203203
- "--no-tunnel"
204204
- "--aws-public-ip"
205205
- "--fail-fast"
@@ -230,7 +230,7 @@ steps:
230230
command:
231231
- "--app=/app/build/iOSTestApp.ipa"
232232
- "--farm=bb"
233-
- "--device=IOS_13"
233+
- "--device=IOS_12"
234234
- "--no-tunnel"
235235
- "--aws-public-ip"
236236
- "--fail-fast"
@@ -270,7 +270,7 @@ steps:
270270
- "--fail-fast"
271271
- "--exclude=features/[e-z].*.feature$"
272272
- "--order=random"
273-
concurrency: 24
273+
concurrency: 5
274274
concurrency_group: browserstack-app
275275
concurrency_method: eager
276276
retry:
@@ -301,7 +301,7 @@ steps:
301301
- "--fail-fast"
302302
- "--exclude=features/[a-d].*.feature$"
303303
- "--order=random"
304-
concurrency: 24
304+
concurrency: 5
305305
concurrency_group: browserstack-app
306306
concurrency_method: eager
307307
retry:

.buildkite/pipeline.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ steps:
393393
command:
394394
- "--app=/app/build/iOSTestApp.ipa"
395395
- "--farm=bb"
396-
- "--device=IOS_13"
396+
- "--device=IOS_12"
397397
- "--no-tunnel"
398398
- "--aws-public-ip"
399399
- "--fail-fast"
@@ -430,7 +430,7 @@ steps:
430430
- "--fail-fast"
431431
- "--exclude=features/[e-z].*.feature$"
432432
- "--order=random"
433-
concurrency: 24
433+
concurrency: 5
434434
concurrency_group: browserstack-app
435435
concurrency_method: eager
436436
retry:
@@ -459,7 +459,7 @@ steps:
459459
- "--fail-fast"
460460
- "--exclude=features/[a-d].*.feature$"
461461
- "--order=random"
462-
concurrency: 24
462+
concurrency: 5
463463
concurrency_group: browserstack-app
464464
concurrency_method: eager
465465
retry:
@@ -486,7 +486,7 @@ steps:
486486
- "--device=IOS_11_0_IPHONE_8_PLUS"
487487
- "--appium-version=1.8.0"
488488
- "features/barebone_tests.feature"
489-
concurrency: 24
489+
concurrency: 5
490490
concurrency_group: browserstack-app
491491
concurrency_method: eager
492492
retry:
@@ -514,7 +514,7 @@ steps:
514514
- "--appium-version=1.8.0"
515515
- "--fail-fast"
516516
- "features/barebone_tests.feature"
517-
concurrency: 24
517+
concurrency: 5
518518
concurrency_group: browserstack-app
519519
concurrency_method: eager
520520
retry:

.jazzy.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ author_url: "https://www.bugsnag.com"
22
author: "Bugsnag Inc"
33
clean: false # avoid deleting docs/.git
44
framework_root: "Bugsnag"
5-
github_file_prefix: "https://github.com/bugsnag/bugsnag-cocoa/tree/v6.26.2/Bugsnag"
5+
github_file_prefix: "https://github.com/bugsnag/bugsnag-cocoa/tree/v6.27.0/Bugsnag"
66
github_url: "https://github.com/bugsnag/bugsnag-cocoa"
77
hide_documentation_coverage: true
88
module: "Bugsnag"
9-
module_version: "6.26.2"
9+
module_version: "6.27.0"
1010
objc: true
1111
output: "docs"
1212
readme: "README.md"

Bugsnag.podspec.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Bugsnag",
3-
"version": "6.26.2",
3+
"version": "6.27.0",
44
"summary": "The Bugsnag crash reporting framework for Apple platforms.",
55
"homepage": "https://bugsnag.com",
66
"license": "MIT",
@@ -9,7 +9,7 @@
99
},
1010
"source": {
1111
"git": "https://github.com/bugsnag/bugsnag-cocoa.git",
12-
"tag": "v6.26.2"
12+
"tag": "v6.27.0"
1313
},
1414
"ios": {
1515
"frameworks": [

Bugsnag/Client/BugsnagClient.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ - (void)markLaunchCompleted {
341341
}
342342

343343
- (void)sendLaunchCrashSynchronously {
344-
if (self.configuration.session.delegateQueue == NSOperationQueue.currentQueue) {
344+
if (self.configuration.sessionOrDefault.delegateQueue == NSOperationQueue.currentQueue) {
345345
bsg_log_warn(@"Cannot send launch crash synchronously because session.delegateQueue is set to the current queue.");
346346
return;
347347
}

Bugsnag/Configuration/BugsnagConfiguration+Private.h

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ BSG_OBJC_DIRECT_MEMBERS
3434

3535
@property (readonly, nonatomic) BOOL shouldSendReports;
3636

37+
@property (readonly, nonnull, nonatomic) NSURLSession *sessionOrDefault;
38+
3739
@property (readonly, nullable, nonatomic) NSURL *sessionURL;
3840

3941
@property (readwrite, retain, nonnull, nonatomic) BugsnagUser *user;

Bugsnag/Configuration/BugsnagConfiguration.m

+17-6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@
4141

4242
static const int BSGApiKeyLength = 32;
4343

44+
static NSURLSession *getConfigDefaultURLSession(void);
45+
static NSURLSession *getConfigDefaultURLSession(void) {
46+
static dispatch_once_t once_t;
47+
static NSURLSession *session;
48+
dispatch_once(&once_t, ^{
49+
session = [NSURLSession
50+
sessionWithConfiguration:[NSURLSessionConfiguration
51+
defaultSessionConfiguration]];
52+
});
53+
return session;
54+
}
55+
4456
// =============================================================================
4557
// MARK: - BugsnagConfiguration
4658
// =============================================================================
@@ -190,12 +202,6 @@ - (instancetype)initWithApiKey:(NSString *)apiKey {
190202
// persistUser isn't settable until post-init.
191203
_user = BSGGetPersistedUser();
192204

193-
if ([NSURLSession class]) {
194-
_session = [NSURLSession
195-
sessionWithConfiguration:[NSURLSessionConfiguration
196-
defaultSessionConfiguration]];
197-
}
198-
199205
_telemetry = BSGTelemetryAll;
200206

201207
NSString *releaseStage = nil;
@@ -273,6 +279,11 @@ - (void)setUser:(NSString *)userId withEmail:(NSString *)email andName:(NSString
273279
}
274280
}
275281

282+
- (NSURLSession *)sessionOrDefault {
283+
NSURLSession *session = self.session;
284+
return session ? session : getConfigDefaultURLSession();
285+
}
286+
276287
// =============================================================================
277288
// MARK: - onSendBlock
278289
// =============================================================================

Bugsnag/Delivery/BSGEventUploadOperation.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ - (void)runWithDelegate:(id<BSGEventUploadOperationDelegate>)delegate completion
159159
}
160160
}
161161

162-
BSGPostJSONData(configuration.session, data, requestHeaders, notifyURL, ^(BSGDeliveryStatus status, __unused NSError *deliveryError) {
162+
BSGPostJSONData(configuration.sessionOrDefault, data, requestHeaders, notifyURL, ^(BSGDeliveryStatus status, __unused NSError *deliveryError) {
163163
switch (status) {
164164
case BSGDeliveryStatusDelivered:
165165
bsg_log_debug(@"Uploaded event %@", self.name);

Bugsnag/Delivery/BSGSessionUploader.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ - (void)sendSession:(BugsnagSession *)session completionHandler:(nonnull void (^
173173
return;
174174
}
175175

176-
BSGPostJSONData(self.config.session, data, headers, url, ^(BSGDeliveryStatus status, NSError *error) {
176+
BSGPostJSONData(self.config.sessionOrDefault, data, headers, url, ^(BSGDeliveryStatus status, NSError *error) {
177177
switch (status) {
178178
case BSGDeliveryStatusDelivered:
179179
bsg_log_info(@"Sent session %@", session.id);

Bugsnag/Payload/BugsnagError.m

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
static BSGErrorTypeString const BSGErrorTypeStringCocoa = @"cocoa";
2424
static BSGErrorTypeString const BSGErrorTypeStringC = @"c";
2525
static BSGErrorTypeString const BSGErrorTypeStringReactNativeJs = @"reactnativejs";
26+
static BSGErrorTypeString const BSGErrorTypeStringCSharp = @"csharp";
2627

2728

2829
NSString *_Nonnull BSGSerializeErrorType(BSGErrorType errorType) {
@@ -33,6 +34,8 @@
3334
return BSGErrorTypeStringC;
3435
case BSGErrorTypeReactNativeJs:
3536
return BSGErrorTypeStringReactNativeJs;
37+
case BSGErrorTypeCSharp:
38+
return BSGErrorTypeStringCSharp;
3639
}
3740
}
3841

@@ -43,6 +46,8 @@ BSGErrorType BSGParseErrorType(NSString *errorType) {
4346
return BSGErrorTypeC;
4447
} else if ([BSGErrorTypeStringReactNativeJs isEqualToString:errorType]) {
4548
return BSGErrorTypeReactNativeJs;
49+
} else if ([BSGErrorTypeStringCSharp isEqualToString:errorType]) {
50+
return BSGErrorTypeCSharp;
4651
} else {
4752
return BSGErrorTypeCocoa;
4853
}

Bugsnag/Payload/BugsnagNotifier.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ - (instancetype)init {
2323
#else
2424
_name = @"Bugsnag Objective-C";
2525
#endif
26-
_version = @"6.26.2";
26+
_version = @"6.27.0";
2727
_url = @"https://github.com/bugsnag/bugsnag-cocoa";
2828
_dependencies = @[];
2929
}

Bugsnag/include/Bugsnag/BugsnagError.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
typedef NS_OPTIONS(NSUInteger, BSGErrorType) {
1919
BSGErrorTypeCocoa NS_SWIFT_NAME(cocoa), // Swift won't bring in the zeroeth option by default
2020
BSGErrorTypeC NS_SWIFT_NAME(c), // Fix Swift auto-capitalisation
21-
BSGErrorTypeReactNativeJs
21+
BSGErrorTypeReactNativeJs,
22+
BSGErrorTypeCSharp,
2223
};
2324

2425
/**

BugsnagNetworkRequestPlugin.podspec.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "BugsnagNetworkRequestPlugin",
3-
"version": "6.26.2",
3+
"version": "6.27.0",
44
"summary": "Network request monitoring support for Bugsnag.",
55
"homepage": "https://bugsnag.com",
66
"license": "MIT",
77
"authors": {
88
"Bugsnag": "[email protected]"
99
},
10-
"readme": "https://raw.githubusercontent.com/bugsnag/bugsnag-cocoa/v6.26.2/BugsnagNetworkRequestPlugin/README.md",
10+
"readme": "https://raw.githubusercontent.com/bugsnag/bugsnag-cocoa/v6.27.0/BugsnagNetworkRequestPlugin/README.md",
1111
"source": {
1212
"git": "https://github.com/bugsnag/bugsnag-cocoa.git",
13-
"tag": "v6.26.2"
13+
"tag": "v6.27.0"
1414
},
1515
"dependencies": {
1616
"Bugsnag": "~> 6.13"

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Changelog
22
=========
33

4+
## 6.27.0 (2023-05-15)
5+
6+
### Enhancements
7+
8+
* Added BSGErrorTypeCSharp enum value to identify C# events passed to the SDK
9+
[1556](https://github.com/bugsnag/bugsnag-cocoa/pull/1556)
10+
11+
### Bug fixes
12+
13+
* Don't generate a new URLSession when copying a configuration.
14+
[1554](https://github.com/bugsnag/bugsnag-cocoa/pull/1554)
15+
416
## 6.26.2 (2023-04-20)
517

618
### Bug fixes

Framework/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>6.26.2</string>
18+
<string>6.27.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ gem 'cocoapods'
44

55
# A reference to Maze Runner is only needed for running tests locally and if committed it must be
66
# portable for CI, e.g. a specific release. However, leaving it commented out would mean quicker CI.
7-
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v7.17.0'
7+
gem 'bugsnag-maze-runner', '~> 7.0'
88

99
# Use a specific branch
1010
#gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', branch: 'master'

0 commit comments

Comments
 (0)