Skip to content
Merged
Show file tree
Hide file tree
Changes from 104 commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
b0aa62f
Sentry Swift
brustolin Sep 14, 2022
65205f6
Updated references
brustolin Sep 19, 2022
61997a2
Update TypeAlias.swift
brustolin Sep 19, 2022
423aea1
Update project.pbxproj
brustolin Sep 19, 2022
9f08056
Update tests
brustolin Sep 19, 2022
aa39ceb
remove SentryPerformance
brustolin Sep 20, 2022
13379e5
Merge branch 'master' into feat/swift
brustolin Sep 20, 2022
0911615
Update NotificationCenterTestCase.swift
brustolin Sep 20, 2022
96c0aec
wip
brustolin Sep 20, 2022
18f0139
Update NotificationCenterTestCase.swift
brustolin Sep 20, 2022
a2f875e
Merge branch 'master' into feat/swift
brustolin Sep 20, 2022
ac8c97c
Objc progress
brustolin Sep 20, 2022
624e335
change to framework
brustolin Sep 21, 2022
75e1930
more work
brustolin Sep 21, 2022
a2bb941
Update Sentry.xcscheme
brustolin Sep 21, 2022
469993c
WatchOs Compile
brustolin Sep 21, 2022
e80bd68
update dependency
brustolin Sep 21, 2022
def3389
Merge branch 'master' into feat/swift
brustolin Sep 21, 2022
af05fc7
Auto sign and distribution
philipphofmann Sep 22, 2022
b725721
Config file
brustolin Sep 22, 2022
1f07f60
Merge branch 'feat/swift' of https://github.com/getsentry/sentry-coco…
brustolin Sep 22, 2022
22d6749
Merge branch 'master' into feat/swift
brustolin Sep 22, 2022
e1eb332
some update
brustolin Sep 22, 2022
4fca18c
Merge branch 'feat/swift' of https://github.com/getsentry/sentry-coco…
brustolin Sep 22, 2022
1261c72
framework sample
brustolin Sep 22, 2022
139aae6
Update project.pbxproj
brustolin Sep 22, 2022
09d2e49
Update Makefile
brustolin Sep 22, 2022
ee39ebd
Merge branch 'master' into feat/swift
brustolin Sep 23, 2022
6f5d035
Update Sentry.podspec
brustolin Sep 29, 2022
fa902d2
Merge branch 'master' into feat/swift
brustolin Sep 29, 2022
45100a6
update podspec
brustolin Sep 30, 2022
51ca606
some fix
brustolin Sep 30, 2022
5420a72
Cocoa pod should work
brustolin Sep 30, 2022
2c7a928
Fix tests
brustolin Sep 30, 2022
18a4900
Adding Sentry header
brustolin Oct 3, 2022
e80fadc
Update Sentry.podspec
brustolin Oct 3, 2022
99f7dc7
Update add-sentry-to-vlc.patch
brustolin Oct 3, 2022
18d0be6
Reverting SentryObjc.h to Sentry.h
brustolin Oct 3, 2022
d4ebaed
Yeap, we need SentryObjc
brustolin Oct 3, 2022
516fdfd
tests
brustolin Oct 3, 2022
e9cc793
Define Sentry.modulemap
brustolin Oct 3, 2022
8381895
Merge branch 'master' into feat/swift
brustolin Oct 10, 2022
3479fe1
revert
brustolin Oct 13, 2022
a38db37
Merge branch 'master' into feat/swift
brustolin Oct 13, 2022
25386e4
All over again
brustolin Oct 14, 2022
add046c
Tests
brustolin Oct 14, 2022
6020920
Merge branch 'master' into feat/swift
brustolin Oct 14, 2022
04253dc
Update Sentry.podspec
brustolin Oct 14, 2022
8606b19
pod update
brustolin Oct 14, 2022
21b0e2d
Update project.pbxproj
brustolin Oct 14, 2022
f69e00f
Update project.pbxproj
brustolin Oct 14, 2022
1c16be6
gr
brustolin Oct 17, 2022
7876424
brustolin
brustolin Oct 17, 2022
3c3fbb2
cocoapods fix
brustolin Oct 17, 2022
2ecb347
Reorganize things
brustolin Oct 17, 2022
584436f
Update Sentry.podspec
brustolin Oct 18, 2022
c79c611
Merge branch 'master' into feat/swift
brustolin Oct 20, 2022
19e777c
Merge branch 'master' into feat/swift
brustolin Oct 21, 2022
0b0a1f4
updating meta
brustolin Oct 21, 2022
221c860
More information
brustolin Oct 24, 2022
9e7c555
Update CHANGELOG.md
brustolin Oct 24, 2022
7d5e7d1
Merge branch 'master' into feat/swift
brustolin Oct 24, 2022
097f3d1
Apply suggestions from code review
brustolin Oct 25, 2022
7df3dae
docs
brustolin Oct 25, 2022
e1d01e0
Remove ViewControllerSanitizer
brustolin Oct 25, 2022
27bd089
Merge branch 'master' into feat/swift
brustolin Oct 25, 2022
40552f5
Update CHANGELOG.md
brustolin Oct 25, 2022
fc4efab
Merge branch 'master' into feat/swift
brustolin Nov 4, 2022
ad71f3d
Merge branch 'master' into feat/swift
brustolin Nov 8, 2022
21d170d
Update project.pbxproj
brustolin Nov 8, 2022
7376f54
SentryPrivate
brustolin Nov 10, 2022
42d7e3f
Merge branch 'master' into feat/swift
brustolin Nov 10, 2022
e7f1c9d
Update project.pbxproj
brustolin Nov 10, 2022
d73af80
Update project.pbxproj
brustolin Nov 10, 2022
05ee747
Update SentryPrivate.podspec
brustolin Nov 11, 2022
24d6027
Update SentryPrivate.podspec
brustolin Nov 11, 2022
a7bd4c9
pod lint working
brustolin Nov 11, 2022
20dbe28
Fix tests
brustolin Nov 11, 2022
ce7dd6a
Update integration tests
brustolin Nov 11, 2022
c520394
Docs
brustolin Nov 14, 2022
ed70d47
Update add-sentry-to-homekit.patch
brustolin Nov 14, 2022
d1aca42
Merge branch 'master' into feat/swift
brustolin Nov 14, 2022
596825a
Update add-sentry-to-homekit.patch
brustolin Nov 14, 2022
89a6e51
Merge branch 'feat/swift' of https://github.com/getsentry/sentry-coco…
brustolin Nov 14, 2022
d4be11a
Update add-sentry-to-homekit.patch
brustolin Nov 14, 2022
dbeb0a0
Update Sources/Sentry/include/SentrySwift.h
brustolin Nov 14, 2022
8be92cd
Format code
getsentry-bot Nov 14, 2022
347af03
Update main.swift
brustolin Nov 14, 2022
0e90f96
Merge branch 'feat/swift' of https://github.com/getsentry/sentry-coco…
brustolin Nov 14, 2022
58b4b71
Merge branch 'master' into feat/swift
brustolin Nov 14, 2022
c32dbe7
Update Makefile
brustolin Nov 15, 2022
5572e3a
Merge branch 'master' into feat/swift
brustolin Nov 15, 2022
ff2996f
Merge branch 'master' into feat/swift
brustolin Nov 15, 2022
3c2e914
Update SentryPrivate.podspec
brustolin Nov 16, 2022
76d6d1d
Update Sentry.podspec
brustolin Nov 16, 2022
11a5156
Update project.pbxproj
brustolin Nov 17, 2022
dc60847
Merge branch 'master' into feat/swift
brustolin Nov 17, 2022
d84ba8b
Delete SentryPrivate.xcscheme
brustolin Nov 18, 2022
004d0be
Merge branch 'feat/swift' of https://github.com/getsentry/sentry-coco…
brustolin Nov 18, 2022
56c9730
Merge branch 'master' into feat/swift
brustolin Nov 18, 2022
fcc4865
ref: Make SpanProtocol.data non nullable
brustolin Nov 18, 2022
9b7ca08
Update CHANGELOG.md
brustolin Nov 21, 2022
874e78a
Update TraceTestViewController.swift
brustolin Nov 21, 2022
92506db
Merge branch '8.0.0' into ref/spanprotocol-data-nonnull
brustolin Nov 22, 2022
eba8b2f
Update CHANGELOG.md
brustolin Nov 22, 2022
5dd093d
Merge branch '8.0.0' into ref/spanprotocol-data-nonnull
brustolin Nov 22, 2022
2a021e4
Update CHANGELOG.md
brustolin Nov 22, 2022
9102633
Update CHANGELOG.md
brustolin Nov 22, 2022
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

