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

Clean up the embedder API and refactor #83

Merged
merged 5 commits into from
May 11, 2021

Conversation

swift-kim
Copy link
Member

@swift-kim swift-kim commented May 7, 2021

Clean up the Tizen embedder API and refactor some parts of the embedder.

APIs changed:

  • Change the API prefix Flutter to FlutterDesktop (this has been discussed once before somewhere in the internal repo but I'd like to change it back to more verbose one to avoid ambiguity and for consistency with other plugin/texture APIs)
    • Why is it ambiguous? e.g. It's hard to tell whether FlutterEngineProperties is a Flutter embedder API (embedder.h) or Tizen API (flutter_tizen.h).
  • Added: FlutterDesktopEngineGetMessenger (for later use)
  • Removed: FlutterCreateWindow, FlutterDestroyWindow, FlutterRunsPrecompiledCode
  • FlutterWindowControllerState is replaced by FlutterDesktopEngineRef (because the name is not appropriate for headless mode)
  • FlutterDesktopRunEngine takes a bool parameter

Other changes:

  • Rename TizenEmbedderEngine to FlutterTizenEngine (which is similar to FlutterWindowsEngine) and clean up
  • Use consistent names for fields and functions (e.g. renderer instead of tizen_renderer)
  • Rename variables and constants according to naming convention
  • Remove unnecessary logs

A follow-up PR will be made in the tool repo soon.

More refactoring should be done in the future. I mainly focused on cleaning up flutter_tizen.cc and flutter_tizen_engine.h in this PR.

@swift-kim swift-kim mentioned this pull request May 8, 2021
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.

Generally, looks good to me!

shell/platform/tizen/flutter_tizen.cc Show resolved Hide resolved
shell/platform/tizen/flutter_tizen.cc Show resolved Hide resolved
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.

I love this work. thanks 👍

@xiaowei-guan xiaowei-guan self-requested a review May 10, 2021 07:59
Copy link

@xiaowei-guan xiaowei-guan left a comment

Choose a reason for hiding this comment

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

LGTM

@bwikbs bwikbs merged commit 8629ed7 into flutter-tizen:flutter-2.0.1-tizen May 11, 2021
swift-kim added a commit that referenced this pull request Jun 7, 2021
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Sep 27, 2021
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Nov 14, 2021
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Dec 9, 2021
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Dec 17, 2021
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Feb 7, 2022
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Feb 11, 2022
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request May 12, 2022
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim added a commit that referenced this pull request Aug 5, 2022
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@f5d8227...8834766)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
swift-kim added a commit that referenced this pull request Sep 1, 2022
* Rename types and functions

* Clean up engine APIs

* Add FlutterDesktopEngineGetMessenger API

* Refactor FlutterTizenEngine a bit

* Refactor channels
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