Skip to content

Commit fd6baa8

Browse files
committed
Merge remote-tracking branch 'upstream/main' into update-german-localization
2 parents dc691ad + 6f432ee commit fd6baa8

File tree

16 files changed

+1520
-155
lines changed

16 files changed

+1520
-155
lines changed

.github/workflows/appcast.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
persist-credentials: false
1616

1717
- name: Cache 📦
18-
uses: actions/cache@v4.0.0
18+
uses: actions/cache@v4.0.1
1919
with:
2020
path: AppCast/vendor/bundle
2121
key: ${{ runner.os }}-gems-v1.0-${{ hashFiles('AppCast/Gemfile') }}
2222
restore-keys: |
2323
${{ runner.os }}-gems-
2424
2525
- name: Setup Ruby, JRuby and TruffleRuby
26-
uses: ruby/setup-ruby@v1.171.0
26+
uses: ruby/setup-ruby@v1.172.0
2727
with:
2828
ruby-version: '3.0'
2929

Xcodes/Backend/AppState+Runtimes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ extension AppState {
1515
var updatedRuntime = runtime
1616

1717
// This loops through and matches up the simulatorVersion to the mappings
18-
let simulatorBuildUpdate = downloadableRuntimes.sdkToSimulatorMappings.first { SDKToSimulatorMapping in
18+
let simulatorBuildUpdate = downloadableRuntimes.sdkToSimulatorMappings.filter { SDKToSimulatorMapping in
1919
SDKToSimulatorMapping.simulatorBuildUpdate == runtime.simulatorVersion.buildUpdate
2020
}
21-
updatedRuntime.sdkBuildUpdate = simulatorBuildUpdate?.sdkBuildUpdate
21+
updatedRuntime.sdkBuildUpdate = simulatorBuildUpdate.map { $0.sdkBuildUpdate }
2222
return updatedRuntime
2323
}
2424

Xcodes/Frontend/About/AcknowledgementsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct AcknowledgmentsView: View {
1010
)!
1111
.addingAttribute(.foregroundColor, value: NSColor.labelColor)
1212
)
13-
.frame(minWidth: 500, minHeight: 500)
13+
.frame(minWidth: 600, minHeight: 500)
1414
}
1515
}
1616

