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

[StoreKit] Implement Xcode 16.0 beta 1-6 changes. #21165

Merged
merged 1 commit into from
Sep 4, 2024
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
31 changes: 30 additions & 1 deletion src/StoreKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ namespace StoreKit {
// typedef NSInteger SKPaymentTransactionState;
// StoreKit.framework/Headers/SKPaymentTransaction.h
/// <summary>Transaction state.</summary>
[Deprecated (PlatformName.iOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacCatalyst, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacOSX, 15, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.TvOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.WatchOS, 11, 0 /* Apple's replacement requires Swift */ )]
[Watch (6, 2)]
[MacCatalyst (13, 1)]
[Native]
Expand Down Expand Up @@ -70,6 +75,11 @@ public enum SKDownloadState : long {
}

/// <summary>Enumerates authorization states for music store access.</summary>
[Deprecated (PlatformName.iOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacCatalyst, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacOSX, 15, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.TvOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.WatchOS, 11, 0 /* Apple's replacement requires Swift */ )]
[Watch (7, 0)]
[MacCatalyst (13, 1)]
[Native]
Expand All @@ -81,19 +91,28 @@ public enum SKCloudServiceAuthorizationStatus : long {
}

/// <summary>Enumerates flags that describe the user's local music library capabilities..</summary>
[Deprecated (PlatformName.iOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacCatalyst, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacOSX, 15, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.TvOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.WatchOS, 11, 0 /* Apple's replacement requires Swift */ )]
[Watch (7, 0)]
[MacCatalyst (13, 1)]
[Native]
public enum SKCloudServiceCapability : ulong {
None = 0,
MusicCatalogPlayback = 1 << 0,
[NoTV]
[MacCatalyst (13, 1)]
MusicCatalogSubscriptionEligible = 1 << 1,
AddToCloudMusicLibrary = 1 << 8
}

/// <summary>Enumerates visiblity settings for a promoted product.</summary>
[Deprecated (PlatformName.iOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacCatalyst, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacOSX, 15, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.TvOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.WatchOS, 11, 0 /* Apple's replacement requires Swift */ )]
[Mac (11, 0)]
[NoWatch]
[MacCatalyst (13, 1)]
Expand All @@ -105,6 +124,11 @@ public enum SKProductStorePromotionVisibility : long {
}

/// <summary>Defines the natural period for a subscription.</summary>
[Deprecated (PlatformName.iOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacCatalyst, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacOSX, 15, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.TvOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.WatchOS, 11, 0 /* Apple's replacement requires Swift */ )]
[Watch (6, 2), iOS (11, 2), TV (11, 2)]
[MacCatalyst (13, 1)]
[Native]
Expand All @@ -116,6 +140,11 @@ public enum SKProductPeriodUnit : ulong {
}

/// <summary>Enumerates how a discount price is applied.</summary>
[Deprecated (PlatformName.iOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacCatalyst, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.MacOSX, 15, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.TvOS, 18, 0 /* Apple's replacement requires Swift */ )]
[Deprecated (PlatformName.WatchOS, 11, 0 /* Apple's replacement requires Swift */ )]
[Watch (6, 2), iOS (11, 2), TV (11, 2)]
[MacCatalyst (13, 1)]
[Native]
Expand Down
132 changes: 128 additions & 4 deletions src/storekit.cs

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions tests/cecil-tests/ApiAvailabilityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ public void FindMissingObsoleteAttributes ()
"Security.SslContext.SetSessionTickets(System.Boolean)",
"Security.SslProtocol Security.SecProtocolMetadata::NegotiatedProtocolVersion()",
"Speech.SFVoiceAnalytics Speech.SFTranscriptionSegment::VoiceAnalytics()",
"StoreKit.SKCloudServiceController.RequestPersonalizationToken(System.String, System.Action`2<Foundation.NSString,Foundation.NSError>)",
"StoreKit.SKCloudServiceController.RequestPersonalizationTokenAsync(System.String)",
"StoreKit.SKMutablePayment.PaymentWithProduct(System.String)",
"StoreKit.SKStoreReviewController.RequestReview()",
"System.Boolean AVFoundation.AVCaptureConnection::SupportsVideoMaxFrameDuration()",
"System.Boolean AVFoundation.AVCaptureConnection::SupportsVideoMinFrameDuration()",
"System.Boolean AVFoundation.AVCapturePhotoSettings::AutoDualCameraFusionEnabled()",
Expand All @@ -246,7 +242,6 @@ public void FindMissingObsoleteAttributes ()
"System.String PassKit.PKShareablePassMetadata::LocalizedDescription()",
"System.String PassKit.PKShareablePassMetadata::OwnerDisplayName()",
"System.String PassKit.PKShareablePassMetadata::TemplateIdentifier()",
"System.String StoreKit.SKProduct::ContentVersion()",
"System.String UserNotifications.UNMutableNotificationContent::SummaryArgument()",
"System.String UserNotifications.UNNotificationContent::SummaryArgument()",
"System.UIntPtr UserNotifications.UNMutableNotificationContent::SummaryArgumentCount()",
Expand Down

This file was deleted.

Loading