Skip to content

Commit c049fd3

Browse files
authored
[src] Fix min OS versions for .NET for numerous APIs. (#17871)
We don't need to specify a min OS version for APIs that are available in the first OS version we support, in which case we just state that we support said API. This was done with this script: https://gist.github.com/rolfbjarne/5374efba6757c724442137e89fa65113
1 parent 999c5a3 commit c049fd3

File tree

125 files changed

+639
-639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+639
-639
lines changed

src/AVFoundation/AVAudioConverterPrimeInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
namespace AVFoundation {
3333

3434
#if NET
35-
[SupportedOSPlatform ("ios9.0")]
35+
[SupportedOSPlatform ("ios")]
3636
[SupportedOSPlatform ("macos")]
3737
[SupportedOSPlatform ("maccatalyst")]
3838
[SupportedOSPlatform ("tvos")]

src/AVFoundation/AVAudioFormat.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public partial class AVAudioFormat {
3838

3939
[Export ("StreamDescription")]
4040
#if NET
41-
[SupportedOSPlatform ("ios8.0")]
41+
[SupportedOSPlatform ("ios")]
4242
[SupportedOSPlatform ("macos")]
4343
[SupportedOSPlatform ("tvos")]
4444
[SupportedOSPlatform ("maccatalyst")]
4545
#endif
4646
public virtual AudioStreamBasicDescription StreamDescription {
4747
#if NET
48-
[SupportedOSPlatform ("ios8.0")]
48+
[SupportedOSPlatform ("ios")]
4949
[SupportedOSPlatform ("macos")]
5050
[SupportedOSPlatform ("tvos")]
5151
[SupportedOSPlatform ("maccatalyst")]

src/AVFoundation/AVAudioRecorder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public partial class AVAudioRecorder {
6464
}
6565

6666
#if NET
67-
[SupportedOSPlatform ("ios10.0")]
67+
[SupportedOSPlatform ("ios")]
6868
[SupportedOSPlatform ("macos")]
6969
[SupportedOSPlatform ("maccatalyst")]
7070
[UnsupportedOSPlatform ("tvos")]

src/AVFoundation/AVBeatRange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
namespace AVFoundation {
3333

3434
#if NET
35-
[SupportedOSPlatform ("ios9.0")]
35+
[SupportedOSPlatform ("ios")]
3636
[SupportedOSPlatform ("macos")]
3737
[SupportedOSPlatform ("maccatalyst")]
3838
[SupportedOSPlatform ("tvos")]

src/AVFoundation/AVCaptureVideoPreviewLayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public partial class AVCaptureVideoPreviewLayer {
1515
public enum InitMode {
1616
WithConnection,
1717
#if NET
18-
[SupportedOSPlatform ("ios8.0")]
18+
[SupportedOSPlatform ("ios")]
1919
[SupportedOSPlatform ("macos")]
2020
[SupportedOSPlatform ("maccatalyst")]
2121
#else

src/AVFoundation/AVPlayerLayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace AVFoundation {
1818
public partial class AVPlayerLayer {
1919
#if NET
20-
[SupportedOSPlatform ("ios9.0")]
20+
[SupportedOSPlatform ("ios")]
2121
[SupportedOSPlatform ("macos")]
2222
[SupportedOSPlatform ("maccatalyst")]
2323
[SupportedOSPlatform ("tvos")]

src/AppKit/Enums.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public enum NSColorRenderingIntent : long {
191191

192192
}
193193

194-
[MacCatalyst (13, 0)]
194+
[MacCatalyst (13, 1)]
195195
[Native]
196196
public enum NSRectEdge : ulong {
197197
MinXEdge, MinYEdge, MaxXEdge, MaxYEdge
@@ -1698,13 +1698,13 @@ public enum NSPasteboardWritingOptions : ulong {
16981698
WritingPromised = 1 << 9
16991699
}
17001700

1701-
[MacCatalyst (13, 0)]
1701+
[MacCatalyst (13, 1)]
17021702
[Native]
17031703
public enum NSToolbarDisplayMode : ulong {
17041704
Default, IconAndLabel, Icon, Label
17051705
}
17061706

1707-
[MacCatalyst (13, 0)]
1707+
[MacCatalyst (13, 1)]
17081708
[Native]
17091709
public enum NSToolbarSizeMode : ulong {
17101710
Default, Regular, Small
@@ -1999,7 +1999,7 @@ public enum NSCollectionViewItemHighlightState : long {
19991999
AsDropTarget = 3
20002000
}
20012001

2002-
[MacCatalyst (13, 0)]
2002+
[MacCatalyst (13, 1)]
20032003
[Mac (10, 11)] // Not marked 10.11 in the headers, but doesn't exist in the 10.10 headers
20042004
[Native]
20052005
[Flags]

src/AudioToolbox/AudioQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public enum AudioQueueStatus { // Implictly cast to OSType
7373
InvalidOfflineMode = -66626,
7474
BufferEnqueuedTwice = -66666,
7575
#if NET
76-
[SupportedOSPlatform ("ios10.0")]
76+
[SupportedOSPlatform ("ios")]
7777
[SupportedOSPlatform ("macos")]
7878
[SupportedOSPlatform ("maccatalyst")]
7979
[SupportedOSPlatform ("tvos")]

src/AudioToolbox/SystemSound.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public void PlaySystemSound ()
203203
}
204204

205205
#if NET
206-
[SupportedOSPlatform ("ios9.0")]
206+
[SupportedOSPlatform ("ios")]
207207
[SupportedOSPlatform ("macos")]
208208
[SupportedOSPlatform ("maccatalyst")]
209209
[SupportedOSPlatform ("tvos")]
@@ -226,7 +226,7 @@ public void PlayAlertSound (Action onCompletion)
226226
}
227227

228228
#if NET
229-
[SupportedOSPlatform ("ios9.0")]
229+
[SupportedOSPlatform ("ios")]
230230
[SupportedOSPlatform ("macos")]
231231
[SupportedOSPlatform ("maccatalyst")]
232232
[SupportedOSPlatform ("tvos")]
@@ -244,7 +244,7 @@ public Task PlayAlertSoundAsync ()
244244
}
245245

246246
#if NET
247-
[SupportedOSPlatform ("ios9.0")]
247+
[SupportedOSPlatform ("ios")]
248248
[SupportedOSPlatform ("macos")]
249249
[SupportedOSPlatform ("maccatalyst")]
250250
[SupportedOSPlatform ("tvos")]
@@ -267,7 +267,7 @@ public void PlaySystemSound (Action onCompletion)
267267
}
268268

269269
#if NET
270-
[SupportedOSPlatform ("ios9.0")]
270+
[SupportedOSPlatform ("ios")]
271271
[SupportedOSPlatform ("macos")]
272272
[SupportedOSPlatform ("maccatalyst")]
273273
[SupportedOSPlatform ("tvos")]
@@ -285,7 +285,7 @@ public Task PlaySystemSoundAsync ()
285285
}
286286

287287
#if NET
288-
[SupportedOSPlatform ("ios9.0")]
288+
[SupportedOSPlatform ("ios")]
289289
[SupportedOSPlatform ("macos")]
290290
[SupportedOSPlatform ("maccatalyst")]
291291
[SupportedOSPlatform ("tvos")]
@@ -297,7 +297,7 @@ public Task PlaySystemSoundAsync ()
297297
unsafe static extern void AudioServicesPlayAlertSoundWithCompletion (uint inSystemSoundID, BlockLiteral* inCompletionBlock);
298298

299299
#if NET
300-
[SupportedOSPlatform ("ios9.0")]
300+
[SupportedOSPlatform ("ios")]
301301
[SupportedOSPlatform ("macos")]
302302
[SupportedOSPlatform ("maccatalyst")]
303303
[SupportedOSPlatform ("tvos")]

src/AudioUnit/AudioComponentDescription.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public enum AudioTypeMusicDevice { // OSType in AudioComponentDescription
120120
Sampler = 0x73616d70, // 'samp'
121121

122122
#if NET
123-
[SupportedOSPlatform ("ios8.0")]
123+
[SupportedOSPlatform ("ios")]
124124
[SupportedOSPlatform ("maccatalyst")]
125125
[SupportedOSPlatform ("macos")]
126126
[SupportedOSPlatform ("tvos")]
@@ -184,7 +184,7 @@ public enum AudioTypeEffect { // OSType in AudioComponentDescription
184184
Delay = 0x64656c79, // 'dely'
185185

186186
#if NET
187-
[SupportedOSPlatform ("ios8.0")]
187+
[SupportedOSPlatform ("ios")]
188188
[SupportedOSPlatform ("maccatalyst")]
189189
[SupportedOSPlatform ("macos")]
190190
[SupportedOSPlatform ("tvos")]

0 commit comments

Comments
 (0)