Xcodes/Frontend/InfoPane/CompilersView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ struct CompilersView: View {
1616
if let compilers = compilers {
1717
VStack(alignment: .leading) {
1818
Text("Compilers").font(.headline)
19-
Text(Self.content(from: compilers)).font(.subheadline)
19+
Text(Self.content(from: compilers))
20+
.font(.subheadline)
21+
.textSelection(.enabled)
2022
}
2123
} else {
2224
EmptyView()

Xcodes/Frontend/InfoPane/InfoPane.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct InfoPane: View {
1919
Text(verbatim: "Xcode \(xcode.description) \(xcode.version.buildMetadataIdentifiersDisplay)")
2020
.font(.title)
2121
.frame(maxWidth: .infinity, alignment: .leading)
22+
.textSelection(.enabled)
2223
}
2324
InfoPaneControls(xcode: xcode)
2425
}
@@ -146,12 +147,12 @@ var xcodeDict: [XcodePreviewName: Xcode] = [
146147
var downloadableRuntimes: [DownloadableRuntime] = {
147148
var runtimes = try! JSONDecoder().decode([DownloadableRuntime].self, from: Current.files.contents(atPath: Path.runtimeCacheFile.string)!)
148149
// set iOS to installed
149-
let iOSIndex = runtimes.firstIndex { $0.sdkBuildUpdate == "19E239" }!
150+
let iOSIndex = 0//runtimes.firstIndex { $0.sdkBuildUpdate.contains == "19E239" }!
150151
var iOSRuntime = runtimes[iOSIndex]
151152
iOSRuntime.installState = .installed
152153
runtimes[iOSIndex] = iOSRuntime
153154

154-
let watchOSIndex = runtimes.firstIndex { $0.sdkBuildUpdate == "20R362" }!
155+
let watchOSIndex = 0//runtimes.firstIndex { $0.sdkBuildUpdate.first == "20R362" }!
155156
var runtime = runtimes[watchOSIndex]
156157
runtime.installState = .installing(
157158
RuntimeInstallationStep.downloading(

Xcodes/Frontend/InfoPane/PlatformsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct PlatformsView: View {
1919
let builds = xcode.sdks?.allBuilds()
2020
let runtimes = builds?.flatMap { sdkBuild in
2121
appState.downloadableRuntimes.filter {
22-
$0.sdkBuildUpdate == sdkBuild
22+
$0.sdkBuildUpdate?.contains(sdkBuild) ?? false
2323
}
2424
}
2525

Xcodes/Frontend/InfoPane/SDKsView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ struct SDKsView: View {
1818
} else {
1919
VStack(alignment: .leading) {
2020
Text("SDKs").font(.headline)
21-
Text(content).font(.subheadline)
21+
Text(content)
22+
.font(.subheadline)
23+
.textSelection(.enabled)
2224
}
2325
}
2426
}

Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct AdvancedPreferencePane: View {
3838
}
3939
Text("InstallPathDescription")
4040
.font(.footnote)
41+
.foregroundStyle(.secondary)
4142
.fixedSize(horizontal: false, vertical: true)
4243
}
4344
}
@@ -73,6 +74,7 @@ struct AdvancedPreferencePane: View {
7374
}
7475
Text("LocalCachePathDescription")
7576
.font(.footnote)
77+
.foregroundStyle(.secondary)
7678
.fixedSize(horizontal: false, vertical: true)
7779
}
7880
}
@@ -94,6 +96,7 @@ struct AdvancedPreferencePane: View {
9496

9597
Text(appState.onSelectActionType.detailedDescription)
9698
.font(.footnote)
99+
.foregroundStyle(.secondary)
97100
.fixedSize(horizontal: false, vertical: true)
98101
Spacer()
99102
.frame(height: 20)
@@ -102,6 +105,7 @@ struct AdvancedPreferencePane: View {
102105
.disabled(appState.createSymLinkOnSelectDisabled)
103106
Text("AutomaticallyCreateSymbolicLinkDescription")
104107
.font(.footnote)
108+
.foregroundStyle(.secondary)
105109
.fixedSize(horizontal: false, vertical: true)
106110
}
107111
.fixedSize(horizontal: false, vertical: true)
@@ -114,6 +118,7 @@ struct AdvancedPreferencePane: View {
114118
.disabled(appState.createSymLinkOnSelectDisabled)
115119
Text("ShowOpenInRosettaDescription")
116120
.font(.footnote)
121+
.foregroundStyle(.secondary)
117122
.fixedSize(horizontal: false, vertical: true)
118123
}
119124
.groupBoxStyle(PreferencesGroupBoxStyle())
@@ -128,16 +133,18 @@ struct AdvancedPreferencePane: View {
128133
case .installed:
129134
Text("HelperInstalled")
130135
case .notInstalled:
131-
HStack {
132-
Text("HelperNotInstalled")
136+
VStack(alignment: .leading) {
133137
Button("InstallHelper") {
134138
appState.installHelperIfNecessary()
135139
}
140+
Text("HelperNotInstalled")
141+
.font(.footnote)
136142
}
137143
}
138144

139145
Text("PrivilegedHelperDescription")
140146
.font(.footnote)
147+
.foregroundStyle(.secondary)
141148
.fixedSize(horizontal: false, vertical: true)
142149

143150
Spacer()
@@ -153,21 +160,18 @@ struct AdvancedPreferencePane_Previews: PreviewProvider {
153160
Group {
154161
AdvancedPreferencePane()
155162
.environmentObject(AppState())
156-
.frame(maxWidth: 500)
163+
.frame(maxWidth: 600)
157164
}
158-
.frame(width: 500, height: 700, alignment: .center)
165+
.frame(width: 600, height: 700, alignment: .center)
159166
}
160167
}
161168

162169
// A group style for the preferences
163170
struct PreferencesGroupBoxStyle: GroupBoxStyle {
164171
func makeBody(configuration: Configuration) -> some View {
165172
HStack(alignment: .top, spacing: 20) {
166-
HStack {
167-
Spacer()
168-
configuration.label
169-
}
170-
.frame(width: 120)
173+
configuration.label
174+
.frame(width: 180, alignment: .trailing)
171175

172176
VStack(alignment: .leading) {
173177
configuration.content

Xcodes/Frontend/Preferences/DownloadPreferencePane.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ struct DownloadPreferencePane: View {
1818
}
1919
}
2020
.labelsHidden()
21+
.fixedSize()
2122

2223
AttributedText(dataSourceFootnote)
2324
}
@@ -34,6 +35,7 @@ struct DownloadPreferencePane: View {
3435
}
3536
}
3637
.labelsHidden()
38+
.fixedSize()
3739

3840
AttributedText(downloaderFootnote)
3941
}
@@ -50,7 +52,7 @@ struct DownloadPreferencePane: View {
5052
string: string,
5153
attributes: [
5254
.font: NSFont.preferredFont(forTextStyle: .footnote, options: [:]),
53-
.foregroundColor: NSColor.labelColor
55+
.foregroundColor: NSColor.secondaryLabelColor
5456
]
5557
)
5658
attributedString.addAttribute(.link, value: URL(string: "https://xcodereleases.com")!, range: NSRange(string.range(of: "Xcode Releases")!, in: string))
@@ -63,7 +65,7 @@ struct DownloadPreferencePane: View {
6365
string: string,
6466
attributes: [
6567
.font: NSFont.preferredFont(forTextStyle: .footnote, options: [:]),
66-
.foregroundColor: NSColor.labelColor
68+
.foregroundColor: NSColor.secondaryLabelColor
6769
]
6870
)
6971
attributedString.addAttribute(.link, value: URL(string: "https://github.com/aria2/aria2")!, range: NSRange(string.range(of: "aria2")!, in: string))
@@ -74,9 +76,10 @@ struct DownloadPreferencePane: View {
7476
struct DownloadPreferencePane_Previews: PreviewProvider {
7577
static var previews: some View {
7678
Group {
77-
GeneralPreferencePane()
79+
DownloadPreferencePane()
7880
.environmentObject(AppState())
79-
.frame(maxWidth: 500)
81+
.frame(maxWidth: 600)
82+
.frame(minHeight: 300)
8083
}
8184
}
8285
}

Xcodes/Frontend/Preferences/ExperiementsPreferencePane.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ struct ExperimentsPreferencePane: View {
1818
.fixedSize(horizontal: false, vertical: true)
1919
}
2020
.groupBoxStyle(PreferencesGroupBoxStyle())
21-
22-
Divider()
2321
}
2422
}
2523

@@ -29,7 +27,7 @@ struct ExperimentsPreferencePane: View {
2927
string: string,
3028
attributes: [
3129
.font: NSFont.preferredFont(forTextStyle: .footnote, options: [:]),
32-
.foregroundColor: NSColor.labelColor
30+
.foregroundColor: NSColor.secondaryLabelColor
3331
]
3432
)
3533
attributedString.addAttribute(.link, value: URL(string: "https://twitter.com/_saagarjha")!, range: NSRange(string.range(of: "@_saagarjha")!, in: string))
@@ -43,7 +41,7 @@ struct ExperimentsPreferencePane_Previews: PreviewProvider {
4341
Group {
4442
ExperimentsPreferencePane()
4543
.environmentObject(AppState())
46-
.frame(maxWidth: 500)
44+
.frame(maxWidth: 600)
4745
}
4846
}
4947
}

0 commit comments

Comments
 (0)