Commit Graph

68 Commits

Author SHA1 Message Date
bofeng-song 178ab91ed1 adapt xmlhttprequest for taobao (#15199) 2023-05-26 14:57:16 +08:00
bofeng-song 08063379f3 support splash for taobao & refine code (#15136)
* support splash for taobao & refine code
2023-05-23 09:41:16 +08:00
bofeng-song 1902433f00 Alipay: fix the bug in the subpackage interface. (#15137) 2023-05-23 09:40:22 +08:00
bofeng-song 477e197312 fix taobao's location missing property (#15054) 2023-05-16 11:55:20 +08:00
bofeng-song ec60647f06 Support the adaptation of Alipay mini games (#14984) 2023-05-08 17:45:08 +08:00
minggo a22d16bbe6 Merge branch 'v3.7.3' into merge_v3.7.3 2023-04-24 11:26:58 +08:00
mmyduckx 097c3cead0 keyboard input support for wechat program (#14836)
* add keyboard input adapter for wechat program

* refine

* refine
2023-04-20 18:53:56 +08:00
mmyduckx 33c0aa1bf3 use wechatprogram subpackge default and speedup launch time (#14683)
* use wechatprogram subpackge default and speedup launch time

* move gl.texSubImage2D adapater to PAL

* refine

* add getApp declare

* fix texture rendering in device

* move bundle require insert to load-module
2023-03-31 16:22:57 +08:00
minggo bcc581dfd7 Merge branch 'v3.7.3' into develop_merge_v3.7.3 2023-03-24 10:57:28 +08:00
bofeng-song 24aa09670b support sepereate engine for taobao mini game (#14596)
* support sepereate engine for taobao mini game
2023-03-20 10:14:25 +08:00
mmyduckx 38c0ed4f95 add wechatprogram platform support (#14580)
* add wechatprogram platform support
2023-03-15 14:13:24 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
bofeng-song 9a86d8fb11 support splash for taobao mini game (#14497) 2023-03-07 16:31:55 +08:00
mmyduckx de98057c6b speed up launch time (#14307) 2023-02-24 16:20:46 +08:00
bofeng-song b789f774a1 support loadSubpackage for taobao mini game (#14345) 2023-02-24 14:55:05 +08:00
bofeng-song 882887cb9f support taobao mini game (#14324) 2023-02-22 10:34:17 +08:00
PP 547cc1454d fix: fallback for subpackeg loading on ByteDance platform (#13644) 2022-12-05 13:53:07 +08:00
mmyduckx 20863b9198 add editbox callback parameter & emit by ralated event (#13623)
* add editbox callback parameter & emit by ralated event

* add comment
2022-12-05 12:00:20 +08:00
ycg 02d9cd805b Update to English notes. 2022-11-23 15:49:11 +08:00
ycg 02c5717ba9 Fix: XMLHttpRequest failed to get header on TaoBao (#13119)
* Add Note and  rename.

* Fix: XMLHttpRequest failed to get header

* Fix: Modify the default value of Headers.

* Rename to MAX_AMOUNT_WEBSOCKET.

* Rename some function.
2022-10-25 11:07:37 +08:00
ycg 01b2632af6 Adapter Network (#13074)
* Adapter  Network

* Modify _triggerEvent to private method

* Fix: Only one WebSocket can be created at the same time.
2022-10-18 16:10:59 +08:00
ycg d9b3c18210 Adapter Rendering, Editbox, Label and Audio. (#13025)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad

* Adapter  screen-adapter on Taobao

* Remove useless comments

* Adapter EditBox and Label

* Adapter Audio

* Fix: GL.getUniformLocation returns an incorrect value

* Add @typescript-eslint/no-unsafe-return
2022-10-14 15:55:06 +08:00
ycg 1181b10f29 Adapter screen-adapter on Taobao (#12922)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad

* Adapter  screen-adapter on Taobao

* Remove useless comments
2022-09-28 13:36:19 +08:00
PP 6bb3c084cd fix: undefined window.__globalAdapter && loading remote image on Taobao IDE (#12901)
* fix: undefined window.__globalAdapter

* fix: loading remote image on Taobao IDE
2022-09-27 10:13:50 +08:00
PP 8a1b31e0ba support Taobao platform (#12819)
* add taobao adapter

* add TAOBAO platform

* add templates

update templates

* fix: readJsonSync can't work on Taobao platform

add TODO

* fix: update import-map

* fix: ban splash screen on Taobao platform

* fix: adapt image loading

* fix: MINIGAME on Taobao platform

* update constant manager

* optimize: skip splash screen on Taobao

* fix: @ separator on Taobao platform

* Revert "fix: @ separator on Taobao platform"

This reverts commit 18903291807ef3263c27a90ad67753da7e531142.

* fix: @

* fix: undefined canvas.addEventListener

* fix: minigame.isDevTool

* fix: createCanvas on canvasOnReady hook

* optimize: event register

* optimize: onCanvasCreated name
2022-09-21 14:50:03 +08:00
PP 1787c416a5 convert OpenDataContext template into es5 (#12334) 2022-08-04 19:08:13 +08:00
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
PP b5e59410c1 fix require on baidu platform (#11643) 2022-06-22 13:50:55 +08:00
PP 549108d018 support bundle-adapter workflow (#11337)
* update require

* support bundle-adapter workflow

update

* update adapter require

* add timer

* update

* update lock

update lock

* remove node version for npm test CI

* with node version 16.15

* install jsdom

* use 16.15
2022-06-08 12:47:23 +08:00
ChiaNing 0587992cb1 fix label Blend Factor bug for BYTEDANCE (#10516)
* fix label Blend Factor bug for BYTEDANCE

* update
2022-03-26 18:53:07 +08:00
PP c84b4306ab fix culling deprecated module (#9937) 2022-01-06 23:50:54 +08:00
PP 3c2abc5fba remove adapters code (#9494) 2021-10-22 18:45:28 +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
PP ccd505ad14 migrate Engine Input Event into PAL (#9320)
* optimize input module

* rename

* fix CI

* update input-box.d.ts
2021-09-15 13:51:38 +08:00
PP fa6ba48c27 fix undefined window.location.protocol (#9185) 2021-08-16 15:22:21 +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 2c83cda615 fix reading array buffer failed (#9070) 2021-07-26 20:14:06 +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 db7f4a3e3c fix can't update default value when show keyboard on Xiaomi platform (#9033)
* add EditBox adapter on Xiaomi platform

* skip invalid input callback

* Revert "skip invalid input callback"

This reverts commit fc4e2ee38cb7aebce7c405483d70a28507f03373.

* delay event registering after showing keyboard

* add note
2021-07-22 16:21:00 +08:00
pandamicro 09a2eb2d2e Move director delta time to game and remove deprecated APIs (#8913)
* Move director delta time to game and remove deprecated APIs

* Small ts fixes

* Fix ci

* Fix module import

* Adaptation

* Improve usage

* Improve deprecation

* Fixes and improve setFrameRate logic

* Move game's time control functions to timer class

* Fix frame time counter

* Tweaks

* Tweaks

* Revert timer
2021-07-09 17:27:52 +08:00
PP 960dc20334 compability with AudioClip method since deprecated on v3.1.0 (#8905) 2021-06-29 10:33:13 +08:00
PP d85cee16df remove legacy adapter in Wechat PC game (#8626)
* support keyboardEvent on wx pc game

update

update

# Conflicts:
#	pal/input/minigame/keyboard.ts

* support mouse event

* move in gl.useProgram adapting

* remove legacy adapter

update

* update

update

update

update

* rename interface

* bind method
2021-06-24 11:37:16 +08:00
PP ad24ca70c7 update deprecated usage of sy API (#8684) 2021-05-18 13:31:27 +08:00
PP 420c9f59d4 support system.getSafeAreaEdge() (#8654)
* support system.getSafeAreaEdge()

* remove legacy adapter

* remove code

* update
2021-05-17 18:12:13 +08:00
PP 856120f52d fix undefined element in caches array on v3.1.1 (#8663) 2021-05-12 10:23:21 +08:00
PP f543c071f4 fix xiaomi ttf downloading (#8569) 2021-04-27 14:48:07 +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