* feat(pal): declare startup maximum DPR configuration
Add an optional maximum DPR to screen initialization and readonly access to
the original DPR and explicitly configured cap. An omitted or null cap retains
the platform's existing policy.
This is the engine type contract for the staged PAL implementation. Public
Screen configuration methods and Native render-target integration remain
separate work; this commit does not change runtime rendering.
Validated against the PAL engine/four-platform contract check and full npm test
(65 source tests, 4 build tests, release/debug module validation).
* feat(screen): expose startup maximum DPR configuration
Allow applications to set, reset and read a pending maximum DPR before Screen
initialization while preserving platform defaults when unconfigured. Lock the
configuration at initialization and reject unsupported PAL implementations or
options that PAL silently ignores.
Add startup validation and compatibility tests. Only implementation and tests
are included; local documentation and generated validation artifacts remain
outside this commit.
Companion PAL commit: 2959778b7acf83dd84e3aab5957d60d80e20c461.
Native render-target integration, device acceptance, runtime changes and editor
configuration remain separate work.
Validation recorded on 2026-09-29: tsc --noEmit; 20 Screen and 6 View tests;
public declaration generation; real WebGL demo with simulated host DPR,
first-draw, input, reset, late-call rejection and resize checks. Screen source
SHA-256 still matches that verified build.
* fix(screen): restrict startup DPR configuration to Web
* fix(screen): ignore DPR cap calls on non-Web platforms
* fix(screen): preserve optional DPR types in native builds
* refactor(screen): configure Web DPR through startup settings
* refactor(screen): delegate DPR policy and validation to PAL
* style(screen): wrap fullscreen method signatures
* perf(screen): simplify startup DPR null checks
* version update
The google play billing interface is consistent with google's original interface
---------
Co-authored-by: qiuguohua <guohua.qiu@cocos.com>
Co-authored-by: James Chen <dumganhar@gmail.com>
* feat: add the basic capability of handset ar native
* feat: add handset input device, for ar camera pose
* feat: native pack tool supports xr platform name
* feat: web gl context supports webxr
* feat: webxr has been converted to screen coordinates via camera
* fix: pr ts-expect-error undefined xr
* feat: support webxr, and remove ar redundant code
* fix:xr-spaces gradlew permission error
* feat: revert redundant ar engine feature
* fix: eslint check error
* feat: remove redundant code
* fix: eslint check warning
* adjust armodule process in forward stage, mtl texture and jsb
* fix: exlint warning, and add license
* adjust ar lib and interfaces
* change webxr check interface
* merge external arlib header and move it to engine
* improve: update native external version
* move ar background stage to xr/rendering and move its init to webxr device in xr plugin
* fix format error
* fix format error
* adjust jsb_ar_manual, ARModule, ARBackground
* adjust arbackground
Co-authored-by: Parryzhai <1306895355@qq.com>
Co-authored-by: MoHai <1192652394@qq.com>
* Fix: Update the implementation of the supportWebp on minigame.
Optimize: Adjust the initialization of the System-info module.
* Add return type of the sys-init function.
* Add try-catch to _supportsWebp method