NativeScript / NativeScript/nativescript-cli
Add --proxy option to enable the network proxy for the http requests in the android emulator.
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
Is your feature request related to a problem? Please describe.
Currently, I couldn't set a network proxy for the http requests in the android emulator. I noticed that avd has this option but tns doesnt. And I did all the searching in the documents and stackoverflow and still didnt find one. Currently I am on a project that have to request facebook's api, but I am in China, I cant access those api with proxy in the android emulator, so I am stuck on it now.
Describe the solution you'd like
Add --proxy option to enable the network proxy for the http requests in the android emulator like avd -http-proxy did.
Describe alternatives you've considered
I think --proxy is the most straightforward solution, or u could add some additional file in the project to have this function.
Additional context
I think its a key function, for users in mainland China, without proxy or vpn, they cant access public api from Twitter or Facebook, so please add this function ASAP, thanks.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 Android 模拟器的启动路径和 CLI 现有的选项解析,并以所要求的 --proxy 行为和 avd -http-proxy 作为参考。完成的标准是:CLI 接受该选项,将其传递给模拟器的 HTTP 代理配置,并通过模拟器经由代理发出的请求进行验证。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, javascript
- 领域
- cli, mobile, networking
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100