This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Add weex-rax-api.js for eagle (#2446)
* * [Android] Add weex-rax-api.js for eagle * Pass options to c++ * Revert bundle type judgement. * Revert "Pass options to c++" This reverts commit 406d1f0 * [Android] Change the json structure weex.config.env. # Before ## Normal Page { "bundleType": "Vue", "bundleUrl": "xxxx", "env": { "deviceHeight": "1200", "deviceWidth": "720", "enableBackupThread": "true", "enableBackupThreadCache": "true", ..... }, "render_strategy": "DATA_RENDER" } ## Eagle Page As bundleType is `Others`, `env.options` will not be merged into `env`. { "bundleType": "Others", "bundleUrl": "xxxx", "env": { "deviceHeight": "1200", "deviceWidth": "720", "options": { "enableBackupThread": "true", "enableBackupThreadCache": "true", ..... } .... }, "render_strategy": "DATA_RENDER" } # After 1. No matter what bundleType, always merge `env.options` into `env` 1. For compatibility reason, remain the `env.options` at its original place. { "bundleType": "Other", "bundleUrl": "xxxx", "env": { "deviceHeight": "1200", "deviceWidth": "720", "enableBackupThread": "true", "enableBackupThreadCache": "true", "options": { "enableBackupThread": "true", "enableBackupThreadCache": "true", ..... } ..... }, "render_strategy": "DATA_RENDER" }
- Loading branch information