NativeScript / NativeScript/nativescript-cli

Add --proxy option to enable the network proxy for the http requests in the android emulator.

未關閉
#5,349 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先追蹤 Android 模擬器的啟動路徑和 CLI 現有的選項解析,並以所要求的 --proxy 行為和 avd -http-proxy 作為參考。完成的標準是:CLI 接受該選項,將其傳遞給模擬器的 HTTP Proxy 設定,並透過模擬器經由 Proxy 發出的請求進行驗證。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, javascript
領域
cli, mobile, networking
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。