Skip to content

Commit

Permalink
Generated Flare Swift DocC
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 9, 2024
1 parent 0138a50 commit 66bd190
Show file tree
Hide file tree
Showing 338 changed files with 335 additions and 317 deletions.
2 changes: 1 addition & 1 deletion flare/data/documentation/flare.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flare/data/documentation/flare/caching.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"content","content":[{"anchor":"Overview","level":2,"type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Caching products can improve the performance and user experience of your app by reducing the need to fetch product information from the App Store. In this guide, we’ll explore how to cache products efficiently in your app."}]},{"anchor":"Implementing-Product-Caching","level":2,"type":"heading","text":"Implementing Product Caching"},{"type":"paragraph","inlineContent":[{"type":"text","text":"By default, Flare uses cached data if available; otherwise, it fetches the products. If you want to change this behavior, you need to configure Flare with a custom caching policy. For this, Flare provides two options "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/fetch"},{"type":"text","text":" and "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/cachedOrFetch"},{"type":"text","text":"."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"You can override the default behaviour passing a "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/fetch"},{"type":"text","text":" with a configuration."}]},{"type":"codeListing","syntax":"swift","code":["Flare.default.configure(with: .init(Configuration(username: \"username\", fetchCachePolicy: .fetch)))"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"This configuration tells Flare to always fetch the latest data, ignoring any cached data. You can adjust this behavior as needed for your app."}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/flare\/caching"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Flare\/documentation\/Flare\/caching","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Learn how to cache products."}],"kind":"article","metadata":{"roleHeading":"Article","title":"Caching Products","role":"article","modules":[{"name":"Flare"}]},"hierarchy":{"paths":[["doc:\/\/Flare\/documentation\/Flare"]]},"references":{"doc://Flare/documentation/Flare/FetchCachePolicy/cachedOrFetch":{"role":"symbol","title":"FetchCachePolicy.cachedOrFetch","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"cachedOrFetch"}],"abstract":[{"type":"text","text":"Use the cached data if available; otherwise, fetch the data."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/cachedOrFetch","kind":"symbol","type":"topic","url":"\/documentation\/flare\/fetchcachepolicy\/cachedorfetch"},"doc://Flare/documentation/Flare":{"role":"collection","title":"Flare","abstract":[{"type":"text","text":"Flare provides an elegant interface for In-App Purchases, supporting non-consumable and consumable purchases as well as subscriptions."}],"identifier":"doc:\/\/Flare\/documentation\/Flare","kind":"symbol","type":"topic","url":"\/documentation\/flare"},"doc://Flare/documentation/Flare/FetchCachePolicy/fetch":{"role":"symbol","title":"FetchCachePolicy.fetch","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"fetch"}],"abstract":[{"type":"text","text":"Fetch the current data without using the cache."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/fetch","kind":"symbol","type":"topic","url":"\/documentation\/flare\/fetchcachepolicy\/fetch"}}}
{"primaryContentSections":[{"kind":"content","content":[{"anchor":"Overview","level":2,"type":"heading","text":"Overview"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Caching products can improve the performance and user experience of your app by reducing the need to fetch product information from the App Store. In this guide, we’ll explore how to cache products efficiently in your app."}]},{"anchor":"Implementing-Product-Caching","level":2,"type":"heading","text":"Implementing Product Caching"},{"type":"paragraph","inlineContent":[{"type":"text","text":"By default, Flare uses cached data if available; otherwise, it fetches the products. If you want to change this behavior, you need to configure Flare with a custom caching policy. For this, Flare provides two options "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/fetch"},{"type":"text","text":" and "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/cachedOrFetch"},{"type":"text","text":"."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"You can override the default behaviour passing a "},{"type":"reference","isActive":true,"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/fetch"},{"type":"text","text":" with a configuration."}]},{"type":"codeListing","syntax":"swift","code":["Flare.default.configure(with: .init(Configuration(username: \"username\", fetchCachePolicy: .fetch)))"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"This configuration tells Flare to always fetch the latest data, ignoring any cached data. You can adjust this behavior as needed for your app."}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/flare\/caching"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Flare\/documentation\/Flare\/caching","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Learn how to cache products."}],"kind":"article","metadata":{"roleHeading":"Article","title":"Caching Products","role":"article","modules":[{"name":"Flare"}]},"hierarchy":{"paths":[["doc:\/\/Flare\/documentation\/Flare"]]},"references":{"doc://Flare/documentation/Flare/FetchCachePolicy/cachedOrFetch":{"role":"symbol","title":"FetchCachePolicy.cachedOrFetch","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"cachedOrFetch"}],"abstract":[{"type":"text","text":"Use the cached data if available; otherwise, fetch the data."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/cachedOrFetch","kind":"symbol","type":"topic","url":"\/documentation\/flare\/fetchcachepolicy\/cachedorfetch"},"doc://Flare/documentation/Flare/FetchCachePolicy/fetch":{"role":"symbol","title":"FetchCachePolicy.fetch","fragments":[{"kind":"keyword","text":"case"},{"kind":"text","text":" "},{"kind":"identifier","text":"fetch"}],"abstract":[{"type":"text","text":"Fetch the current data without using the cache."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/FetchCachePolicy\/fetch","kind":"symbol","type":"topic","url":"\/documentation\/flare\/fetchcachepolicy\/fetch"},"doc://Flare/documentation/Flare":{"role":"collection","title":"Flare","abstract":[{"type":"text","text":"Flare provides an elegant interface for In-App Purchases, supporting non-consumable and consumable purchases as well as subscriptions."}],"identifier":"doc:\/\/Flare\/documentation\/Flare","kind":"symbol","type":"topic","url":"\/documentation\/flare"}}}
2 changes: 1 addition & 1 deletion flare/data/documentation/flare/closure.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Closure"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"T"},{"kind":"text","text":"> = ("},{"kind":"typeIdentifier","text":"T"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Void","preciseIdentifier":"s:s4Voida"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/flare\/closure"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Flare\/documentation\/Flare\/Closure","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Closure"}],"title":"Closure","roleHeading":"Type Alias","role":"symbol","symbolKind":"typealias","externalID":"s:5Flare7Closurea","modules":[{"name":"Flare"}],"navigatorTitle":[{"kind":"identifier","text":"Closure"}]},"hierarchy":{"paths":[["doc:\/\/Flare\/documentation\/Flare"]]},"references":{"doc://Flare/documentation/Flare/Closure":{"role":"symbol","title":"Closure","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Closure"}],"abstract":[],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Closure","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Closure"}],"url":"\/documentation\/flare\/closure"},"doc://Flare/documentation/Flare":{"role":"collection","title":"Flare","abstract":[{"type":"text","text":"Flare provides an elegant interface for In-App Purchases, supporting non-consumable and consumable purchases as well as subscriptions."}],"identifier":"doc:\/\/Flare\/documentation\/Flare","kind":"symbol","type":"topic","url":"\/documentation\/flare"}}}
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Closure"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"T"},{"kind":"text","text":"> = ("},{"kind":"typeIdentifier","text":"T"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Void","preciseIdentifier":"s:s4Voida"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/flare\/closure"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Flare\/documentation\/Flare\/Closure","interfaceLanguage":"swift"},"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Closure"}],"title":"Closure","roleHeading":"Type Alias","role":"symbol","symbolKind":"typealias","externalID":"s:5Flare7Closurea","modules":[{"name":"Flare"}],"navigatorTitle":[{"kind":"identifier","text":"Closure"}]},"hierarchy":{"paths":[["doc:\/\/Flare\/documentation\/Flare"]]},"references":{"doc://Flare/documentation/Flare":{"role":"collection","title":"Flare","abstract":[{"type":"text","text":"Flare provides an elegant interface for In-App Purchases, supporting non-consumable and consumable purchases as well as subscriptions."}],"identifier":"doc:\/\/Flare\/documentation\/Flare","kind":"symbol","type":"topic","url":"\/documentation\/flare"},"doc://Flare/documentation/Flare/Closure":{"role":"symbol","title":"Closure","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"Closure"}],"abstract":[],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Closure","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Closure"}],"url":"\/documentation\/flare\/closure"}}}
2 changes: 1 addition & 1 deletion flare/data/documentation/flare/configuration.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Configuration"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/flare\/configuration"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"identifiers":["doc:\/\/Flare\/s8SendableP"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"identifier":{"url":"doc:\/\/Flare\/documentation\/Flare\/Configuration","interfaceLanguage":"swift"},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/Flare\/documentation\/Flare\/Configuration\/init(applicationUsername:fetchCachePolicy:)"]},{"title":"Instance Properties","identifiers":["doc:\/\/Flare\/documentation\/Flare\/Configuration\/applicationUsername","doc:\/\/Flare\/documentation\/Flare\/Configuration\/fetchCachePolicy"]}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Configuration"}],"title":"Configuration","roleHeading":"Structure","role":"symbol","symbolKind":"struct","externalID":"s:5Flare13ConfigurationV","modules":[{"name":"Flare"}],"navigatorTitle":[{"kind":"identifier","text":"Configuration"}]},"hierarchy":{"paths":[["doc:\/\/Flare\/documentation\/Flare"]]},"references":{"doc://Flare/documentation/Flare/Configuration/applicationUsername":{"role":"symbol","title":"applicationUsername","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"applicationUsername"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"type":"text","text":"A string that associates the transaction with a user account on your service."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration\/applicationUsername","kind":"symbol","type":"topic","url":"\/documentation\/flare\/configuration\/applicationusername"},"doc://Flare/documentation/Flare/Configuration":{"role":"symbol","title":"Configuration","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Configuration"}],"abstract":[],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Configuration"}],"url":"\/documentation\/flare\/configuration"},"doc://Flare/s8SendableP":{"type":"unresolvable","title":"Swift.Sendable","identifier":"doc:\/\/Flare\/s8SendableP"},"doc://Flare/documentation/Flare/Configuration/fetchCachePolicy":{"role":"symbol","title":"fetchCachePolicy","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"fetchCachePolicy"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"FetchCachePolicy","preciseIdentifier":"s:5Flare16FetchCachePolicyO"}],"abstract":[{"type":"text","text":"The cache policy for fetching products."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration\/fetchCachePolicy","kind":"symbol","type":"topic","url":"\/documentation\/flare\/configuration\/fetchcachepolicy"},"doc://Flare/documentation/Flare":{"role":"collection","title":"Flare","abstract":[{"type":"text","text":"Flare provides an elegant interface for In-App Purchases, supporting non-consumable and consumable purchases as well as subscriptions."}],"identifier":"doc:\/\/Flare\/documentation\/Flare","kind":"symbol","type":"topic","url":"\/documentation\/flare"},"doc://Flare/documentation/Flare/Configuration/init(applicationUsername:fetchCachePolicy:)":{"role":"symbol","title":"init(applicationUsername:fetchCachePolicy:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"applicationUsername"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"fetchCachePolicy"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"FetchCachePolicy","preciseIdentifier":"s:5Flare16FetchCachePolicyO"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a "},{"type":"codeVoice","code":"Configuration"},{"type":"text","text":" instance."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration\/init(applicationUsername:fetchCachePolicy:)","kind":"symbol","type":"topic","url":"\/documentation\/flare\/configuration\/init(applicationusername:fetchcachepolicy:)"}}}
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Configuration"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/flare\/configuration"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"identifiers":["doc:\/\/Flare\/s8SendableP"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"identifier":{"url":"doc:\/\/Flare\/documentation\/Flare\/Configuration","interfaceLanguage":"swift"},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/Flare\/documentation\/Flare\/Configuration\/init(applicationUsername:fetchCachePolicy:)"]},{"title":"Instance Properties","identifiers":["doc:\/\/Flare\/documentation\/Flare\/Configuration\/applicationUsername","doc:\/\/Flare\/documentation\/Flare\/Configuration\/fetchCachePolicy"]}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Configuration"}],"title":"Configuration","roleHeading":"Structure","role":"symbol","symbolKind":"struct","externalID":"s:5Flare13ConfigurationV","modules":[{"name":"Flare"}],"navigatorTitle":[{"kind":"identifier","text":"Configuration"}]},"hierarchy":{"paths":[["doc:\/\/Flare\/documentation\/Flare"]]},"references":{"doc://Flare/documentation/Flare/Configuration":{"role":"symbol","title":"Configuration","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Configuration"}],"abstract":[],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Configuration"}],"url":"\/documentation\/flare\/configuration"},"doc://Flare/s8SendableP":{"type":"unresolvable","title":"Swift.Sendable","identifier":"doc:\/\/Flare\/s8SendableP"},"doc://Flare/documentation/Flare/Configuration/applicationUsername":{"role":"symbol","title":"applicationUsername","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"applicationUsername"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[{"type":"text","text":"A string that associates the transaction with a user account on your service."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration\/applicationUsername","kind":"symbol","type":"topic","url":"\/documentation\/flare\/configuration\/applicationusername"},"doc://Flare/documentation/Flare":{"role":"collection","title":"Flare","abstract":[{"type":"text","text":"Flare provides an elegant interface for In-App Purchases, supporting non-consumable and consumable purchases as well as subscriptions."}],"identifier":"doc:\/\/Flare\/documentation\/Flare","kind":"symbol","type":"topic","url":"\/documentation\/flare"},"doc://Flare/documentation/Flare/Configuration/fetchCachePolicy":{"role":"symbol","title":"fetchCachePolicy","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"fetchCachePolicy"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"FetchCachePolicy","preciseIdentifier":"s:5Flare16FetchCachePolicyO"}],"abstract":[{"type":"text","text":"The cache policy for fetching products."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration\/fetchCachePolicy","kind":"symbol","type":"topic","url":"\/documentation\/flare\/configuration\/fetchcachepolicy"},"doc://Flare/documentation/Flare/Configuration/init(applicationUsername:fetchCachePolicy:)":{"role":"symbol","title":"init(applicationUsername:fetchCachePolicy:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"applicationUsername"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"fetchCachePolicy"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"FetchCachePolicy","preciseIdentifier":"s:5Flare16FetchCachePolicyO"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Creates a "},{"type":"codeVoice","code":"Configuration"},{"type":"text","text":" instance."}],"identifier":"doc:\/\/Flare\/documentation\/Flare\/Configuration\/init(applicationUsername:fetchCachePolicy:)","kind":"symbol","type":"topic","url":"\/documentation\/flare\/configuration\/init(applicationusername:fetchcachepolicy:)"}}}
Loading

0 comments on commit 66bd190

Please sign in to comment.