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(framework): support older OpenUI5 getThemeRoot API #7202

Merged
merged 5 commits into from
Jun 15, 2023

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Jun 15, 2023

Theming.getThemeRoot is recently added OpenUI5 API, but not released yet (available on nightly snapshot). To support currently released OpenUI5 versions we need to use the older API "Configuration#getThemeRoot".

  • Fetch Theming only for OpenUi5 versions since 1.116.0 and onward
  • Use the old Configuration#getThemeRoot API for OpenUi5 versions prior to 1.116.0
  • For the version processing, use the global util "sap/base/util/Version"

Fixes: #7199

@ilhan007 ilhan007 requested a review from vladitasev June 15, 2023 05:18
vladitasev
vladitasev previously approved these changes Jun 15, 2023
@vladitasev vladitasev dismissed their stale review June 15, 2023 07:04

found a problem

Copy link
Contributor

@vladitasev vladitasev left a comment

Choose a reason for hiding this comment

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

it still fails because of the module it can't load, looking for solutions as well

@ilhan007 ilhan007 requested a review from pskelin June 15, 2023 10:51
@ilhan007 ilhan007 merged commit 54e615c into main Jun 15, 2023
@ilhan007 ilhan007 deleted the fix-older-sapui5-runtimes branch June 15, 2023 13:17
nnaydenow pushed a commit that referenced this pull request Jun 15, 2023
Theming.getThemeRoot is recently added OpenUI5 API, but not released yet (available on nightly snapshot). To support currently released OpenUI5 versions we need to use the older API "Configuration#getThemeRoot".
- Fetch Theming only for OpenUi5 versions since 1.116.0 and onward
- For OpenUi5 versions prior to 1.116.0
use Configuration#getThemeRoot API 
- For the version processing, use the global util "sap/base/util/Version"

Fixes: #7199
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.

[OpenUi5Support]: Depends on not released Theming API
2 participants