Skip to content

Commit

Permalink
[MOBILE-10980] 0.6.1 Release (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnickel committed May 23, 2024
1 parent c2aaec8 commit a81e88d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

## [0.6.1]

### Fixed

- Fixed session creation from integration code.

## [0.6.0]

### Added
Expand Down Expand Up @@ -180,7 +186,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for manual capture within WKWebView.
- Support for platforms targeting Swift: macOS, watchOS, iOS, iPadOS, tvOS.

[Unreleased]: https://github.com/heap/heap-swift-core-sdk/compare/0.6.0...main
[Unreleased]: https://github.com/heap/heap-swift-core-sdk/compare/0.6.1...main
[0.6.1]: https://github.com/heap/heap-swift-core-sdk/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/heap/heap-swift-core-sdk/compare/0.5.3...0.6.0
[0.5.3]: https://github.com/heap/heap-swift-core-sdk/compare/0.5.2...0.5.3
[0.5.2]: https://github.com/heap/heap-swift-core-sdk/compare/0.5.1...0.5.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ extension EventConsumer {
results = stateManager.createSessionIfExpired(extendIfNotExpired: true, properties: .createdByContentsquare, at: timestamp)
}

handleChanges(results, timestamp: timestamp)

var output = _AdvanceOrExtendSessionResults()
if let state = results.current {
let environment = state.environment
Expand Down
2 changes: 1 addition & 1 deletion Development/Sources/HeapSwiftCore/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct Version {
static let minor = 6

/// Revision number.
static let revision = 0
static let revision = 1

/// Optional pre-release version
static let prerelease: String? = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,19 @@ final class EventConsumer_ContentsquareMethodsSpec: HeapSpec {
expect(properties.newSessionCreated).to(equal(false))
}
}

context("calling with .other") {
let source = _ContentsquareSessionExtensionSource.other

it("creates session messages") {
let timestamp = sessionTimestamp.addingTimeInterval(6000)
_ = consumer.advanceOrExtendSession(source: source, timestamp: timestamp)

let user = try dataStore.assertOnlyOneUserToUpload()
let messages = try dataStore.assertExactPendingMessagesCount(for: user, sessionId: consumer.activeOrExpiredSessionId, count: 3)
messages.expectStartOfSessionWithSynthesizedPageview(user: user, sessionId: consumer.activeOrExpiredSessionId, sessionTimestamp: timestamp)
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion HeapSwiftCore.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'HeapSwiftCore'
s.version = '0.6.0'
s.version = '0.6.1'
s.license = { :type => 'MIT' }
s.summary = 'The core Heap library used for apps on Apple platforms.'
s.homepage = 'https://heap.io'
Expand Down

0 comments on commit a81e88d

Please sign in to comment.