Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ A lightweight iOS analytics SDK that transmits events to your MetaRouter cluster
Add the following dependency to your `Package.swift`:

```swift
.package(url: "https://github.com/metarouterio/ios-sdk.git", from: "1.4.0")
.package(url: "https://github.com/metarouterio/ios-sdk.git", from: "1.5.0")
```

Or add it via Xcode: **File → Add Package Dependencies → Enter repository URL**
Expand Down
2 changes: 1 addition & 1 deletion Sources/MetaRouter/Version.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
public enum MetaRouterSDK {
// IMPORTANT: Update this value before each release.
// This version is included in the `library.version` context field of all events.
public static let version = "1.4.0"
public static let version = "1.5.0"
}
4 changes: 2 additions & 2 deletions Tests/MetaRouterTests/LifecycleEventEmitterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ final class LifecycleEventEmitterTests: XCTestCase {
}

func testColdLaunchVersionDifferenceEmitsUpdatedThenOpened() async {
lifecycleStorage.setVersionBuild(version: "1.4.0", build: "37")
lifecycleStorage.setVersionBuild(version: "1.5.0", build: "37")
let emitter = makeEmitter()
await emitter.emitColdLaunchSequence(initialAppState: .active)

let events = await drain()
XCTAssertEqual(events.count, 2)
XCTAssertEqual(events[0].event, "Application Updated")
XCTAssertEqual(events[0].properties?["previous_version"], .string("1.4.0"))
XCTAssertEqual(events[0].properties?["previous_version"], .string("1.5.0"))
XCTAssertEqual(events[0].properties?["previous_build"], .string("37"))
XCTAssertEqual(events[0].properties?["version"], .string("1.5.0"))
XCTAssertEqual(events[0].properties?["build"], .string("42"))
Expand Down
Loading