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

fix: JIRA-2846 ignore warnings from old color palettes #913

Closed
wants to merge 0 commits into from

Conversation

dyongxu
Copy link
Contributor

@dyongxu dyongxu commented Nov 29, 2024

There are lots of warnings from old Palette related files ( V2 , V3, V4, V5 ), since some of the color styles were deprecated.

Added the "@available" annotation in related files to tell the compiler to ignore these warnings.

Before the fix :
Showing All Issues
/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:14:25: 'primary1' is deprecated: renamed to 'primaryLabel'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:15:27: 'primary2' is deprecated: renamed to 'secondaryLabel'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:16:26: 'primary3' is deprecated: renamed to 'tertiaryLabel'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:17:26: 'primary4' is deprecated: renamed to 'secondaryFill'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:18:39: 'primary6' is deprecated: renamed to 'secondaryGroupedBackground'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:19:28: 'primary7' is deprecated: renamed to 'quaternaryLabel'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:20:27: 'primary8' is deprecated: renamed to 'barTransparent'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:21:22: 'primary9' is deprecated: renamed to 'separator'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:22:26: 'backgroundGradientTop' is deprecated: renamed to 'header'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:23:19: 'backgroundGradientBottom' is deprecated: renamed to 'header'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV4.swift:24:37: 'backgroundBase' is deprecated: renamed to 'primaryBackground'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV5.swift:14:28: 'line' is deprecated: renamed to 'separatorOpaque'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV5.swift:15:28: 'primary10' is deprecated: renamed to 'contrastElement'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV5.swift:16:23: 'tintColorDark' is deprecated: renamed to 'tintColor2'

/github/cloud-sdk-ios-fiori/Sources/FioriThemeManager/ColorCompatibilityMap/ColorCompatibilityMapV5.swift:17:23: 'shadow' is deprecated: renamed to 'cardShadow'

@dyongxu dyongxu requested a review from a team as a code owner November 29, 2024 00:42
@dyongxu dyongxu requested review from billzhou0223 and xiaoyu0722 and removed request for a team November 29, 2024 00:42
@dyongxu dyongxu closed this Nov 29, 2024
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