Skip to content

Commit

Permalink
removes useCachedPaywallTemplates flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemor committed Aug 10, 2022
1 parent f970024 commit 52ce538
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

The changelog for `Paywall`. Also see the [releases](https://github.com/superwall-me/paywall-ios/releases) on GitHub.

## 2.4.1 (Upcoming release)
## 2.4.1

### Enhancements
- Adds `Paywall.options.useCachedPaywallTemplates`. This defaults to `true`. Superwall will load paywall template websites from disk, if available. When you save a change to your paywall in the Superwall dashboard, a key is appended to the end of your paywall website URL, e.g. `sw_cache_key=<Date saved>`. This is used to cache your paywall webpage to disk after it's first loaded. Superwall will continue to load the cached version of your paywall webpage unless the next time you make a change on the Superwall dashboard. (2.4.1-beta.1)
- Adds `Paywall.preloadAllPaywalls()` and `Paywall.preloadPaywalls(forTriggers:)`. Use this with `Paywall.options.shouldPreloadPaywall = false` to have more control over when/what paywalls are preloaded. (2.4.1-beta.2)
- Removes `Paywall.options.useCachedPaywallTemplates`. Too tricky (2.4.1-beta.2)

### Fixes

- Paywall options specified prior to config are now respected, regardless of whether you pass an options object through to config or not. (2.4.1-beta.1)
- Ensures /config's request and response is always handled on the main thread (2.4.1)

---

Expand Down
2 changes: 1 addition & 1 deletion Paywall.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Paywall"
s.version = "2.4.1-beta.2"
s.version = "2.4.1"
s.summary = "Superwall: In-App Paywalls Made Easy"
s.description = "Paywall infrastructure for mobile apps :) we make things like editing your paywall and running price tests as easy as clicking a few buttons. superwall.com"

Expand Down
2 changes: 1 addition & 1 deletion Sources/Paywall/Misc/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ let sdkVersion = """
*/

let sdkVersion = """
2.4.1-beta.2
2.4.1
"""
2 changes: 1 addition & 1 deletion Sources/Paywall/Paywall/Config/PaywallOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class PaywallOptions: NSObject {
/// Loads paywall template websites from disk, if available. Defaults to `true`.
///
/// When you save a change to your paywall in the Superwall dashboard, a key is appended to the end of your paywall website URL, e.g. `sw_cache_key=<Date saved>`. This is used to cache your paywall webpage to disk after it's first loaded. Superwall will continue to load the cached version of your paywall webpage unless the next time you make a change on the Superwall dashboard.
public var useCachedPaywallTemplates = true
internal var useCachedPaywallTemplates = false

/// Configuration for printing to the console.
public struct Logging {
Expand Down

0 comments on commit 52ce538

Please sign in to comment.