Skip to content

Commit

Permalink
Merge pull request #1222 from DataDog/release/1.17.0
Browse files Browse the repository at this point in the history
Release 1.17.0
  • Loading branch information
maciejburda authored Mar 24, 2023
2 parents 8d9fad6 + b9102f7 commit d21815d
Show file tree
Hide file tree
Showing 73 changed files with 1,974 additions and 757 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

# 1.17.0 / 23-03-2023
- [BUGFIX] Fix crash in `VitalInfoSampler`. See [#1216][] (Thanks [@cltnschlosser][])
- [IMPROVEMENT] Fix Xcode analysis warning. See[#1220][]

# 1.16.0 / 02-03-2023
- [IMPROVEMENT] Always create an ApplicationLaunch view on session initialization. See [#1160][]
- [BUGFIX] Remove the data race caused by sampling on the RUM thread. See [#1177][] (Thanks [@cltnschlosser][])
Expand Down Expand Up @@ -438,6 +442,8 @@
[#1160]: https://github.com/DataDog/dd-sdk-ios/pull/1160
[#1177]: https://github.com/DataDog/dd-sdk-ios/pull/1177
[#1188]: https://github.com/DataDog/dd-sdk-ios/pull/1188
[#1216]: https://github.com/DataDog/dd-sdk-ios/pull/1216
[#1220]: https://github.com/DataDog/dd-sdk-ios/pull/1220
[@00fa9a]: https://github.com/00FA9A
[@britton-earnin]: https://github.com/Britton-Earnin
[@hengyu]: https://github.com/Hengyu
Expand Down
2 changes: 1 addition & 1 deletion DatadogSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "DatadogSDK"
s.module_name = "Datadog"
s.version = "1.16.0"
s.version = "1.17.0"
s.summary = "Official Datadog Swift SDK for iOS."

s.homepage = "https://www.datadoghq.com"
Expand Down
2 changes: 1 addition & 1 deletion DatadogSDKAlamofireExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "DatadogSDKAlamofireExtension"
s.module_name = "DatadogAlamofireExtension"
s.version = "1.16.0"
s.version = "1.17.0"
s.summary = "An Official Extensions of Datadog Swift SDK for Alamofire."

s.homepage = "https://www.datadoghq.com"
Expand Down
4 changes: 2 additions & 2 deletions DatadogSDKCrashReporting.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "DatadogSDKCrashReporting"
s.module_name = "DatadogCrashReporting"
s.version = "1.16.0"
s.version = "1.17.0"
s.summary = "Official Datadog Crash Reporting SDK for iOS."

s.homepage = "https://www.datadoghq.com"
Expand All @@ -22,6 +22,6 @@ Pod::Spec.new do |s|
s.static_framework = true

s.source_files = "Sources/DatadogCrashReporting/**/*.swift"
s.dependency 'DatadogSDK', '1.16.0'
s.dependency 'DatadogSDK', '1.17.0'
s.dependency 'PLCrashReporter', '~> 1.11.0'
end
4 changes: 2 additions & 2 deletions DatadogSDKObjc.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "DatadogSDKObjc"
s.module_name = "DatadogObjc"
s.version = "1.16.0"
s.version = "1.17.0"
s.summary = "Official Datadog Objective-C SDK for iOS."

s.homepage = "https://www.datadoghq.com"
Expand All @@ -21,5 +21,5 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/DataDog/dd-sdk-ios.git', :tag => s.version.to_s }

s.source_files = "Sources/DatadogObjc/**/*.swift"
s.dependency 'DatadogSDK', '1.16.0'
s.dependency 'DatadogSDK', '1.17.0'
end
2 changes: 1 addition & 1 deletion DatadogSDKSessionReplay.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "DatadogSDKSessionReplay"
s.module_name = "DatadogSessionReplay"
s.version = "1.16.0"
s.version = "1.17.0"
s.summary = "Official Datadog Session Replay SDK for iOS. This module is currently in beta - contact Datadog to request a try."

s.homepage = "https://www.datadoghq.com"
Expand Down
18 changes: 13 additions & 5 deletions DatadogSessionReplay/SRSnapshotTests/SRHost/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}

var keyWindow: UIWindow? {
return UIApplication.shared
.connectedScenes
.compactMap { $0 as? UIWindowScene }
.first { scene in scene.windows.contains { window in window.isKeyWindow } }?
.keyWindow
if #available(iOS 15.0, *) {
return UIApplication.shared
.connectedScenes
.compactMap { $0 as? UIWindowScene }
.first { scene in scene.windows.contains { window in window.isKeyWindow } }?
.keyWindow
} else {
let application = UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication // swiftlint:disable:this unsafe_uiapplication_shared
return application?
.connectedScenes
.flatMap { ($0 as? UIWindowScene)?.windows ?? [] }
.first { $0.isKeyWindow }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ internal enum Fixture: CaseIterable {
case segments
case pickers
case switches
case textFields
case steppers
case datePickersInline
case datePickersCompact
case datePickersWheels
case timePickersCountDown
case timePickersWheels
case timePickersCompact

var menuItemTitle: String {
switch self {
Expand All @@ -28,6 +36,22 @@ internal enum Fixture: CaseIterable {
return "Pickers"
case .switches:
return "Switches"
case .textFields:
return "Text Fields"
case .steppers:
return "Steppers"
case .datePickersInline:
return "Date Picker (inline)"
case .datePickersCompact:
return "Date Picker (compact)"
case .datePickersWheels:
return "Date Picker (wheels)"
case .timePickersCountDown:
return "Time Picker (count down)"
case .timePickersWheels:
return "Time Picker (wheels)"
case .timePickersCompact:
return "Time Picker (compact)"
}
}

Expand All @@ -45,11 +69,28 @@ internal enum Fixture: CaseIterable {
return UIStoryboard.inputElements.instantiateViewController(withIdentifier: "Pickers")
case .switches:
return UIStoryboard.inputElements.instantiateViewController(withIdentifier: "Switches")
case .textFields:
return UIStoryboard.inputElements.instantiateViewController(withIdentifier: "TextFields")
case .steppers:
return UIStoryboard.inputElements.instantiateViewController(withIdentifier: "Steppers")
case .datePickersInline:
return UIStoryboard.datePickers.instantiateViewController(withIdentifier: "DatePickersInline")
case .datePickersCompact:
return UIStoryboard.datePickers.instantiateViewController(withIdentifier: "DatePickersCompact")
case .datePickersWheels:
return UIStoryboard.datePickers.instantiateViewController(withIdentifier: "DatePickersWheels")
case .timePickersCountDown:
return UIStoryboard.datePickers.instantiateViewController(withIdentifier: "TimePickersCountDown")
case .timePickersWheels:
return UIStoryboard.datePickers.instantiateViewController(withIdentifier: "TimePickersWheels")
case .timePickersCompact:
return UIStoryboard.datePickers.instantiateViewController(withIdentifier: "DatePickersCompact") // sharing the same VC with `datePickersCompact`
}
}
}

internal extension UIStoryboard {
static var basic: UIStoryboard { UIStoryboard(name: "Basic", bundle: nil) }
static var inputElements: UIStoryboard { UIStoryboard(name: "InputElements", bundle: nil) }
static var datePickers: UIStoryboard { UIStoryboard(name: "InputElements-DatePickers", bundle: nil) }
}
Loading

0 comments on commit d21815d

Please sign in to comment.