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

Bug fix: [Flutter SDK] [RTL] Some of the images/texts are in the wrong direction #15

Merged
merged 2 commits into from
May 20, 2024

Conversation

linjie-firework
Copy link
Collaborator

@linjie-firework linjie-firework commented May 16, 2024

Objective 🎯

Ticket: CPS-809

Changes 💥

  • Bug fix: [Flutter SDK] [RTL] Some of the images/texts are in the wrong direction

@linjie-firework linjie-firework requested a review from spookyd May 16, 2024 07:00
Copy link
Contributor

@spookyd spookyd left a comment

Choose a reason for hiding this comment

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

What is the intent for base64 encoding strings vs just using the real values?

Comment on lines +11 to +13
private let gNamesOfImagesWithDirection: [String] = [
"c3RyZWFtLWdhdGUtYmFjaw==".decodeBase64String(),
]
Copy link
Contributor

Choose a reason for hiding this comment

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

This base64 decoded string seems to be referencing and internal image of the FireworkVideoSDK. This is extremely fragile. What is the intent on this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't find the other way instead of hardcoding FireworkVideoSDK image names here. The image is used in SwiftUI. We don't have another way to check whether the image should be flipped. For the image used in UIImageView, we could check the flipsForRightToLeftLayoutDirection property. But we can't find the related property in SwiftUI.

@linjie-firework linjie-firework requested a review from spookyd May 17, 2024 14:40
@linjie-firework linjie-firework merged commit 7919b0b into release/v0.1 May 20, 2024
1 check passed
@linjie-firework linjie-firework deleted the fix/CPS-809 branch May 20, 2024 14:30
linjie-firework added a commit that referenced this pull request May 20, 2024
…g direction (#15)

* Bug fix: [Flutter SDK] [RTL] Some of the images/texts are in the wrong direction

* Update UIView+AppLanguage.swift
linjie-firework added a commit that referenced this pull request May 30, 2024
* [Bug] IOS Flutter SDK- Translation: English is not translated in the Subtitle section (#14)

* Bug fix: [Flutter SDK] [RTL] Some of the images/texts are in the wrong direction (#15)

* Bug fix: [Flutter SDK] [RTL] Some of the images/texts are in the wrong direction

* Update UIView+AppLanguage.swift

* Fix warning: Forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents. (#16)

* [CPS-830] Bug fix: iOS RN SDK - DS - Invalid access token overlaps with the icon (#18)

* Bug fix: CPS-830

* Update FireworkVideoUI.podspec
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.

2 participants