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

Remove With Completion Name #37

Merged
merged 1 commit into from
Nov 9, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<IsPackable>true</IsPackable>
<PackageId>Xamarin.RevenueCat.iOS.Extensions</PackageId>
<Description>Contains convenience methods and async extensions for Xamarin.RevenueCat.iOS</Description>
<Version>4.30.0.2</Version>
<Version>4.30.0.3</Version>
<Authors>Christian Kapplmüller, Albilaga</Authors>
<Company>fun.music IT GmbH</Company>
<PackageOutputPath>nugetoutput</PackageOutputPath>
Expand Down
27 changes: 13 additions & 14 deletions Xamarin.RevenueCat.iOS/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ void CustomerInfoWithFetchPolicy(RCCacheFetchPolicy fetchPolicy,

// @required -(void)getOfferingsWithCompletion:(void (^ _Nonnull)(RCOfferings * _Nullable, NSError * _Nullable))completion;
[Export("getOfferingsWithCompletion:")]
void GetOfferingsWithCompletion(Action<RCOfferings, NSError> completion);
void GetOfferings(Action<RCOfferings, NSError> completion);

// @required -(void)offeringsWithCompletionHandler:(void (^ _Nonnull)(RCOfferings * _Nullable, NSError * _Nullable))completionHandler __attribute__((availability(watchos, introduced=6.2))) __attribute__((availability(tvos, introduced=13.0))) __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0)));
[Export("offeringsWithCompletionHandler:")]
Expand Down Expand Up @@ -761,15 +761,15 @@ void PurchaseWithPackage(RCPackage package,

// @required -(void)restorePurchasesWithCompletion:(void (^ _Nullable)(RCCustomerInfo * _Nullable, NSError * _Nullable))completion;
[Export("restorePurchasesWithCompletion:")]
void RestorePurchasesWithCompletion([NullAllowed] Action<RCCustomerInfo, NSError> completion);
void RestorePurchases([NullAllowed] Action<RCCustomerInfo, NSError> completion);

// @required -(void)restorePurchasesWithCompletionHandler:(void (^ _Nonnull)(RCCustomerInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((availability(watchos, introduced=6.2))) __attribute__((availability(tvos, introduced=13.0))) __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0)));
[Export("restorePurchasesWithCompletionHandler:")]
void RestorePurchasesWithCompletionHandler(Action<RCCustomerInfo, NSError> completionHandler);

// @required -(void)syncPurchasesWithCompletion:(void (^ _Nullable)(RCCustomerInfo * _Nullable, NSError * _Nullable))completion;
[Export("syncPurchasesWithCompletion:")]
void SyncPurchasesWithCompletion([NullAllowed] Action<RCCustomerInfo, NSError> completion);
void SyncPurchases([NullAllowed] Action<RCCustomerInfo, NSError> completion);

// @required -(void)syncPurchasesWithCompletionHandler:(void (^ _Nonnull)(RCCustomerInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((availability(watchos, introduced=6.2))) __attribute__((availability(tvos, introduced=13.0))) __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0)));
[Export("syncPurchasesWithCompletionHandler:")]
Expand Down Expand Up @@ -843,7 +843,7 @@ void BeginRefundRequestForEntitlement(string entitlementID,

// @required -(void)beginRefundRequestForActiveEntitlementWithCompletion:(void (^ _Nonnull)(enum RCRefundRequestStatus, NSError * _Nullable))completionHandler __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable))) __attribute__((availability(macos, unavailable))) __attribute__((availability(ios, introduced=15.0)));
[Export("beginRefundRequestForActiveEntitlementWithCompletion:")]
void BeginRefundRequestForActiveEntitlementWithCompletion(
void BeginRefundRequestForActiveEntitlement(
Action<RCRefundRequestStatus, NSError> completionHandler);

// @required -(void)presentCodeRedemptionSheet __attribute__((availability(maccatalyst, unavailable))) __attribute__((availability(macos, unavailable))) __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable))) __attribute__((availability(ios, introduced=14.0)));
Expand All @@ -856,7 +856,7 @@ void BeginRefundRequestForActiveEntitlementWithCompletion(

// @required -(void)showManageSubscriptionsWithCompletion:(void (^ _Nonnull)(NSError * _Nullable))completion __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable)));
[Export("showManageSubscriptionsWithCompletion:")]
void ShowManageSubscriptionsWithCompletion(Action<NSError> completion);
void ShowManageSubscriptions(Action<NSError> completion);

// @required -(void)showManageSubscriptionsWithCompletionHandler:(void (^ _Nonnull)(NSError * _Nullable))completionHandler __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable)));
[Export("showManageSubscriptionsWithCompletionHandler:")]
Expand Down Expand Up @@ -1163,7 +1163,7 @@ void PurchaseWithPackage(RCPackage package,

// -(void)syncPurchasesWithCompletion:(void (^ _Nullable)(RCCustomerInfo * _Nullable, NSError * _Nullable))completion;
[Export("syncPurchasesWithCompletion:")]
void SyncPurchasesWithCompletion([NullAllowed] Action<RCCustomerInfo, NSError> completion);
void SyncPurchases([NullAllowed] Action<RCCustomerInfo, NSError> completion);

// -(void)syncPurchasesWithCompletionHandler:(void (^ _Nonnull)(RCCustomerInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((availability(watchos, introduced=6.2))) __attribute__((availability(tvos, introduced=13.0))) __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0)));
[Export("syncPurchasesWithCompletionHandler:")]
Expand Down Expand Up @@ -1234,7 +1234,7 @@ void EligiblePromotionalOffersForProduct(RCStoreProduct product,

// -(void)showManageSubscriptionsWithCompletion:(void (^ _Nonnull)(NSError * _Nullable))completion __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable)));
[Export("showManageSubscriptionsWithCompletion:")]
void ShowManageSubscriptionsWithCompletion(Action<NSError> completion);
void ShowManageSubscriptions(Action<NSError> completion);

// -(void)showManageSubscriptionsWithCompletionHandler:(void (^ _Nonnull)(NSError * _Nullable))completionHandler __attribute__((availability(macos, introduced=10.15))) __attribute__((availability(ios, introduced=13.0))) __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable)));
[Export("showManageSubscriptionsWithCompletionHandler:")]
Expand All @@ -1251,7 +1251,7 @@ void BeginRefundRequestForEntitlement(string entitlementID,

// -(void)beginRefundRequestForActiveEntitlementWithCompletion:(void (^ _Nonnull)(enum RCRefundRequestStatus, NSError * _Nullable))completionHandler __attribute__((availability(tvos, unavailable))) __attribute__((availability(watchos, unavailable))) __attribute__((availability(macos, unavailable))) __attribute__((availability(ios, introduced=15.0)));
[Export("beginRefundRequestForActiveEntitlementWithCompletion:")]
void BeginRefundRequestForActiveEntitlementWithCompletion(
void BeginRefundRequestForActiveEntitlement(
Action<RCRefundRequestStatus, NSError> completionHandler);

// @property (nonatomic, strong, class) RCPlatformInfo * _Nullable platformInfo;
Expand All @@ -1277,10 +1277,9 @@ interface RCPlatformInfo
interface IPurchasesOrchestratorDelegate
{
// -(void)readyForPromotedProduct:(RCStoreProduct * _Nonnull)product purchase:(void (^ _Nonnull)(void (^ _Nonnull)(RCStoreTransaction * _Nullable, RCCustomerInfo * _Nullable, NSError * _Nullable, BOOL)))startPurchase;
[Abstract]
[Export("readyForPromotedProduct:purchase:")]
void ReadyForPromotedProduct(RCStoreProduct product,
Action<RCStoreTransaction, RCCustomerInfo, NSError, bool> startPurchase);
[Abstract]
[Export("readyForPromotedProduct:purchase:")]
void ReadyForPromotedProduct(RCStoreProduct product, Action<RCStoreTransaction, RCCustomerInfo, NSError, bool> startPurchase);

// @property (readonly, nonatomic) BOOL shouldShowPriceConsent __attribute__((availability(maccatalyst, introduced=13.4))) __attribute__((availability(ios, introduced=13.4)));
[Abstract]
Expand Down Expand Up @@ -1315,11 +1314,11 @@ interface RCPurchasesDiagnostics
// @property (readonly, getter = default, nonatomic, strong, class) RCPurchasesDiagnostics * _Nonnull default_;
[Static]
[Export("default_", ArgumentSemantic.Strong)]
RCPurchasesDiagnostics Default_ { [Bind("default")] get; }
RCPurchasesDiagnostics Default { [Bind("default")] get; }

// -(void)testSDKHealthWithCompletion:(void (^ _Nonnull)(NSError * _Nullable))completionHandler;
[Export("testSDKHealthWithCompletion:")]
void TestSDKHealthWithCompletion(Action<NSError> completionHandler);
void TestSDKHealth(Action<NSError> completionHandler);
}

// @interface RCStoreProduct : NSObject
Expand Down
2 changes: 1 addition & 1 deletion Xamarin.RevenueCat.iOS/Xamarin.RevenueCat.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Xamarin.RevenueCat.iOS</PackageId>
<Version>4.30.0.2</Version>
<Version>4.30.0.3</Version>
<Description>Contains bindings for https://docs.revenuecat.com/docs/ios</Description>
<Authors>Christian Kapplmüller, Albilaga</Authors>
<Company>fun.music IT GmbH</Company>
Expand Down