-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
V3.8.5 oh api12 #17869
Conversation
* 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
✅ Package size is not changedInterface Check ReportThis 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); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ccnew
@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(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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*)); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
@qiuguohua, Please check the result of
Task Details
|
@qiuguohua, Please check the result of
Task Details
|
@cocos-robot run test cases |
@qiuguohua I just merge it. The OH compiling error should be fixed later. |
@qiuguohua, Please check the result of
Task Details
|
@qiuguohua, Please check the result of
Task Details
|
* 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]>
Re: #
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: