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

V3.8.5 oh api12 #17869

Merged
merged 11 commits into from
Nov 19, 2024
Merged

V3.8.5 oh api12 #17869

merged 11 commits into from
Nov 19, 2024

Conversation

qiuguohua
Copy link
Contributor

Re: #

Changelog


Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • changes public API, and have ensured backward compatibility with deprecated features.
  • affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • affects file structure of the build package or build configuration which requires user project upgrade.
  • introduces breaking changes, please list all changes, affected features and the scope of violation.

qiuguohua and others added 3 commits November 14, 2024 19:20
* Improvement of openharmony's editbox

* Remove redundant header file

---------

Co-authored-by: qiuguohua <[email protected]>
# Conflicts:
#	templates/openharmony/entry/src/main/cpp/types/libcocos/index.d.ts
#	templates/openharmony/entry/src/main/ets/components/EditBoxDialog.ets
#	templates/openharmony/entry/src/main/ets/pages/index.ets
#	templates/openharmony/entry/src/main/ets/workers/cocos_worker.ts
Copy link

github-actions bot commented Nov 18, 2024

✅ Package size is not changed

Interface Check Report

This pull request does not change any public interfaces !


_audioPlayerProvider = ccnew AudioPlayerProvider(_engineEngine, _outputMixObject, outputSampleRate, bufferSizeInFrames, fdGetter, &gCallerThreadUtils);
#elif CC_PLATFORM == CC_PLATFORM_OPENHARMONY
_audioPlayerProvider = new AudioPlayerProvider(_engineEngine, outputSampleRate, fdGetter, &gCallerThreadUtils);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use ccnew to keep the same coding style.

_mixController(nullptr), _threadPool(LegacyThreadPool::newCachedThreadPool(1, 8, 5, 2, 2))
{
_mixController = new AudioMixerController(_deviceSampleRate, 2);
_pcmAudioService = new PcmAudioService();
Copy link
Contributor

Choose a reason for hiding this comment

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

Use ccnew

@dumganhar
Copy link
Contributor

@cocos-robot run test cases

// This interface needs to be implemented in JSVM, similar to V8.
// Ref:https://nodejs.org/docs/latest-v17.x/api/n-api.html#object-lifetime-management
AutoHandleScope();
~AutoHandleScope();
Copy link
Contributor

Choose a reason for hiding this comment

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

I saw AutoHandleScope is implemented in this PR. Could the comment be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

bundle_name = info.bundleName;
}

char* module_info = (char*)malloc((strlen(bundle_name) + strlen(module_name) + 1) * sizeof(char*));
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is module_info freed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

char* name = nullptr;

public:
static std::unordered_map<std::string, JSFunction> FUNCTION_MAP;
Copy link
Contributor

Choose a reason for hiding this comment

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

For keeping the same coding style, FUNCTION_MAP should be renamed to jsFunctionMap.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Fix some issues with jsvm
Copy link

@qiuguohua, Please check the result of run test cases:

Task Details

Platform build boot runned crashScene FailScene
web-mobile PASS PASS FAIL shield-node
ios PASS PASS FAIL shield-node
mac PASS PASS FAIL shield-node

Copy link

@qiuguohua, Please check the result of run test cases:

Task Details

Platform build boot runned crashScene FailScene
windows PASS PASS FAIL shield-node
android PASS PASS FAIL shield-node
wechatgame PASS PASS FAIL shield-node

@qiuguohua
Copy link
Contributor Author

@cocos-robot run test cases

@minggo
Copy link
Contributor

minggo commented Nov 18, 2024

@qiuguohua I just merge it. The OH compiling error should be fixed later.

Copy link

@qiuguohua, Please check the result of run test cases:

Task Details

Platform build boot runned crashScene FailScene
web-mobile PASS PASS FAIL shield-node
ios PASS PASS FAIL shield-node
mac PASS PASS FAIL shield-node

Copy link

@qiuguohua, Please check the result of run test cases:

Task Details

Platform build boot runned crashScene FailScene
windows PASS PASS FAIL shield-node
android PASS PASS FAIL shield-node
wechatgame PASS PASS FAIL shield-node

@minggo minggo merged commit 59e00c9 into cocos:v3.8.5 Nov 19, 2024
24 of 25 checks passed
qiuguohua added a commit to qiuguohua/cocos-engine that referenced this pull request Nov 26, 2024
* Improvement of openharmony's editbox (cocos#17042)

* Improvement of openharmony's editbox

* Remove redundant header file

---------

Co-authored-by: qiuguohua <[email protected]>
# Conflicts:
#	templates/openharmony/entry/src/main/cpp/types/libcocos/index.d.ts
#	templates/openharmony/entry/src/main/ets/components/EditBoxDialog.ets
#	templates/openharmony/entry/src/main/ets/pages/index.ets
#	templates/openharmony/entry/src/main/ets/workers/cocos_worker.ts

* Upgrade the openharmony API to 12

* Remove debugging information

* Fix some bugs in the ark engine
Fix some issues with jsvm
* Release module_info

* Fix std::any_of return value not being used

---------

Co-authored-by: qiuguohua <[email protected]>
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