Skip to content

feat: support spm #2

Open
yaotiancheng-ola wants to merge 5 commits into
KuaiLiao:masterfrom
yaotiancheng-ola:master
Open

feat: support spm #2
yaotiancheng-ola wants to merge 5 commits into
KuaiLiao:masterfrom
yaotiancheng-ola:master

Conversation

@yaotiancheng-ola

Copy link
Copy Markdown

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces Swift Package Manager (SPM) support by adding a Package.swift file and updating the .gitignore to exclude SPM-related files. The review feedback highlights a necessary correction to the publicHeadersPath to ensure headers are correctly located, a suggestion to lower the minimum iOS version for broader compatibility, and a recommendation to remove a default macro definition that could cause conflicts and inconsistency with other distribution methods.

Comment thread Package.swift
Comment thread Package.swift
Comment thread Package.swift
path: "YYText",
publicHeadersPath: "include",
cSettings: [
.define("YYTEXT_ENABLE_SHORTHAND", to: "1")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Enabling YYTEXT_ENABLE_SHORTHAND by default changes the library's behavior compared to the CocoaPods installation. This macro enables shorthand property names which might conflict with other code in a user's project. It is generally better to keep the default behavior consistent with other package managers by not defining this macro here.

yaotiancheng-ola and others added 3 commits April 8, 2026 11:39
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant