Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to core 13.16.1 #8293

Merged
merged 1 commit into from
Jul 17, 2023
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
35 changes: 24 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
x.y.z Release notes (yyyy-MM-dd)
=============================================================
### Enhancements
* None.

### Fixed
* Removed warnings for deprecated APIs internal use.
([#8251](https://github.com/realm/realm-swift/issues/8251), since v10.39.0)
* Filesystem errors now include more information in the error message.
* Sync connection and session reconnect timing/backoff logic has been reworked
and unified into a single implementation. Previously some categories of errors
would cause an hour-long wait before attempting to reconnect, while others
would use an exponential backoff strategy. All errors now result in the sync
client waiting for 1 second before retrying, doubling the wait after each
subsequent failure up to a maximum of five minutes. If the cause of the error
changes, the backoff will be reset. If the sync client voluntarily disconnects,
no backoff will be used. ([Core #6526]((https://github.com/realm/realm-core/pull/6526)))

### Fixed
* Removed warnings for deprecated APIs internal use.
([#8251](https://github.com/realm/realm-swift/issues/8251), since v10.39.0)
* Fix an error during async open and client reset if properties have been added
to the schema. This fix also applies to partition-based to flexible sync
migration if async open is used. ([Core #6707](https://github.com/realm/realm-core/issues/6707), since v10.28.2)

<!-- ### Breaking Changes - ONLY INCLUDE FOR NEW MAJOR version -->

Expand All @@ -14,10 +25,16 @@ x.y.z Release notes (yyyy-MM-dd)
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 14.3.1.
* CocoaPods: 1.10 or later.
* Xcode: 14.1-15 beta 1.
* Xcode: 14.1-15 beta 4.

### Internal
* Upgraded realm-core from ? to ?
* Upgraded realm-core from 13.15.1 to 13.17.0
* The location where prebuilt core binaries are published has changed slightly.
If you are using `REALM_BASE_URL` to mirror the binaries, you may need to
adjust your mirroring logic.
* Release packages were being uploaded to several static.realm.io URLs which
are no longer linked to anywhere. These are no longer being updated, and
release packages are now only being uploaded to Github.

10.41.0 Release notes (2023-06-26)
=============================================================
Expand Down Expand Up @@ -3928,10 +3945,6 @@ This release also contains all changes from 5.3.2.
* Realm Studio: 10.0.0 or later.
* Carthage release for Swift is built with Xcode 11.5.

### Internal
* Upgraded realm-core from ? to ?
* Upgraded realm-sync from ? to ?

10.0.0-beta.2 Release notes (2020-06-09)
=============================================================
Xcode 11.3 and iOS 9 are now the minimum supported versions.
Expand Down
26 changes: 12 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
// swift-tools-version:5.5
// swift-tools-version:5.7

import PackageDescription
import Foundation

let coreVersionStr = "13.15.1"
let cocoaVersionStr = "10.41.0"
let coreVersion = Version("13.17.0")
let cocoaVersion = Version("10.41.0")

let coreVersionPieces = coreVersionStr.split(separator: ".")
let coreVersionExtra = coreVersionPieces[2].split(separator: "-")
let cxxSettings: [CXXSetting] = [
.headerSearchPath("."),
.headerSearchPath("include"),
.define("REALM_SPM", to: "1"),
.define("REALM_ENABLE_SYNC", to: "1"),
.define("REALM_COCOA_VERSION", to: "@\"\(cocoaVersionStr)\""),
.define("REALM_VERSION", to: "\"\(coreVersionStr)\""),
.define("REALM_COCOA_VERSION", to: "@\"\(cocoaVersion)\""),
.define("REALM_VERSION", to: "\"\(coreVersion)\""),
.define("REALM_IOPLATFORMUUID", to: "@\"\(runCommand())\""),

.define("REALM_DEBUG", .when(configuration: .debug)),
Expand All @@ -23,11 +21,11 @@ let cxxSettings: [CXXSetting] = [
.define("REALM_ENABLE_ASSERTIONS", to: "1"),
.define("REALM_ENABLE_ENCRYPTION", to: "1"),

.define("REALM_VERSION_MAJOR", to: String(coreVersionPieces[0])),
.define("REALM_VERSION_MINOR", to: String(coreVersionPieces[1])),
.define("REALM_VERSION_PATCH", to: String(coreVersionExtra[0])),
.define("REALM_VERSION_EXTRA", to: "\"\(coreVersionExtra.count > 1 ? String(coreVersionExtra[1]) : "")\""),
.define("REALM_VERSION_STRING", to: "\"\(coreVersionStr)\""),
.define("REALM_VERSION_MAJOR", to: String(coreVersion.major)),
.define("REALM_VERSION_MINOR", to: String(coreVersion.minor)),
.define("REALM_VERSION_PATCH", to: String(coreVersion.patch)),
.define("REALM_VERSION_EXTRA", to: "\"\(coreVersion.prereleaseIdentifiers.first ?? "")\""),
.define("REALM_VERSION_STRING", to: "\"\(coreVersion)\""),
]
let testCxxSettings: [CXXSetting] = cxxSettings + [
// Command-line `swift build` resolves header search paths
Expand Down Expand Up @@ -144,12 +142,12 @@ let package = Package(
targets: ["Realm", "RealmSwift"]),
],
dependencies: [
.package(name: "RealmDatabase", url: "https://github.com/realm/realm-core.git", .exact(Version(coreVersionStr)!))
.package(url: "https://github.com/realm/realm-core.git", exact: coreVersion)
],
targets: [
.target(
name: "Realm",
dependencies: [.product(name: "RealmCore", package: "RealmDatabase")],
dependencies: [.product(name: "RealmCore", package: "realm-core")],
path: ".",
exclude: [
"CHANGELOG.md",
Expand Down
Loading