* supply a default context when surface destroyed (#4222)
* Fix loop audio would stop for ios system (#4254)
* IOS system has an uncertain state between foreground and background, and our condition sometimes miss the point to load buffers.
* Queue for 3 buffers might be too short to live, use 4 or even more instead.
* Use same mtx for write (#4220)
* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system
* 1、Merge platform adaptation layer code into the development branch
2、It passed the test in windows and ohos system
* 1、Fix github compile windows error
* 1、Fix github compile windows error
* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation
* 1. Adjust the code format;
2. Fix js automatic generation binding
3. Adjust github CI compilation
* Solve mac and ios compilation failure
* Fix the problem of compilation of Windows-side simulator
* 1. Adapt the simulator to a new adaptation layer;
2. Fix the compilation warning of ios, and the implicit conversion failed;
3. Fix the mac compilation error, due to the problem of adding the link identification -all_load;
* 1.Add the isDisplayStats and setDisplayStats method to the screen interface
* Fix clang-tidy compilation warning
* Fix clang-tidy compilation warning
* Repair the emulator, compatible with mac and win
* 1、Repair detailed errors, including name modification and calling method modification
2、Delete redundant files in the template directory
3、Change the vibrate interface to vibrator
4、Fix word spelling errors
* Rename interfaces to modules
* Replace CC_ASSERT with CCASSERT
* Replace CC_ASSERT with CCASSERT
Co-authored-by: qiuguohua <>
* use java activity
* simplify codes
* initialize app
* first version of touch handler
* fix touch event's bug
* add keycode event support for android
* add sensor adapt
* add copyright header
* add webview support
* support video player
* add missing property
* add editor box support
* handle crash if come from background on Android
* update external version
Co-authored-by: wuzhiming <wuzhiming.chukong@gmail.com>
* free AudioMix partial wake locks, and android device can enter power save
* fix audio engine crash, avoid update function reentrancy.
* fix hot update issue.
* avoid a NULL point crash when ScriptEngine::cleanup