Skip to content

Commit

Permalink
Updated DocC docs and SKHelper subscription helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
russell-archer committed Sep 19, 2024
1 parent 8e32c9b commit cca763b
Show file tree
Hide file tree
Showing 4,613 changed files with 4,601 additions and 4,593 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion Sources/SKHelper/Core/SKHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public class SKHelper: Observable {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "d MMM y"

pi.isPurchased = (try? await isPurchased(productId: product.id)) ?? false
pi.isPurchased = await isPurchased(productId: product.id)
guard pi.isPurchased else { return pi }
guard let transaction = await mostRecentTransaction(for: product.id) else { return pi }

Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/skhelper.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/data/documentation/skhelper/guide.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sections":[],"variants":[{"paths":["\/documentation\/skhelper\/guide"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"patch":0,"minor":3,"major":0},"metadata":{"roleHeading":"Article","role":"article","modules":[{"name":"SKHelper"}],"title":"SKHelper Guide","images":[{"type":"icon","identifier":"skhelper-logo-small.png"}]},"kind":"article","hierarchy":{"paths":[["doc:\/\/SKHelper\/documentation\/SKHelper"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SKHelper\/documentation\/SKHelper\/guide"},"abstract":[{"text":"This detailed guide provides details of how to use the ","type":"text"},{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" package to build a SwiftUI app with in-app purchases that"},{"text":"\n","type":"text"},{"type":"text","text":"supports "},{"type":"strong","inlineContent":[{"type":"text","text":"iOS 17"}]},{"text":" and ","type":"text"},{"type":"strong","inlineContent":[{"text":"macOS 14.6+","type":"text"}]},{"text":" SwiftUI apps.","type":"text"}],"primaryContentSections":[{"content":[{"anchor":"overview","text":"Overview","type":"heading","level":2},{"inlineContent":[{"text":"TODO","type":"text"}],"type":"paragraph"}],"kind":"content"}],"references":{"doc://SKHelper/documentation/SKHelper":{"type":"topic","identifier":"doc:\/\/SKHelper\/documentation\/SKHelper","abstract":[{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" is a Swift Package Manager (SPM) package that enables developers using "},{"inlineContent":[{"type":"text","text":"Xcode 16"}],"type":"strong"},{"text":" to easily add in-app purchase","type":"text"},{"type":"text","text":" "},{"text":"support to ","type":"text"},{"inlineContent":[{"type":"text","text":"iOS 17+"}],"type":"strong"},{"text":" and ","type":"text"},{"type":"strong","inlineContent":[{"text":"macOS 14.6+","type":"text"}]},{"text":" SwiftUI apps.","type":"text"}],"kind":"symbol","images":[{"identifier":"skhelper-logo-small.png","type":"icon"}],"url":"\/documentation\/skhelper","title":"SKHelper","role":"collection"},"skhelper-logo-small.png":{"type":"image","alt":null,"variants":[{"url":"\/images\/SKHelper\/skhelper-logo-small.png","traits":["1x","light"]}],"identifier":"skhelper-logo-small.png"}}}
{"primaryContentSections":[{"kind":"content","content":[{"level":2,"type":"heading","text":"Overview","anchor":"overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"TODO"}]}]}],"metadata":{"roleHeading":"Article","modules":[{"name":"SKHelper"}],"role":"article","images":[{"type":"icon","identifier":"skhelper-logo-small.png"}],"title":"SKHelper Guide"},"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/skhelper\/guide"]}],"kind":"article","hierarchy":{"paths":[["doc:\/\/SKHelper\/documentation\/SKHelper"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SKHelper\/documentation\/SKHelper\/guide"},"abstract":[{"type":"text","text":"This detailed guide provides details of how to use the "},{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" package to build a SwiftUI app with in-app purchases that"},{"type":"text","text":"\n"},{"type":"text","text":"supports "},{"type":"strong","inlineContent":[{"text":"iOS 17","type":"text"}]},{"type":"text","text":" and "},{"type":"strong","inlineContent":[{"text":"macOS 14.6+","type":"text"}]},{"type":"text","text":" SwiftUI apps."}],"references":{"doc://SKHelper/documentation/SKHelper":{"kind":"symbol","title":"SKHelper","images":[{"type":"icon","identifier":"skhelper-logo-small.png"}],"role":"collection","type":"topic","url":"\/documentation\/skhelper","abstract":[{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" is a Swift Package Manager (SPM) package that enables developers using "},{"type":"strong","inlineContent":[{"type":"text","text":"Xcode 16"}]},{"type":"text","text":" to easily add in-app purchase"},{"type":"text","text":" "},{"type":"text","text":"support to "},{"inlineContent":[{"type":"text","text":"iOS 17+"}],"type":"strong"},{"type":"text","text":" and "},{"inlineContent":[{"text":"macOS 14.6+","type":"text"}],"type":"strong"},{"type":"text","text":" SwiftUI apps."}],"identifier":"doc:\/\/SKHelper\/documentation\/SKHelper"},"skhelper-logo-small.png":{"type":"image","variants":[{"url":"\/images\/SKHelper\/skhelper-logo-small.png","traits":["1x","light"]}],"identifier":"skhelper-logo-small.png","alt":null}}}
2 changes: 1 addition & 1 deletion docs/data/documentation/skhelper/license.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"identifier":{"url":"doc:\/\/SKHelper\/documentation\/SKHelper\/LICENSE","interfaceLanguage":"swift"},"primaryContentSections":[{"content":[{"text":"Overview","type":"heading","level":2,"anchor":"overview"},{"inlineContent":[{"type":"text","text":"Permission is hereby granted, free of charge, to any person obtaining a copy"},{"type":"text","text":" "},{"text":"of this software and associated documentation files (the “Software”), to deal","type":"text"},{"type":"text","text":" "},{"text":"in the Software without restriction, including without limitation the rights","type":"text"},{"type":"text","text":" "},{"text":"to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell","type":"text"},{"text":" ","type":"text"},{"text":"copies of the Software, and to permit persons to whom the Software is","type":"text"},{"type":"text","text":" "},{"type":"text","text":"furnished to do so, subject to the following conditions:"}],"type":"paragraph"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The above copyright notice and this permission notice shall be included in all"},{"type":"text","text":" "},{"text":"copies or substantial portions of the Software.","type":"text"}]},{"inlineContent":[{"text":"THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,"},{"text":" ","type":"text"},{"type":"text","text":"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE"},{"text":" ","type":"text"},{"type":"text","text":"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER"},{"text":" ","type":"text"},{"text":"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,","type":"text"},{"type":"text","text":" "},{"type":"text","text":"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE"},{"type":"text","text":" "},{"text":"SOFTWARE.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/skhelper\/license"]}],"metadata":{"roleHeading":"Article","role":"article","title":"License","modules":[{"name":"SKHelper"}]},"sections":[],"schemaVersion":{"major":0,"patch":0,"minor":3},"kind":"article","hierarchy":{"paths":[["doc:\/\/SKHelper\/documentation\/SKHelper"]]},"abstract":[{"type":"text","text":"Copyright (c) 2024 Russell Archer"}],"references":{"skhelper-logo-small.png":{"type":"image","variants":[{"traits":["1x","light"],"url":"\/images\/SKHelper\/skhelper-logo-small.png"}],"identifier":"skhelper-logo-small.png","alt":null},"doc://SKHelper/documentation/SKHelper":{"type":"topic","identifier":"doc:\/\/SKHelper\/documentation\/SKHelper","abstract":[{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" is a Swift Package Manager (SPM) package that enables developers using "},{"inlineContent":[{"type":"text","text":"Xcode 16"}],"type":"strong"},{"text":" to easily add in-app purchase","type":"text"},{"type":"text","text":" "},{"text":"support to ","type":"text"},{"inlineContent":[{"type":"text","text":"iOS 17+"}],"type":"strong"},{"text":" and ","type":"text"},{"type":"strong","inlineContent":[{"text":"macOS 14.6+","type":"text"}]},{"text":" SwiftUI apps.","type":"text"}],"kind":"symbol","images":[{"identifier":"skhelper-logo-small.png","type":"icon"}],"url":"\/documentation\/skhelper","title":"SKHelper","role":"collection"}}}
{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/skhelper\/license"]}],"hierarchy":{"paths":[["doc:\/\/SKHelper\/documentation\/SKHelper"]]},"abstract":[{"type":"text","text":"Copyright (c) 2024 Russell Archer"}],"metadata":{"modules":[{"name":"SKHelper"}],"roleHeading":"Article","role":"article","title":"License"},"primaryContentSections":[{"content":[{"text":"Overview","type":"heading","level":2,"anchor":"overview"},{"type":"paragraph","inlineContent":[{"text":"Permission is hereby granted, free of charge, to any person obtaining a copy","type":"text"},{"type":"text","text":" "},{"type":"text","text":"of this software and associated documentation files (the “Software”), to deal"},{"text":" ","type":"text"},{"text":"in the Software without restriction, including without limitation the rights","type":"text"},{"type":"text","text":" "},{"type":"text","text":"to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell"},{"type":"text","text":" "},{"text":"copies of the Software, and to permit persons to whom the Software is","type":"text"},{"text":" ","type":"text"},{"text":"furnished to do so, subject to the following conditions:","type":"text"}]},{"type":"paragraph","inlineContent":[{"text":"The above copyright notice and this permission notice shall be included in all","type":"text"},{"type":"text","text":" "},{"text":"copies or substantial portions of the Software.","type":"text"}]},{"type":"paragraph","inlineContent":[{"text":"THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR","type":"text"},{"text":" ","type":"text"},{"type":"text","text":"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,"},{"text":" ","type":"text"},{"text":"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE","type":"text"},{"type":"text","text":" "},{"type":"text","text":"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER"},{"type":"text","text":" "},{"text":"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,","type":"text"},{"type":"text","text":" "},{"type":"text","text":"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE"},{"type":"text","text":" "},{"type":"text","text":"SOFTWARE."}]}],"kind":"content"}],"sections":[],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SKHelper\/documentation\/SKHelper\/LICENSE"},"schemaVersion":{"minor":3,"major":0,"patch":0},"kind":"article","references":{"doc://SKHelper/documentation/SKHelper":{"kind":"symbol","title":"SKHelper","images":[{"type":"icon","identifier":"skhelper-logo-small.png"}],"role":"collection","type":"topic","url":"\/documentation\/skhelper","abstract":[{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" is a Swift Package Manager (SPM) package that enables developers using "},{"type":"strong","inlineContent":[{"type":"text","text":"Xcode 16"}]},{"type":"text","text":" to easily add in-app purchase"},{"type":"text","text":" "},{"type":"text","text":"support to "},{"inlineContent":[{"type":"text","text":"iOS 17+"}],"type":"strong"},{"type":"text","text":" and "},{"inlineContent":[{"text":"macOS 14.6+","type":"text"}],"type":"strong"},{"type":"text","text":" SwiftUI apps."}],"identifier":"doc:\/\/SKHelper\/documentation\/SKHelper"},"skhelper-logo-small.png":{"alt":null,"variants":[{"traits":["1x","light"],"url":"\/images\/SKHelper\/skhelper-logo-small.png"}],"type":"image","identifier":"skhelper-logo-small.png"}}}
2 changes: 1 addition & 1 deletion docs/data/documentation/skhelper/productid.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"hierarchy":{"paths":[["doc:\/\/SKHelper\/documentation\/SKHelper"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ProductId","kind":"identifier"},{"kind":"text","text":" = "},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"}],"languages":["swift"]}]}],"variants":[{"paths":["\/documentation\/skhelper\/productid"],"traits":[{"interfaceLanguage":"swift"}]}],"metadata":{"externalID":"s:8SKHelper9ProductIda","modules":[{"name":"SKHelper"}],"symbolKind":"typealias","role":"symbol","fragments":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"text":"ProductId","kind":"identifier"}],"roleHeading":"Type Alias","navigatorTitle":[{"kind":"identifier","text":"ProductId"}],"title":"ProductId"},"kind":"symbol","identifier":{"url":"doc:\/\/SKHelper\/documentation\/SKHelper\/ProductId","interfaceLanguage":"swift"},"references":{"skhelper-logo-small.png":{"type":"image","alt":null,"identifier":"skhelper-logo-small.png","variants":[{"url":"\/images\/SKHelper\/skhelper-logo-small.png","traits":["1x","light"]}]},"doc://SKHelper/documentation/SKHelper/ProductId":{"title":"ProductId","role":"symbol","abstract":[],"url":"\/documentation\/skhelper\/productid","fragments":[{"text":"typealias","kind":"keyword"},{"kind":"text","text":" "},{"text":"ProductId","kind":"identifier"}],"kind":"symbol","type":"topic","identifier":"doc:\/\/SKHelper\/documentation\/SKHelper\/ProductId","navigatorTitle":[{"text":"ProductId","kind":"identifier"}]},"doc://SKHelper/documentation/SKHelper":{"type":"topic","identifier":"doc:\/\/SKHelper\/documentation\/SKHelper","abstract":[{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" is a Swift Package Manager (SPM) package that enables developers using "},{"inlineContent":[{"type":"text","text":"Xcode 16"}],"type":"strong"},{"text":" to easily add in-app purchase","type":"text"},{"type":"text","text":" "},{"text":"support to ","type":"text"},{"inlineContent":[{"type":"text","text":"iOS 17+"}],"type":"strong"},{"text":" and ","type":"text"},{"type":"strong","inlineContent":[{"text":"macOS 14.6+","type":"text"}]},{"text":" SwiftUI apps.","type":"text"}],"kind":"symbol","images":[{"identifier":"skhelper-logo-small.png","type":"icon"}],"url":"\/documentation\/skhelper","title":"SKHelper","role":"collection"}}}
{"sections":[],"hierarchy":{"paths":[["doc:\/\/SKHelper\/documentation\/SKHelper"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/skhelper\/productid"]}],"kind":"symbol","primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"typealias"},{"text":" ","kind":"text"},{"kind":"identifier","text":"ProductId"},{"kind":"text","text":" = "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"}],"platforms":["macOS"]}],"kind":"declarations"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/SKHelper\/documentation\/SKHelper\/ProductId"},"schemaVersion":{"major":0,"minor":3,"patch":0},"metadata":{"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"ProductId"}],"modules":[{"name":"SKHelper"}],"title":"ProductId","roleHeading":"Type Alias","externalID":"s:8SKHelper9ProductIda","role":"symbol","symbolKind":"typealias","navigatorTitle":[{"text":"ProductId","kind":"identifier"}]},"references":{"skhelper-logo-small.png":{"identifier":"skhelper-logo-small.png","variants":[{"traits":["1x","light"],"url":"\/images\/SKHelper\/skhelper-logo-small.png"}],"alt":null,"type":"image"},"doc://SKHelper/documentation/SKHelper/ProductId":{"type":"topic","kind":"symbol","url":"\/documentation\/skhelper\/productid","abstract":[],"title":"ProductId","navigatorTitle":[{"text":"ProductId","kind":"identifier"}],"fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ProductId","kind":"identifier"}],"identifier":"doc:\/\/SKHelper\/documentation\/SKHelper\/ProductId","role":"symbol"},"doc://SKHelper/documentation/SKHelper":{"kind":"symbol","title":"SKHelper","images":[{"type":"icon","identifier":"skhelper-logo-small.png"}],"role":"collection","type":"topic","url":"\/documentation\/skhelper","abstract":[{"type":"codeVoice","code":"SKHelper"},{"type":"text","text":" is a Swift Package Manager (SPM) package that enables developers using "},{"type":"strong","inlineContent":[{"type":"text","text":"Xcode 16"}]},{"type":"text","text":" to easily add in-app purchase"},{"type":"text","text":" "},{"type":"text","text":"support to "},{"inlineContent":[{"type":"text","text":"iOS 17+"}],"type":"strong"},{"type":"text","text":" and "},{"inlineContent":[{"text":"macOS 14.6+","type":"text"}],"type":"strong"},{"type":"text","text":" SwiftUI apps."}],"identifier":"doc:\/\/SKHelper\/documentation\/SKHelper"}}}
2 changes: 1 addition & 1 deletion docs/data/documentation/skhelper/skhelper.json

Large diffs are not rendered by default.

Loading

0 comments on commit cca763b

Please sign in to comment.