Skip to content

Commit

Permalink
Merge pull request #7746 from realm/tg/update-core
Browse files Browse the repository at this point in the history
Upgrade to core 10.14.0
  • Loading branch information
tgoyne committed Apr 19, 2022
2 parents 8c1cbf1 + 8714053 commit 7d72714
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .jenkins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ xcode_version:
- 12.5.1
- 13.1
- 13.2.1
- 13.3
- 13.3.1
target:
- docs
- swiftlint
Expand Down Expand Up @@ -53,7 +53,7 @@ exclude:
- xcode_version: 13.1
target: docs

- xcode_version: 13.3
- xcode_version: 13.3.1
target: docs

- xcode_version: 12.4
Expand Down
28 changes: 27 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ x.y.z Release notes (yyyy-MM-dd)
}];
[realm cancelAsyncTransaction:asyncTransactionId];
```
* Replace Xcode 13.3 binaries with 13.3.1 binaries.

### Fixed
* <How to hit and notice issue? what was the impact?> ([#????](https://github.com/realm/realm-swift/issues/????), since v?.?.?)
Expand All @@ -27,14 +28,39 @@ x.y.z Release notes (yyyy-MM-dd)
<!-- ### Breaking Changes - ONLY INCLUDE FOR NEW MAJOR version -->

### Compatibility
* Realm Studio: 11.0.0 or later.
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 13.3.1.
* CocoaPods: 1.10 or later.
* Xcode: 12.4-13.3.1.

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

10.25.1 Release notes (2022-04-11)
=============================================================

### Fixed

* Fixed various memory corruption bugs when encryption is used caused by not
locking a mutex when needed.
([#7640](https://github.com/realm/realm-swift/issues/7640), [#7659](https://github.com/realm/realm-swift/issues/7659), since v10.21.1)
* Changeset upload batching did not calculate the accumulated size correctly,
resulting in “error reading body failed to read: read limited at 16777217
bytes” errors from the server when writing large amounts of data
([Core #5373](https://github.com/realm/realm-core/pull/5373), since 11.13.0).

### Compatibility

* Realm Studio: 11.0.0 or later.
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 13.3.
* CocoaPods: 1.10 or later.
* Xcode: 12.4-13.3.

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

* Upgraded realm-core from v11.13.0 to v11.14.0.

10.25.0 Release notes (2022-03-29)
=============================================================
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile.releasability
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
xcodeVersions = ['12.4', '12.5.1', '13.1', '13.2.1', '13.3']
xcodeVersions = ['12.4', '12.5.1', '13.1', '13.2.1', '13.3.1']
platforms = ['osx', 'ios', 'watchos', 'tvos', 'catalyst']
carthagePlatforms = ['osx', 'ios', 'watchos', 'tvos']
platformNames = ['osx': 'macOS', 'ios': 'iOS', 'watchos': 'watchOS', 'tvos': 'tvOS', 'catalyst': 'Catalyst']
carthageXcodeVersion = '13.3'
carthageXcodeVersion = '13.3.1'
objcXcodeVersion = '12.4'
docsSwiftVersion = '5.5.1'

Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import PackageDescription
import Foundation

let coreVersionStr = "11.13.0"
let cocoaVersionStr = "10.25.0"
let coreVersionStr = "11.14.0"
let cocoaVersionStr = "10.25.1"

let coreVersionPieces = coreVersionStr.split(separator: ".")
let coreVersionExtra = coreVersionPieces[2].split(separator: "-")
Expand Down
4 changes: 2 additions & 2 deletions Realm/Realm-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>10.25.0</string>
<string>10.25.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>10.25.0</string>
<string>10.25.1</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014-2021 Realm. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion RealmSwift/Tests/PerformanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class SwiftPerformanceTests: TestCase {
let realm = realmWithTestPath()
try! realm.write {
for _ in 0..<8000 {
let randomNumber = Int(arc4random_uniform(UInt32(INT_MAX)))
let randomNumber = Int.random(in: 0...Int.max)
realm.create(SwiftIntObject.self, value: [randomNumber])
}
}
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1258,9 +1258,9 @@ x.y.z Release notes (yyyy-MM-dd)
### Compatibility
* Realm Studio: 11.0.0 or later.
* APIs are backwards compatible with all previous releases in the 10.x.y series.
* Carthage release for Swift is built with Xcode 13.3.
* Carthage release for Swift is built with Xcode 13.3.1.
* CocoaPods: 1.10 or later.
* Xcode: 12.4-13.3.
* Xcode: 12.4-13.3.1.
### Internal
* Upgraded realm-core from ? to ?
Expand Down
4 changes: 2 additions & 2 deletions dependencies.list
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION=10.25.0
REALM_CORE_VERSION=11.13.0
VERSION=10.25.1
REALM_CORE_VERSION=11.14.0
STITCH_VERSION=43aa6a468d35215e8448e005caba21752ca42b4f
4 changes: 2 additions & 2 deletions examples/ios/swift/GroupedTableView/TableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ func objectForIndexPath(indexPath: IndexPath) -> DemoObject? {
}

func randomTitle() -> String {
return "Title \(arc4random())"
return "Title \(Int.random(in: 0..<100))"
}

func randomSectionTitle() -> String {
return sectionTitles[Int(arc4random()) % sectionTitles.count]
return sectionTitles[Int.random(0..<sectionTitles.count)]
}
4 changes: 2 additions & 2 deletions examples/ios/swift/TableView/TableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ class TableViewController: UITableViewController {
// Helpers

class func randomString() -> String {
return "Title \(arc4random())"
return "Title \(Int.random(in: 0..<100))"
}

class func randomDate() -> NSDate {
return NSDate(timeIntervalSince1970: TimeInterval(arc4random()))
return NSDate(timeIntervalSince1970: TimeInterval.random(in: 0..<TimeInterval.greatestFiniteMagnitude))
}
}
2 changes: 1 addition & 1 deletion scripts/package_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def replace_framework(example, path)
"examples/tvos/swift",
]

xcode_versions = %w(12.4 12.5.1 13.1 13.2.1 13.3)
xcode_versions = %w(12.4 12.5.1 13.1 13.2.1 13.3.1)

# Remove reference to Realm.xcodeproj from all example workspaces.
base_examples.each do |example|
Expand Down
2 changes: 1 addition & 1 deletion scripts/pr-ci-matrix.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
# A script to generate the .jenkins.yml file for the CI pull request job
XCODE_VERSIONS = %w(12.4 12.5.1 13.1 13.2.1 13.3)
XCODE_VERSIONS = %w(12.4 12.5.1 13.1 13.2.1 13.3.1)

all = ->(v) { true }
latest_only = ->(v) { v == XCODE_VERSIONS.last }
Expand Down

0 comments on commit 7d72714

Please sign in to comment.