Skip to content

Paywalls: added packages to configuration#2798

Merged
NachoSoto merged 1 commit into
paywallsfrom
paywall-packages
Jul 13, 2023
Merged

Paywalls: added packages to configuration#2798
NachoSoto merged 1 commit into
paywallsfrom
paywall-packages

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This allows configuring which package(s) will be displayed in each paywall.

@joshdholtz joshdholtz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I think I found one thing we don't want to commit 🤷‍♂️

Comment thread Sources/Networking/HTTPClient/ETagManager.swift Outdated
@NachoSoto NachoSoto force-pushed the paywalls-trials branch 3 times, most recently from 6f7c1ce to 5e4b77c Compare July 13, 2023 04:42
@NachoSoto NachoSoto requested review from a team and joshdholtz July 13, 2023 04:45
Base automatically changed from paywalls-trials to paywalls July 13, 2023 17:08
This allows configuring which package(s) will be displayed in each paywall.
@NachoSoto NachoSoto merged commit a3e7394 into paywalls Jul 13, 2023
@NachoSoto NachoSoto deleted the paywall-packages branch July 13, 2023 17:09

@aboedo aboedo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Comment on lines +29 to +30
let offering = TestData.offeringWithIntroOffer
PaywallView(offering: offering, paywall: offering.paywall!)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might as well do an if let here and have a text explaining that there's no offering so the preview doesn't ugly-crash?

I.e.:

        let offering = TestData.offeringWithIntroOffer
        if let paywall = offering.paywall {
            PaywallView(offering: offering, paywall: paywall)
        } else {
            Text("Preview not correctly set up! The offering's paywall need to be non-nil")
        }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 I guess debugging crashes in previews is annoying, so yeah.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in the next PR.

NachoSoto added a commit that referenced this pull request Jul 13, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 13, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 14, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 14, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 24, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 24, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 24, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 25, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 25, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 26, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 26, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 27, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 27, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Jul 31, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Jul 31, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Aug 3, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Aug 3, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Aug 7, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Aug 7, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Aug 9, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Aug 9, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Aug 11, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Aug 11, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Aug 14, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Aug 14, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
NachoSoto added a commit that referenced this pull request Aug 17, 2023
This allows configuring which package(s) will be displayed in each
paywall.
NachoSoto added a commit that referenced this pull request Aug 17, 2023
Some missing tests for the logic added in #2798.
I've also moved this function to be fined in `PaywallData` instead of
the `TemplateViewType` protocol, which makes more sense.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants