-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[in_app_purchase_storekit] Replace deprecated offer code API #11223
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
base: main
Are you sure you want to change the base?
Changes from all commits
3496422
6ec5914
f0a9d80
48af768
11818fb
d9658ba
8a57827
c18ff02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,8 +60,6 @@ | |
| 21CE6E615CF661FC0E18FB0A /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; | ||
| 6458340B2CE3497379F6B389 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; }; | ||
| 784666492D4C4C64000A1A5F /* FlutterFramework */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterFramework; path = Flutter/ephemeral/Packages/.packages/FlutterFramework; sourceTree = "<group>"; }; | ||
| 78DABEA22ED26510000E7860 /* in_app_purchase_storekit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = in_app_purchase_storekit; path = ../../darwin/in_app_purchase_storekit; sourceTree = "<group>"; }; | ||
| 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = "<group>"; }; | ||
| 7AB7758EFACBE3E1E7BDE0C6 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; }; | ||
| 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; | ||
|
|
@@ -138,8 +136,6 @@ | |
| 9740EEB11CF90186004384FC /* Flutter */ = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
| 78DABEA22ED26510000E7860 /* in_app_purchase_storekit */, | ||
| 784666492D4C4C64000A1A5F /* FlutterFramework */, | ||
| 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */, | ||
| 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, | ||
| 9740EEB21CF90195004384FC /* Debug.xcconfig */, | ||
|
|
@@ -307,7 +303,7 @@ | |
| ); | ||
| mainGroup = 97C146E51CF9000F007C117D; | ||
| packageReferences = ( | ||
| 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */, | ||
| 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, | ||
| ); | ||
| productRefGroup = 97C146EF1CF9000F007C117D /* Products */; | ||
| projectDirPath = ""; | ||
|
|
@@ -588,8 +584,10 @@ | |
| baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| CODE_SIGN_IDENTITY = "Apple Development"; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| CURRENT_PROJECT_VERSION = 1; | ||
| DEVELOPMENT_TEAM = ""; | ||
| DEVELOPMENT_TEAM = S8QB4VV633; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding a specific |
||
| ENABLE_BITCODE = NO; | ||
| FRAMEWORK_SEARCH_PATHS = ( | ||
| "$(inherited)", | ||
|
|
@@ -604,8 +602,9 @@ | |
| "$(inherited)", | ||
| "$(PROJECT_DIR)/Flutter", | ||
| ); | ||
| PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.inAppPurchaseExample; | ||
| PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.inAppPurchaseExample9; | ||
| PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| PROVISIONING_PROFILE_SPECIFIER = ""; | ||
| VERSIONING_SYSTEM = "apple-generic"; | ||
| }; | ||
| name = Debug; | ||
|
|
@@ -615,8 +614,10 @@ | |
| baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| CODE_SIGN_IDENTITY = "Apple Development"; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| CURRENT_PROJECT_VERSION = 1; | ||
| DEVELOPMENT_TEAM = ""; | ||
| DEVELOPMENT_TEAM = S8QB4VV633; | ||
| ENABLE_BITCODE = NO; | ||
| FRAMEWORK_SEARCH_PATHS = ( | ||
| "$(inherited)", | ||
|
|
@@ -631,8 +632,9 @@ | |
| "$(inherited)", | ||
| "$(PROJECT_DIR)/Flutter", | ||
| ); | ||
| PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.inAppPurchaseExample; | ||
| PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.plugins.inAppPurchaseExample9; | ||
| PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| PROVISIONING_PROFILE_SPECIFIER = ""; | ||
| VERSIONING_SYSTEM = "apple-generic"; | ||
| }; | ||
| name = Release; | ||
|
|
@@ -649,8 +651,9 @@ | |
| CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
| CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
| CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
| "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| DEVELOPMENT_TEAM = ""; | ||
| DEVELOPMENT_TEAM = S8QB4VV633; | ||
| INFOPLIST_FILE = RunnerTests/Info.plist; | ||
| LD_RUNPATH_SEARCH_PATHS = ( | ||
| "$(inherited)", | ||
|
|
@@ -680,8 +683,9 @@ | |
| CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
| CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
| CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
| "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| DEVELOPMENT_TEAM = ""; | ||
| DEVELOPMENT_TEAM = S8QB4VV633; | ||
| INFOPLIST_FILE = RunnerTests/Info.plist; | ||
| LD_RUNPATH_SEARCH_PATHS = ( | ||
| "$(inherited)", | ||
|
|
@@ -730,7 +734,7 @@ | |
| /* End XCConfigurationList section */ | ||
|
|
||
| /* Begin XCLocalSwiftPackageReference section */ | ||
| 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = { | ||
| 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { | ||
| isa = XCLocalSwiftPackageReference; | ||
| relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the
#availablecheck fails, thecompletionhandler is never called. This will cause the calling Dart code to hang indefinitely. You should addelseblocks to handle cases where the API is not available on the current OS version and call the completion handler with an appropriate error.