Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x
- name: Install MAUI workload
run: dotnet workload install maui-ios
- name: Restore dependencies
Expand Down
8 changes: 8 additions & 0 deletions MAUI.StoreKit2/ApiDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,13 @@ interface PaymentTransaction
// @property (readonly, copy, nonatomic) NSString * _Nullable revocationReason;
[NullAllowed, Export("revocationReason")]
string RevocationReason { get; }

/// <summary>
/// The JWS (JSON Web Signature) representation of the transaction for server-side verification.
/// Format: header.payload.signature (Base64URL encoded, 3 parts separated by dots).
/// </summary>
// @property (readonly, copy, nonatomic) NSString * _Nonnull jwsRepresentation;
[Export("jwsRepresentation")]
string JwsRepresentation { get; }
}
}
4 changes: 2 additions & 2 deletions MAUI.StoreKit2/MAUI.StoreKit2.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-ios</TargetFramework>
<TargetFramework>net10.0-ios</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<IsBindingProject>true</IsBindingProject>
Expand All @@ -19,7 +19,7 @@

<!-- NuGet Package Information -->
<PackageId>StoreKit2</PackageId>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Yuting Li</Authors>
<Company>Shanghai Jiuqianji Technology Co., Ltd.</Company>
<Product>MAUI StoreKit2 IAP Module</Product>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
#ifndef STOREKIT2FRAMEWORK_SWIFT_H
#define STOREKIT2FRAMEWORK_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -356,6 +356,9 @@ SWIFT_CLASS("_TtC18StoreKit2Framework18PaymentTransaction") SWIFT_AVAILABILITY(i
@property (nonatomic, readonly) BOOL isUpgraded;
@property (nonatomic, readonly, copy) NSDate * _Nullable revocationDate;
@property (nonatomic, readonly, copy) NSString * _Nullable revocationReason;
/// The JWS (JSON Web Signature) representation of the transaction, used for server-side verification.
/// Format: header.payload.signature (Base64URL encoded, 3 parts separated by dots)
@property (nonatomic, readonly, copy) NSString * _Nonnull jwsRepresentation;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down
Binary file modified MAUI.StoreKit2/StoreKit2Framework.framework/Info.plist
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentProduct",
"mangledName": "$s18StoreKit2Framework14PaymentProductC",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"intro_iOS": "15.0",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -984,10 +985,61 @@
}
]
},
{
"kind": "Var",
"name": "jwsRepresentation",
"printedName": "jwsRepresentation",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"declKind": "Var",
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentTransaction(py)jwsRepresentation",
"mangledName": "$s18StoreKit2Framework18PaymentTransactionC17jwsRepresentationSSvp",
"moduleName": "StoreKit2Framework",
"declAttributes": [
"Final",
"HasStorage",
"AccessControl",
"ObjC",
"RawDocComment"
],
"isLet": true,
"hasStorage": true,
"accessors": [
{
"kind": "Accessor",
"name": "Get",
"printedName": "Get()",
"children": [
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"declKind": "Accessor",
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentTransaction(im)jwsRepresentation",
"mangledName": "$s18StoreKit2Framework18PaymentTransactionC17jwsRepresentationSSvg",
"moduleName": "StoreKit2Framework",
"implicit": true,
"declAttributes": [
"Final",
"ObjC"
],
"accessorKind": "get"
}
]
},
{
"kind": "Constructor",
"name": "init",
"printedName": "init(transaction:)",
"printedName": "init(transaction:jwsRepresentation:)",
"children": [
{
"kind": "TypeNominal",
Expand All @@ -1000,11 +1052,17 @@
"name": "Transaction",
"printedName": "StoreKit.Transaction",
"usr": "s:8StoreKit11TransactionV"
},
{
"kind": "TypeNominal",
"name": "String",
"printedName": "Swift.String",
"usr": "s:SS"
}
],
"declKind": "Constructor",
"usr": "s:18StoreKit2Framework18PaymentTransactionC11transactionAC0A3Kit0E0V_tcfc",
"mangledName": "$s18StoreKit2Framework18PaymentTransactionC11transactionAC0A3Kit0E0V_tcfc",
"usr": "s:18StoreKit2Framework18PaymentTransactionC11transaction17jwsRepresentationAC0A3Kit0E0V_SStcfc",
"mangledName": "$s18StoreKit2Framework18PaymentTransactionC11transaction17jwsRepresentationAC0A3Kit0E0V_SStcfc",
"moduleName": "StoreKit2Framework",
"declAttributes": [
"AccessControl"
Expand Down Expand Up @@ -1042,6 +1100,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentTransaction",
"mangledName": "$s18StoreKit2Framework18PaymentTransactionC",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"intro_iOS": "15.0",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -1191,6 +1250,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(py)delegate",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC8delegateAA0dE8Delegate_pSgvp",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"declAttributes": [
"HasInitialValue",
"HasStorage",
Expand Down Expand Up @@ -1226,6 +1286,7 @@
"mangledName": "$s18StoreKit2Framework14PaymentManagerC8delegateAA0dE8Delegate_pSgvg",
"moduleName": "StoreKit2Framework",
"implicit": true,
"isOpen": true,
"declAttributes": [
"ObjC"
],
Expand Down Expand Up @@ -1261,6 +1322,7 @@
"mangledName": "$s18StoreKit2Framework14PaymentManagerC8delegateAA0dE8Delegate_pSgvs",
"moduleName": "StoreKit2Framework",
"implicit": true,
"isOpen": true,
"declAttributes": [
"ObjC"
],
Expand All @@ -1282,6 +1344,7 @@
"mangledName": "$s18StoreKit2Framework14PaymentManagerC8delegateAA0dE8Delegate_pSgvM",
"moduleName": "StoreKit2Framework",
"implicit": true,
"isOpen": true,
"intro_iOS": "15.0",
"declAttributes": [
"Available"
Expand Down Expand Up @@ -1358,6 +1421,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(im)requestProductsWithProductIds:completion:",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC15requestProducts10productIds10completionySaySSG_ySb_SSSgtctF",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"objc_name": "requestProductsWithProductIds:completion:",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -1441,6 +1505,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(im)purchaseProductWithProductId:appAccountToken:completion:",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC15purchaseProduct9productId15appAccountToken10completionySS_10Foundation4UUIDVSgySb_SSSgtctF",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"objc_name": "purchaseProductWithProductId:appAccountToken:completion:",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -1502,6 +1567,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(im)restorePurchasesWithCompletion:",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC16restorePurchases10completionyySb_SSSgtc_tF",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"objc_name": "restorePurchasesWithCompletion:",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -1539,6 +1605,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(im)getProductWithProductId:",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC10getProduct9productIdAA0dG0CSgSS_tF",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"objc_name": "getProductWithProductId:",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -1570,6 +1637,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(im)getAllProducts",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC14getAllProductsSayAA0D7ProductCGyF",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"declAttributes": [
"AccessControl",
"ObjC"
Expand Down Expand Up @@ -1636,6 +1704,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager(im)checkPurchaseStatusWithProductId:completion:",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC19checkPurchaseStatus9productId10completionySS_ySb_AA0D11TransactionCSgtctF",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"objc_name": "checkPurchaseStatusWithProductId:completion:",
"declAttributes": [
"AccessControl",
Expand All @@ -1648,6 +1717,7 @@
"usr": "c:@M@StoreKit2Framework@objc(cs)PaymentManager",
"mangledName": "$s18StoreKit2Framework14PaymentManagerC",
"moduleName": "StoreKit2Framework",
"isOpen": true,
"intro_iOS": "15.0",
"declAttributes": [
"AccessControl",
Expand Down Expand Up @@ -1731,9 +1801,9 @@
},
"ConstValues": [
{
"filePath": "\/Users\/yutingli1123\/git\/MAUI.StoreKit2\/StoreKit2Framework\/StoreKit2Framework\/StoreKit2Framework.swift",
"filePath": "\/tmp\/MAUI.StoreKit2\/StoreKit2Framework\/StoreKit2Framework\/StoreKit2Framework.swift",
"kind": "Dictionary",
"offset": 2987,
"offset": 3287,
"length": 3,
"value": "[]"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
// swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name StoreKit2Framework
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
// swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name StoreKit2Framework
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
import Foundation
import StoreKit
import Swift
Expand Down Expand Up @@ -34,18 +34,29 @@ import _SwiftConcurrencyShims
@objc final public let isUpgraded: Swift.Bool
@objc final public let revocationDate: Foundation.Date?
@objc final public let revocationReason: Swift.String?
public init(transaction: StoreKit.Transaction)
@objc final public let jwsRepresentation: Swift.String
public init(transaction: StoreKit.Transaction, jwsRepresentation: Swift.String)
@objc deinit
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @available(iOS 15.0, *)
@objc public class PaymentManager : ObjectiveC.NSObject {
@objc public static let shared: StoreKit2Framework.PaymentManager
@objc weak public var delegate: (any StoreKit2Framework.PaymentManagerDelegate)?
@objc deinit
#if compiler(>=5.3) && $NonescapableTypes
@objc public func requestProducts(productIds: [Swift.String], completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@objc public func purchaseProduct(productId: Swift.String, appAccountToken: Foundation.UUID? = nil, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@objc public func restorePurchases(completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@objc public func getProduct(productId: Swift.String) -> StoreKit2Framework.PaymentProduct?
#endif
@objc public func getAllProducts() -> [StoreKit2Framework.PaymentProduct]
#if compiler(>=5.3) && $NonescapableTypes
@objc public func checkPurchaseStatus(productId: Swift.String, completion: @escaping (Swift.Bool, StoreKit2Framework.PaymentTransaction?) -> Swift.Void)
#endif
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
// swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name StoreKit2Framework
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
// swift-compiler-version: Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
// swift-module-flags: -target arm64-apple-ios15.6 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name StoreKit2Framework
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.1
import Foundation
import StoreKit
import Swift
Expand Down Expand Up @@ -34,18 +34,29 @@ import _SwiftConcurrencyShims
@objc final public let isUpgraded: Swift.Bool
@objc final public let revocationDate: Foundation.Date?
@objc final public let revocationReason: Swift.String?
public init(transaction: StoreKit.Transaction)
@objc final public let jwsRepresentation: Swift.String
public init(transaction: StoreKit.Transaction, jwsRepresentation: Swift.String)
@objc deinit
}
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @available(iOS 15.0, *)
@objc public class PaymentManager : ObjectiveC.NSObject {
@objc public static let shared: StoreKit2Framework.PaymentManager
@objc weak public var delegate: (any StoreKit2Framework.PaymentManagerDelegate)?
@objc deinit
#if compiler(>=5.3) && $NonescapableTypes
@objc public func requestProducts(productIds: [Swift.String], completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@objc public func purchaseProduct(productId: Swift.String, appAccountToken: Foundation.UUID? = nil, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@objc public func restorePurchases(completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
#endif
#if compiler(>=5.3) && $NonescapableTypes
@objc public func getProduct(productId: Swift.String) -> StoreKit2Framework.PaymentProduct?
#endif
@objc public func getAllProducts() -> [StoreKit2Framework.PaymentProduct]
#if compiler(>=5.3) && $NonescapableTypes
@objc public func checkPurchaseStatus(productId: Swift.String, completion: @escaping (Swift.Bool, StoreKit2Framework.PaymentTransaction?) -> Swift.Void)
#endif
}
Binary file not shown.
Binary file modified MAUI.StoreKit2/StoreKit2Framework.framework/StoreKit2Framework
Binary file not shown.
Loading
Loading