Skip to content

Commit

Permalink
Realm 10.29.0 on XCode 14.0/13.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bioche committed Sep 16, 2022
1 parent f4f95bb commit 6016410
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/.swiftpm/xcode/package.xcworkspace/xcuserdata/bioche.xcuserdatad/UserInterfaceState.xcuserstate
/.swiftpm/xcode/xcuserdata/bioche.xcuserdatad/xcschemes/xcschememanagement.plist
/.swiftpm/xcode/xcuserdata
/.swiftpm/xcode/package.xcworkspace/xcuserdata
/.DS_Store
16 changes: 8 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@

import PackageDescription

let realmVersion = "10.24.2"
let realmVersion = "10.29.0"

func buildTargets() -> [Target] {
let baseURL = "https://github.com/bioche/RealmBinaries/releases/download/\(realmVersion)"

#if swift(>=5.6.0)
let xcodeVersion = "13_3"
let realmChecksum = "c2ca70d6826a6f8c52a5c2b7f45ebeb3a21d0679e6f91bed76dbf5b409a34249"
let realmSwiftChecksum = "0fa96eefe4ea1025d6f9eb2293cedd8bc38fd626dce4ea4c98dbf41432b6253d"
#if swift(>=5.7.0)
let xcodeVersion = "14_0"
let realmChecksum = "2bdabb1458a0672103e62a396f34e92a02272ea6150e062d96f57d4603c607d0"
let realmSwiftChecksum = "a21575c1dc49ea72cc4d677006599761370c3d22bb35a41c4c957017c6ccf481"
#else
let xcodeVersion = "13_2_1"
let realmChecksum = "689981e46b095b55e1806f7cbeb169ebfc385412f13fe59e7e460fa566c1f1fe"
let realmSwiftChecksum = "2dbba6714cfbdb1f698fbde0eb8e1dd43013b3a53a36a6b2469db21ea8534db8"
let xcodeVersion = "13_4_1"
let realmChecksum = "6e9d67b3731ef619e38634df70e9ca2ab207a9235bcfed2add7c497bc90fc8c6"
let realmSwiftChecksum = "2e787d57bc25e3954cfab145076c7ad7a60a02608db6802661772b06318d94f9"
#endif

return [
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# RealmBinaries
Vends Realm xcframeworks via SPM to save build time

How to release a new version :
- Download from https://github.com/realm/realm-swift/releases last release artefacts realm-swift-<Realm version>.zip
- It should contain multiple xcode versions of Realm & RealmSwift xcframeworks
- Compress & rename the last 2 versions of these frameworks (ex : "Realm_13_4_1.xcframework.zip", "RealmSwift_13_4_1.xcframework.zip", "Realm_14_0.xcframework.zip", "RealmSwift_14_0.xcframework.zip")
- Run swift package compute-checksum <path> from this repo folder for each of the 4 zips
- Replace version & checksums in package.swift
- Push, tag with the same version number as original repo & upload all 4 zips as assets of the release

0 comments on commit 6016410

Please sign in to comment.