Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Paywalls V2] Decode rectangle corners as optional #4640

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

joshdholtz
Copy link
Member

@joshdholtz joshdholtz commented Jan 8, 2025

Motivation

Decode rectangle corners as optional

Description

Using decodeIfPresent and explicit optional typing to make things valid

Package.swift Outdated
@@ -24,7 +24,7 @@ var additionalCompilerFlags: [PackageDescription.SwiftSetting] = {
.split(whereSeparator: \.isWhitespace)
.filter { !$0.isEmpty && !$0.hasPrefix("$") }
.map { .define(String($0)) }
?? []
?? [.define("PAYWALL_COMPONENTS")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably not want to define this here?

@@ -14,7 +14,7 @@ protocol AvailableConfigItems {

// CI system adds keys here
extension AvailableConfigItems {
static var apiKey: String { "" }
static var apiKey: String { "appl_fpIYNnFHeCcvJRZqibQfQOTUusd" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Also this should be reverted

@joshdholtz joshdholtz merged commit 069df52 into main Jan 9, 2025
10 checks passed
@joshdholtz joshdholtz deleted the paywalls-v2/fix-rectangle-corner-decoding branch January 9, 2025 17:16
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.

2 participants