This version introduces a dependency on Swift, which only impacts you if you don't use Swift. If your project uses Swift already, this change will not affect you.

### Breaking Changes

- Make SpanProtocol.data non nullable (#2409)
This version adds a dependency on Swift.

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TraceTestViewController: UIViewController {
return
}

UIAssert.isEqual(child.data?["url"] as? String, "/sentry-logo-black.png", "Could not read url data value")
UIAssert.isEqual(child.data["url"] as? String, "/sentry-logo-black.png", "Could not read url data value")

UIAssert.isEqual(child.tags["http.status_code"], "200", "Could not read status_code tag value")

Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/Public/SentrySpanProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ NS_SWIFT_NAME(Span)
/**
* An arbitrary mapping of additional metadata of the span.
*/
@property (nullable, readonly) NSDictionary<NSString *, id> *data;
@property (readonly) NSDictionary<NSString *, id> *data;

/**
* key-value pairs holding additional data about the span.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentrySpan.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (void)removeDataForKey:(NSString *)key
}
}

- (nullable NSDictionary<NSString *, id> *)data
- (NSDictionary<NSString *, id> *)data
{
@synchronized(_data) {
return [_data copy];
Expand Down
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryTracer.m
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ - (void)setStartTimestamp:(nullable NSDate *)startTimestamp
#endif
}

- (nullable NSDictionary<NSString *, id> *)data
- (NSDictionary<NSString *, id> *)data
{
@synchronized(_data) {
return [_data copy];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class SentryCoreDataTrackerTests: XCTestCase {

XCTAssertEqual(transaction.children.count, 1)

guard let operations = transaction.children[0].data?["operations"] as? [String: Any?] else {
guard let operations = transaction.children[0].data["operations"] as? [String: Any?] else {
XCTFail("Transaction has no `operations` extra")
return
}
Expand Down Expand Up @@ -230,7 +230,7 @@ class SentryCoreDataTrackerTests: XCTestCase {
XCTAssertEqual(transaction.children.count, 1)
XCTAssertEqual(transaction.children[0].context.operation, SENTRY_COREDATA_FETCH_OPERATION)
XCTAssertEqual(transaction.children[0].context.spanDescription, expectedDescription)
XCTAssertEqual(transaction.children[0].data!["read_count"] as? Int, 1)
XCTAssertEqual(transaction.children[0].data["read_count"] as? Int, 1)
}

private func startTransaction() -> SentryTracer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ class SentryNSDataTrackerTests: XCTestCase {
XCTAssertNotNil(span)
XCTAssertEqual(span?.context.operation, operation)
XCTAssertTrue(span?.isFinished ?? false)
XCTAssertEqual(span?.data?["file.size"] as? Int, size)
XCTAssertEqual(span?.data?["file.path"] as? String, path)
XCTAssertEqual(span?.data["file.size"] as? Int, size)
XCTAssertEqual(span?.data["file.path"] as? String, path)

let lastComponent = (path as NSString).lastPathComponent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,9 @@ class SentryNetworkTrackerTests: XCTestCase {
XCTAssertNil(httpStatusCode)
}

let path = span.data!["url"] as? String
let method = span.data!["method"] as? String
let requestType = span.data!["type"] as? String
let path = span.data["url"] as? String
let method = span.data["method"] as? String
let requestType = span.data["type"] as? String

XCTAssertEqual(path, task.currentRequest!.url!.path)
XCTAssertEqual(method, task.currentRequest!.httpMethod)
Expand Down
10 changes: 5 additions & 5 deletions Tests/SentryTests/Transaction/SentrySpanTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ class SentrySpanTests: XCTestCase {

span.setExtra(value: fixture.extraValue, key: fixture.extraKey)

XCTAssertEqual(span.data!.count, 1)
XCTAssertEqual(span.data![fixture.extraKey] as! String, fixture.extraValue)
XCTAssertEqual(span.data.count, 1)
XCTAssertEqual(span.data[fixture.extraKey] as! String, fixture.extraValue)

span.removeData(key: fixture.extraKey)
XCTAssertEqual(span.data!.count, 0)
XCTAssertNil(span.data![fixture.extraKey])
XCTAssertEqual(span.data.count, 0)
XCTAssertNil(span.data[fixture.extraKey])
}

func testAddAndRemoveTags() {
Expand Down Expand Up @@ -359,7 +359,7 @@ class SentrySpanTests: XCTestCase {

queue.activate()
group.wait()
XCTAssertEqual(span.data!.count, outerLoop * innerLoop)
XCTAssertEqual(span.data.count, outerLoop * innerLoop)
}

func testSpanStatusNames() {
Expand Down