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

Add Tizen 8.0 bindings #31

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Add Tizen 8.0 bindings #31

merged 1 commit into from
Mar 14, 2024

Conversation

JSUYA
Copy link
Member

@JSUYA JSUYA commented Mar 11, 2024

The rootstrap path in tizen 8.0 has changed.

API reference: https://docs.tizen.org/application/native/api/common/8.0/
[Updated headers in 8.0]
nntrainer/nntrainer.h
nnstreamer/ml-api-service.h
media/mv_common.h
media/webrtc.h
media/sound_manager.h
media/player.h
media/camera.h
tts.h
rpc-port/rpc-port-parcel.h
stt.h
appfw/app_common.h
appfw/app_control.h
appfw/app.h
web/download.h
network/net_connection.h
network/bluetooth.h
network/wifi-manager.h
peripheral_io.h

@JSUYA JSUYA marked this pull request as draft March 11, 2024 10:47
@JSUYA JSUYA force-pushed the tizen_8 branch 3 times, most recently from fcd4645 to b022328 Compare March 12, 2024 07:37
@JSUYA JSUYA changed the title [Draft] Add Tizen 8.0 bindings Add Tizen 8.0 bindings Mar 12, 2024
@JSUYA JSUYA requested a review from swift-kim March 12, 2024 07:39
@JSUYA JSUYA marked this pull request as ready for review March 12, 2024 07:39
@JSUYA
Copy link
Member Author

JSUYA commented Mar 12, 2024

Sorry i didn't update readme yet. i will update soon.

@JSUYA JSUYA force-pushed the tizen_8 branch 2 times, most recently from fa298c6 to 3ce1b9e Compare March 13, 2024 02:06
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
configs/8.0/entrypoints.h Outdated Show resolved Hide resolved
configs/8.0/ffigen.yaml Outdated Show resolved Hide resolved
lib/src/bindings/5.0/generated_bindings.dart Outdated Show resolved Hide resolved
time_t)>>('notification_set_time_to_text');
ffi
.NativeFunction<ffi.Int Function(notification_h, ffi.Int32, time_t)>>(
'notification_set_time_to_text');
Copy link
Member

Choose a reason for hiding this comment

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

Are these only formatting changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

The format has changed. In my view, there doesn't seem to be any API change.

Copy link
Member

Choose a reason for hiding this comment

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

We didn't update the ffigen version. What made the changes?

→ ffigen 7.2.10 added parameter names for function pointer arguments.

7.2.10 #
Generate parameter names in function pointer fields and typedefs.

You can update the dev_dependency in pubspec.yaml to the version installed on your machine if you want to be clear.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for your review.
I updated ffigen version to latest(11.0.0). And I reverted the ffigen.yaml(4.0 ~ 7.0) changes.
+) I updated the version of the tizen_interop_callbacks package to 0.1.1.
please let me know if there's more to add.

Copy link
Member

Choose a reason for hiding this comment

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

Tip: Please check out the changelog and README of the ffigen package for newly added, potentially useful configuration options and other features when updating the ffigen version.

Copy link
Member Author

Choose a reason for hiding this comment

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

As far as I know, the minimum version we need from ffigen is 8.0.0-dev.0.
( 8.0.0-dev.0 : Adds final class modifier to generated sub types Struct, Union and Opaque...)
If we use ffigen 8.0.0, we need to adjust file package version, but file package applies the fixes made from dart 3.0 in 7.0.0.
Therefore, in order to satisfy the version, ffigen version should be 11.0.0.

scripts/copy_rootstrap.sh Outdated Show resolved Hide resolved
scripts/copy_rootstrap.sh Outdated Show resolved Hide resolved
@JSUYA JSUYA merged commit 6f1256e into flutter-tizen:main Mar 14, 2024
1 check passed
@JSUYA JSUYA deleted the tizen_8 branch March 14, 2024 02:40
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