-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ideally the backend would never send `""` for images, but better to be defensive.
- Loading branch information
Showing
10 changed files
with
79 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
Tests/UnitTests/Networking/Responses/Fixtures/PaywallData-empty_images.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"template_name": "1", | ||
"localized_strings": { | ||
"en_US": { | ||
"title": "Paywall", | ||
"subtitle": "Description", | ||
"call_to_action": "Purchase now", | ||
"call_to_action_with_intro_offer": "Purchase now", | ||
"offer_details": "{{ sub_price_per_month }} per month", | ||
"offer_details_with_intro_offer": "Start your {{ sub_offer_duration }} trial, then {{ sub_price_per_month }} per month" | ||
} | ||
}, | ||
"config": { | ||
"packages": ["$rc_monthly", "$rc_annual"], | ||
"images": { | ||
"header": "", | ||
"background": "", | ||
"icon": "" | ||
}, | ||
"colors": { | ||
"light": { | ||
"background": "#FFFFFF", | ||
"text_1": "#FFFFFF", | ||
"call_to_action_background": "#FFFFFF", | ||
"call_to_action_foreground": "#FFFFFF", | ||
"accent_1": "#FFFFFF" | ||
}, | ||
"dark": null | ||
} | ||
}, | ||
"asset_base_url": "https://rc-paywalls.s3.amazonaws.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters