Commit Graph

35 Commits

Author SHA1 Message Date
CC9701
f8d36990af update runtime ral (#10166)
Re: cocos-creator/3d-tasks#

Changelog:
1. Fix the value of windowHeight and windowWidth pixelRatio return by getSystemInfo(Sync) on VIVO platform
Add ral/API.md as ral API reference
2. Add API getFeaturePropertyInt which was described in ral/API.md
3. Fix CP call sys.garbageCollect() will get TypeError on OVH and cocosplay
2022-03-23 12:11:24 +08:00
PP
c84b4306ab fix culling deprecated module (#9937) 2022-01-06 23:50:54 +08:00
PP
3a3f1ea151 fix set frame rate on runtime (#9874) 2021-12-27 14:35:18 +08:00
W-MTZing
f535925cb7 fixed Cocos play getting Webgl error (#9609) 2021-11-03 23:53:57 +08:00
PP
f5511f4c87 Revert "Revert "optimize interface in screen module (#9176)"" (#9490)
This reverts commit b88d4845cc.
2021-10-15 10:21:04 +08:00
pandamicro
b88d4845cc Revert "optimize interface in screen module (#9176)"
This reverts commit 4735476945.
2021-10-14 23:07:23 +08:00
PP
4735476945 optimize interface in screen module (#9176)
* optimize interface in screen module

* remove DPR calculating

* update screen-adapter init

* set screen.resolutionScale as 1 by default

* remove pixelRatio getter in system-info

* remove sys.windowPixelRatio access

* optimize screen.windowSize

update

* convertToCocosScreenSpace

* change resolution-change to window-resize

* fix native UI

update

update UI

update UI

* optimize screen init

* fix subContextView

* fix root resize

* fix precision issue on Metal render end

* sys.windowPixelRatio

* use warnID

* remove screen.convertToCocosScreenSpace

* put private property and method together after public ones

* warnID

* fix landScape on CocosPlay

* fix DPR on vivo platform

* fix CI
2021-10-14 22:16:34 +08:00
CC9701
04c58f61ad Fix touch event error on vivo platform (#9467)
Fix touch event error on vivo platform find in some device with notch screen
2021-10-14 10:29:36 +08:00
PP
d916165d85 optimize hide show event implamentation on minigame / runtime platform (#9093)
* fix hide show event on runtime platform

* remove legacy adapter on minigame platform

update
2021-08-04 16:16:36 +08:00
Santy-Wang
617adca055 strip extension and change extension in minigame (#9061) 2021-07-24 20:11:41 +08:00
Santy-Wang
41e0656cfa support cconb in other platform (#9055)
* support cconb in minigame

* preprocess extension

* refine

* remove generic type

* dont change ext
2021-07-23 22:36:27 +08:00
PP
5a8c5432b7 update fetch ral from gitlab (#9019) 2021-07-20 16:45:58 +08:00
PP
2d396ab482 support target-commit.json in RAL repo (#9007)
* support generate ral latest-commit.md

* use target-commit.md

update

update

update

* update
2021-07-20 13:20:26 +08:00
PP
20bc9e80e4 support fetch ral workflow (#8971)
* remove RAL adapter in engine repo

* support fetch ral workflow

stash

stash

update

* update lock

* update fetch-ral

* support force fetch ral

* remove fetch-ral from npm install work flow
2021-07-16 10:48:36 +08:00
PP
960dc20334 compability with AudioClip method since deprecated on v3.1.0 (#8905) 2021-06-29 10:33:13 +08:00
Bird
4a243f51e0 [refine] remove cocos-runtime platform (#8739) 2021-06-03 14:03:51 +08:00
PP
2bce7361f8 fix Audio currentTime on Huawei (#8656) 2021-05-13 14:18:31 +08:00
PP
856120f52d fix undefined element in caches array on v3.1.1 (#8663) 2021-05-12 10:23:21 +08:00
PP
25b6f15410 fix Accelerometer bug (#8573)
* fix accelerometer on wechat

* fix baidu

* fix bytedance

* fix alipay

* fix xiaomi

* fix runtime

* fix orientation on CocosPlay

* remove legacy adapter

* remove canvas warning
2021-04-28 17:21:49 +08:00
PP
cd1548d3f6 fix Audio bug (#8515)
* support AudioPlayer.loadOneShotAudio

* support native

* support minigame

* support createInnerAudioContextPolyfill

update

* fix audioLoading on runtime

* fix Safari doesn't support promise based decodeAudioData

* optimize interface design

* add onPlay polyfill for vivo

* fix setting AudioSource.clip concurrently

* add createInnerAudioContextPolyfill for Xiaomi

* add createInnerAudioContextPolyfill on Baidu

* fix web audio player currentTime
2021-04-23 18:07:58 +08:00
PP
05e65d381e remove sys related adapter (#8523)
* remove sys adapter in runtime

* remove web-adapter README.md

* remove sys adapter on minigame
2021-04-22 16:40:31 +08:00
PP
f94c933e13 fix linksure getSystemInfo language (#8516) 2021-04-22 10:13:08 +08:00
PP
86f20da0f0 support pal/input (#8472)
* support pal/input

update

* update

* fix esLint

* support minigame

* support  pal/input on  minigame

* remove minigame.isSubContext

* support native

update

* deprecate static property on EventMouse

* deprecated static property in  EventTouch

* remove TODO

* remove  x y position in MouseWheel Event

* remove TODO

* remove temp code

* fix esLint

* update AccelerometerIntervalMode

* remove legacy code in JSB

* fix esLint

* optimize AccelerometerInputSource.setInterval

* fix esLint

* optimize code

* add more details for documentation

* update

* don't pass game.canvas to inputManager.registerSystemEvent

* optimize

* Revert "remove  x y position in MouseWheel Event"

This reverts commit b521ec4948.

# Conflicts:
#	@types/pal/input.d.ts

* update

* fix esLint

* fix esLint
2021-04-19 16:24:42 +08:00
Santy-Wang
2f8090ba7f move importBundleEntry to factory (#8339) 2021-04-16 15:39:32 +08:00
PP
5109e399b1 update runtime al (#8349)
* optimize  ral.startAccelerometer

* remove jsb.setPreferredFramesPerSecond on runtime

udpate

* update ral

update  ral

update ral

update ral
2021-03-17 10:55:59 +08:00
yongminghuang
7d2db6770c [adjsut] rename jsb to ral (#8327)
* [adjsut] rename jsb to ral ,add ovh  jsb.js

* [adjust] adjust

* [adjust] adjust  adapter

* [adjust] update adapter

* [adjust] updata adapter

* [bug] fix cannot run in cocos play

* [bug] fix vivo cannot run

* [adjust]rename jsb.js to ral.js
2021-03-05 19:57:07 +08:00
PP
5d5a8fc245 adapt runtime 2.0 (#8287)
* add cocos runtime

update

update

* support link-sure

* update  jsb

* support oppo

* move fs-utils && AudioPlayer to common

update

* fix loadSubPackage

* support qtt

* add huawei & vivo

* remove qgame-adapter.js

* optimize accelerometer

* add back copyright
2021-03-01 11:10:20 +08:00
PP
61c4647285 opotimize outOfStorage && video event dispatching (#8169)
* opotimize outOfStorage on runtime platform

* fix videoPlayer  event dispatching on  OPPO platform
2021-01-21 10:26:34 +08:00
PP
5792f5ec1a fix undefined editBoxEditingDidBegan (#8163) 2021-01-19 17:52:20 +08:00
PP
b94556b77e fix accelerometer on runtime (#8139) 2021-01-14 17:39:30 +08:00
PP
81182a87f8 adapt videoPlayer on OPPO (#8013) 2020-12-25 09:55:17 +08:00
Santy-Wang
ad4bff3988 Restructure Module (#7968)
* module restructure

* refine

* restructure module

* merge

* revert

* fix ci

* update import path of unit-test

* split 2d and ui

* add more module

* change audio adapter

* rename primitive

* config wechat plugin

* merge

* add category config

* merge

* merge
2020-12-24 19:07:26 +08:00
PP
04a6a7e311 fix accelerometer on Runtime (#7967)
* fix accelerometer on Runtime

* update
2020-12-17 10:18:56 +08:00
PP
e737190f54 optimize code in sys.ts (#7966)
* remove platform  related code in sys.ts

* remove browserType for minigame
2020-12-16 13:48:22 +08:00
PP
0a836ac458 optimize sys info init && move in runtime adapters (#7920)
* optimize sys info init in adapters

update

* update sys init

update sys

* fix sys access

* optimize isWebIOS14OrIPadOS14Env

* update

* update

* update QTT adapter

* update sys.capacities

update sys

* update common && qtt

* add downloadFile to job module

* update engine-adapter

* update DeviceMotionEvent  adaption

* remove legacy qtt

* add link-sure adaption

* fix some bug

* update vivo adaption && fs-utils

* remove legacy link-sure

* remove dom-adapter

* remove HTMLCanvas appended to document

* update vivo

* support COCOS_PLAY

* update adapters to platforms

* remove test code

* add OPPO adapter

* add huawei adapter

* remove test code

* rename folder oppo-mini-game

* rename  folder huawei-quick-game

* rename folder vivo-mini-game
2020-12-15 11:54:13 +08:00