Skip to content

Commit

Permalink
start on IAP
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtxie committed Mar 26, 2024
1 parent c01c706 commit aedad7e
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CubeTime.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
2326436028C4927600F6322E /* TimerHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2326435F28C4927600F6322E /* TimerHeader.swift */; };
23329E9029C31CA60017AE99 /* libz.1.1.3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 23329E8F29C31CA60017AE99 /* libz.1.1.3.tbd */; settings = {ATTRIBUTES = (Required, ); }; };
233FE7B6274F109600C6F1DF /* Helper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 233FE7B5274F109600C6F1DF /* Helper.swift */; };
23418F592BB2A8C900398EE2 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 23418F582BB2A8C900398EE2 /* StoreKit.framework */; };
2359689327A367A0003ED9E1 /* StopwatchManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2359689227A367A0003ED9E1 /* StopwatchManager.swift */; };
235CDA0327A786D800F48C89 /* Updates.swift in Sources */ = {isa = PBXBuildFile; fileRef = 235CDA0227A786D800F48C89 /* Updates.swift */; };
235D6A6729C2C060002D90D8 /* Models.swift in Sources */ = {isa = PBXBuildFile; fileRef = 235D6A6629C2C060002D90D8 /* Models.swift */; };
Expand Down Expand Up @@ -117,6 +118,8 @@
2326435F28C4927600F6322E /* TimerHeader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TimerHeader.swift; sourceTree = "<group>"; };
23329E8F29C31CA60017AE99 /* libz.1.1.3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.1.1.3.tbd; path = usr/lib/libz.1.1.3.tbd; sourceTree = SDKROOT; };
233FE7B5274F109600C6F1DF /* Helper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Helper.swift; sourceTree = "<group>"; };
23418F582BB2A8C900398EE2 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
23418F5A2BB2ADE500398EE2 /* CTDonations.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; name = CTDonations.storekit; path = CubeTime/CTDonations.storekit; sourceTree = SOURCE_ROOT; };
2354882227642E2800FE8D7A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
2359689227A367A0003ED9E1 /* StopwatchManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopwatchManager.swift; sourceTree = "<group>"; };
235CDA0227A786D800F48C89 /* Updates.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Updates.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -204,6 +207,7 @@
buildActionMask = 2147483647;
files = (
23329E9029C31CA60017AE99 /* libz.1.1.3.tbd in Frameworks */,
23418F592BB2A8C900398EE2 /* StoreKit.framework in Frameworks */,
E5B1FCED2BAD892A007C1688 /* TNoodle.xcframework in Frameworks */,
AF7697DC293C1EFA00FF1C50 /* SVGView in Frameworks */,
23A1CDBD29399FE000F0895D /* SwiftfulLoadingIndicators in Frameworks */,
Expand Down Expand Up @@ -318,6 +322,7 @@
23B45E7129A855F400BDF49E /* Frameworks */ = {
isa = PBXGroup;
children = (
23418F582BB2A8C900398EE2 /* StoreKit.framework */,
E5B1FCEC2BAD892A007C1688 /* TNoodle.xcframework */,
23329E8F29C31CA60017AE99 /* libz.1.1.3.tbd */,
);
Expand Down Expand Up @@ -446,6 +451,7 @@
23E81E6B275D8DAE00B741E3 /* GeneralSettings.swift */,
23E81E6E275D8DCA00B741E3 /* AppearanceSettings.swift */,
23E81E72275D8DEA00B741E3 /* AboutSettings.swift */,
23418F5A2BB2ADE500398EE2 /* CTDonations.storekit */,
7D7E2011275DD52600ADF01D /* Licenses.swift */,
AFA444A129C4290400795434 /* SettingsWidgets.swift */,
);
Expand Down
3 changes: 3 additions & 0 deletions CubeTime.xcodeproj/xcshareddata/xcschemes/CubeTime.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
<StoreKitConfigurationFileReference
identifier = "../../CubeTime/CTDonations.storekit">
</StoreKitConfigurationFileReference>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
115 changes: 115 additions & 0 deletions CubeTime/CTDonations.storekit
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"identifier" : "2C8EA600",
"nonRenewingSubscriptions" : [

],
"products" : [
{
"displayPrice" : "5.99",
"familyShareable" : false,
"internalID" : "6480038023",
"localizations" : [
{
"description" : "Support CubeTime's development even more!!",
"displayName" : "$10 Donation",
"locale" : "en_AU"
}
],
"productID" : "com.cubetime.cubetime.10donation",
"referenceName" : "$10 Donation",
"type" : "Consumable"
},
{
"displayPrice" : "2.99",
"familyShareable" : false,
"internalID" : "6480037855",
"localizations" : [
{
"description" : "Support CubeTime's development!",
"displayName" : "$5 Donation",
"locale" : "en_AU"
}
],
"productID" : "com.cubetime.cubetime.5donation",
"referenceName" : "$5 Donation",
"type" : "Consumable"
},
{
"displayPrice" : "29.99",
"familyShareable" : false,
"internalID" : "6480037892",
"localizations" : [
{
"description" : "Support CubeTime and future work!",
"displayName" : "$50 Donation!",
"locale" : "en_AU"
}
],
"productID" : "com.cubetime.cubetime.50donation",
"referenceName" : "$50 Donation",
"type" : "Consumable"
}
],
"settings" : {
"_applicationInternalID" : "1600392245",
"_developerTeamID" : "52VS5QG4YD",
"_failTransactionsEnabled" : false,
"_lastSynchronizedDate" : 733130215.29129398,
"_locale" : "en_AU",
"_storefront" : "NZL",
"_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" : [

],
"version" : {
"major" : 3,
"minor" : 0
}
}
7 changes: 7 additions & 0 deletions CubeTime/Settings/AboutSettings.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import SwiftUI
import StoreKit

class CTDonation {
static let fiveDonationIdentifier = "com.cubetime.cubetime.5donation"
static let tenDonationIdentifier = "com.cubetime.cubetime.10donation"
static let fiftyDonationIdentifity = "com.cubetime.cubetime.50donation"
}


enum ProjectLicense: String {
Expand Down
Binary file removed CubeTime/launchScreenImage.png
Binary file not shown.

0 comments on commit aedad7e

Please sign in to comment.