Skip to content

Conversation

@fabianfett
Copy link
Contributor

Implementation for pitch

@itingliu
Copy link
Contributor

Proposal: #1156

public static let endLineWithLineFeed = Base64EncodingOptions(rawValue: 1 << 5)

/// Use the base64url alphabet to encode the data
@available(FoundationPreview 6.2, *)
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll need to update this to 6.3 since we've passed 6.2. Just so we don't forget we'll want to update the proposal too

@itingliu itingliu added the API Change Any changes to Foundation's public API surface label Aug 20, 2025
@fabianfett fabianfett force-pushed the ff-add-new-encoding-options branch from 31a85fa to 671392f Compare August 21, 2025 17:17
@fabianfett fabianfett marked this pull request as ready for review August 21, 2025 17:22
@itingliu
Copy link
Contributor

@swift-ci please test

@fabianfett fabianfett requested a review from itingliu August 28, 2025 15:35
Copy link
Contributor

@itingliu itingliu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@fabianfett
Copy link
Contributor Author

@itingliu Merge?

@itingliu
Copy link
Contributor

itingliu commented Sep 4, 2025

@fabianfett There are build errors when building with #if FOUNDATION_FRAMEWORK:

Data+Base64.swift:273:54: error: type 'Data.Base64EncodingOptions' (aka 'NSData.Base64EncodingOptions') has no member 'omitPaddingCharacter'

Currently omitPaddingCharacter is only defined in #if !FOUNDATION_FRAMEWORK, but at callsites we aren't guarding it behind that condition.

I'm working on a fix for that. I'd like to resolve that together with merging this, though if it turns out to be more complicated than I expected I'll come back to merge this and handle that in a follow up.

@itingliu itingliu merged commit 58ee897 into swiftlang:main Sep 11, 2025
19 checks passed
itingliu added a commit to itingliu/swift-foundation that referenced this pull request Sep 11, 2025
… Add new encoding options) (#3418)

Signed-off-by: Tina Liu <[email protected]>
Co-authored-by: Fabian Fett <[email protected]>
itingliu added a commit to itingliu/swift-foundation that referenced this pull request Sep 11, 2025
Move the new options out of `#if !FOUNDATION_FRAMEWORK` block
itingliu added a commit that referenced this pull request Sep 11, 2025
Move the new options out of `#if !FOUNDATION_FRAMEWORK` block
itingliu added a commit to itingliu/swift-foundation that referenced this pull request Sep 12, 2025
itingliu added a commit to itingliu/swift-foundation that referenced this pull request Sep 12, 2025
itingliu added a commit that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Change Any changes to Foundation's public API surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants