Skip to content

Replace LocalizationChannel with system_utils #147

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

Conversation

swift-kim
Copy link
Member

  • Remove LocalizationChannel, because it doesn't act like a channel or plugin.
  • Create system_utils.h, similarly to other platform embedders. More functions may be added in this file in the future.
  • Implement system_utils_tizen.cc and system_utils_linux.cc for the Tizen and Linux x64 embedders respectively.

Note:

  • Some code was copied from the Windows and GLFW embedders.
  • The SendPlatformResolvedLocale method has been removed because it's not used by anything. The functionality has been moved to the embedder API (FlutterProjectArgs.compute_platform_resolved_locale_callback). I don't think we need to implement it.

@bbrto21 and I have agreed to use the _tizen.cc and _linux.cc filename suffixes for Tizen and Linux-specific implementations. How do you think? @bwikbs (The use of _stub.cc is to indicate the "unimplemented" state of the code and should be eliminated eventually.)

@swift-kim swift-kim requested a review from a team July 16, 2021 07:12
@swift-kim swift-kim force-pushed the remove-localization-channel branch 2 times, most recently from 07985a7 to b338e26 Compare July 16, 2021 07:20
@bwikbs
Copy link
Member

bwikbs commented Jul 18, 2021

@bbrto21 and I have agreed to use the _tizen.cc and _linux.cc filename suffixes for Tizen and Linux-specific implementations. How do you think? @bwikbs (The use of _stub.cc is to indicate the "unimplemented" state of the code and should be eliminated eventually.)

I totally agree with you! The only reason I'm wary of the _linux suffix is that the linux port is already in use.
If you guys opinion is so, I would like to use it that way.

@swift-kim swift-kim force-pushed the remove-localization-channel branch 2 times, most recently from f79e068 to 2359b26 Compare July 19, 2021 06:20
@bwikbs
Copy link
Member

bwikbs commented Jul 19, 2021

I got following error code at x64 build

../../flutter/shell/platform/tizen/flutter_tizen_engine.cc:47:15: error: unused function 'CovertToFlutterLocale' [-Werror,-Wunused-function]
FlutterLocale CovertToFlutterLocale(const LocaleInfo& info) {

@swift-kim swift-kim force-pushed the remove-localization-channel branch from 2359b26 to 3e48787 Compare July 19, 2021 06:40
@swift-kim
Copy link
Member Author

@bwikbs Uh, my mistake. Something went wrong during the last rebase. The error should have been fixed now.

Copy link

@bbrto21 bbrto21 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@bwikbs bwikbs left a comment

Choose a reason for hiding this comment

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

Thanks! It's pretty cool 👍

@bbrto21 bbrto21 merged commit ed90b73 into flutter-tizen:flutter-2.2.1-tizen Jul 19, 2021
swift-kim added a commit that referenced this pull request Sep 27, 2021
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request Nov 14, 2021
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request Dec 9, 2021
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request Dec 17, 2021
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request Feb 7, 2022
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request Feb 11, 2022
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request May 12, 2022
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim added a commit that referenced this pull request Aug 5, 2022
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
swift-kim added a commit that referenced this pull request Sep 1, 2022
* Remove LocalizationChannel and move the logic to FlutterTizenEngine

* Create system_utils and add the desktop implementation

* Organize includes
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.

3 participants