Add StoreKit Configuration file for local in-app purchase testing
Created Configuration.storekit with two subscription products: - MyCrib Pro Monthly ($4.99/month) * Product ID: com.example.mycrib.pro.monthly * 1 week free trial * Recurring monthly subscription - MyCrib Pro Annual ($49.99/year) * Product ID: com.example.mycrib.pro.annual * 1 month free trial * Recurring annual subscription (17% savings) This allows testing StoreKit 2 purchase flows in the iOS Simulator without needing TestFlight or App Store Connect configuration. Setup instructions: 1. Open iosApp.xcodeproj in Xcode 2. Add Configuration.storekit to project (drag into Project Navigator) 3. Edit scheme (Product > Scheme > Edit Scheme) 4. Go to Run > Options tab 5. Set StoreKit Configuration to "Configuration.storekit" 6. Run app in simulator to test purchases locally 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
139
iosApp/iosApp/Configuration.storekit
Normal file
139
iosApp/iosApp/Configuration.storekit
Normal file
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"identifier" : "C7E7B8F0",
|
||||
"nonRenewingSubscriptions" : [
|
||||
|
||||
],
|
||||
"products" : [
|
||||
|
||||
],
|
||||
"settings" : {
|
||||
"_applicationInternalID" : "6738709434",
|
||||
"_developerTeamID" : "Y3D7Z5NY85",
|
||||
"_failTransactionsEnabled" : false,
|
||||
"_lastSynchronizedDate" : 753868871.33856297,
|
||||
"_locale" : "en_US",
|
||||
"_storefront" : "USA",
|
||||
"_storeKitErrors" : [
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Load Products"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Purchase"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Verification"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "App Store Sync"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Subscription Status"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "App Transaction"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Manage Subscriptions Sheet"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Refund Request Sheet"
|
||||
},
|
||||
{
|
||||
"current" : null,
|
||||
"enabled" : false,
|
||||
"name" : "Offer Code Redeem Sheet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subscriptionGroups" : [
|
||||
{
|
||||
"id" : "21517970",
|
||||
"localizations" : [
|
||||
|
||||
],
|
||||
"name" : "MyCrib Pro",
|
||||
"subscriptions" : [
|
||||
{
|
||||
"adHocOffers" : [
|
||||
|
||||
],
|
||||
"codeOffers" : [
|
||||
|
||||
],
|
||||
"displayPrice" : "4.99",
|
||||
"familyShareable" : false,
|
||||
"groupNumber" : 1,
|
||||
"internalID" : "6738711291",
|
||||
"introductoryOffer" : {
|
||||
"internalID" : "6738711408",
|
||||
"numberOfPeriods" : 1,
|
||||
"paymentMode" : "free",
|
||||
"subscriptionPeriod" : "P1W"
|
||||
},
|
||||
"localizations" : [
|
||||
{
|
||||
"description" : "Unlock unlimited properties, tasks, contractors, and documents",
|
||||
"displayName" : "MyCrib Pro Monthly",
|
||||
"locale" : "en_US"
|
||||
}
|
||||
],
|
||||
"productID" : "com.example.mycrib.pro.monthly",
|
||||
"recurringSubscriptionPeriod" : "P1M",
|
||||
"referenceName" : "MyCrib Pro Monthly",
|
||||
"subscriptionGroupID" : "21517970",
|
||||
"type" : "RecurringSubscription"
|
||||
},
|
||||
{
|
||||
"adHocOffers" : [
|
||||
|
||||
],
|
||||
"codeOffers" : [
|
||||
|
||||
],
|
||||
"displayPrice" : "49.99",
|
||||
"familyShareable" : false,
|
||||
"groupNumber" : 2,
|
||||
"internalID" : "6738711458",
|
||||
"introductoryOffer" : {
|
||||
"internalID" : "6738711502",
|
||||
"numberOfPeriods" : 1,
|
||||
"paymentMode" : "free",
|
||||
"subscriptionPeriod" : "P1M"
|
||||
},
|
||||
"localizations" : [
|
||||
{
|
||||
"description" : "Unlock unlimited properties, tasks, contractors, and documents - Save 17% with annual billing",
|
||||
"displayName" : "MyCrib Pro Annual",
|
||||
"locale" : "en_US"
|
||||
}
|
||||
],
|
||||
"productID" : "com.example.mycrib.pro.annual",
|
||||
"recurringSubscriptionPeriod" : "P1Y",
|
||||
"referenceName" : "MyCrib Pro Annual",
|
||||
"subscriptionGroupID" : "21517970",
|
||||
"type" : "RecurringSubscription"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"version" : {
|
||||
"major" : 4,
|
||||
"minor" : 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user