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

[Android + iOS]: Allow configuration of AC Fluent icon CDN paths for different environments #232

Merged
merged 8 commits into from
Sep 6, 2024

Conversation

singhmanp0707
Copy link
Collaborator

@singhmanp0707 singhmanp0707 commented Sep 4, 2024

Description

Android changes

Currently, Fluent icon assets for AC are served from this unique CDN path:
https://res-1.cdn.office.net/assets/fluentui-react-icons/2.0.226/,
But The base path for this CDN should actually be different based on the environment. This PR adds another method in IFeatureFlagResolver to fetch the ECS settings as String for a key. This method will be used to fetch the FluentIconCdnRoot and FluentIconCdnPath from ECS and use those to create a Cdn URL to fetch and render fluent icons.

The host will register its featureFlagResolver and will implement the getEcsSettingAsString method to fetch the values from the ECS.

iOS changes

Currently, Fluent icon assets for AC are served from this unique CDN path:
https://res-1.cdn.office.net/assets/fluentui-react-icons/2.0.226/,
But The base path for this CDN should actually be different based on the environment. This PR uses FeatureFlagResolver to fetch root CDN URL from host application.

if host doesn't provide value for flag "fluentIconCdnURL", then we will use existing default url.

Sample Card

FluentIcon

TeamsFluentIcon

compoundButton

TeamsCompoundButton

@wyAbhishek wyAbhishek changed the title Allow configuration of AC Fluent icon CDN paths for different environments [AND]: Allow configuration of AC Fluent icon CDN paths for different environments Sep 5, 2024
@wyAbhishek wyAbhishek changed the title [AND]: Allow configuration of AC Fluent icon CDN paths for different environments [Android + iOS]: Allow configuration of AC Fluent icon CDN paths for different environments Sep 5, 2024
Copy link

@ihiteshkumar ihiteshkumar left a comment

Choose a reason for hiding this comment

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

LGTM

@singhmanp0707 singhmanp0707 merged commit f3c54ad into main Sep 6, 2024
3 checks passed
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.

4 participants