GeezerVison is showing github.com — build(tun2socks): :fire: 1. 新增依赖为子模块. 2. 设置 tun2socks 日志级别为 error. · CKNetCapture/appproxy@7b69bc0
File tree
Expand file treeCollapse file tree
Open diff view settings
src/main/kotlin/cn/ys1231/appproxy/IyueService
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +[submodule "tun2socks"] |
| 2 | + path = tun2socks |
| 3 | + url = https://github.com/xjasonlyu/tun2socks.git |
Collapse file
Copy file name to clipboardExpand all lines: README.md +20Lines changed: 20 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
35 | 35 |
|
36 | 36 | # 开发 |
37 | 37 |
|
| 38 | +## build tun2socks |
| 39 | + |
| 40 | +- `touch tun2socks/build.sh` |
| 41 | + |
| 42 | +```shell |
| 43 | +#!/bin/zsh |
| 44 | +set -x |
| 45 | +SCRIPT_DIR=$(dirname "\$0") |
| 46 | +cd "$SCRIPT_DIR" |
| 47 | +# init |
| 48 | +go install golang.org/x/mobile/cmd/gomobile@latest |
| 49 | +go get |
| 50 | +go get golang.org/x/mobile/bind |
| 51 | +make |
| 52 | +gomobile init |
| 53 | +gomobile bind -o ../android/app/libs/tun2socks.aar -target android ./engine |
| 54 | +ls ../android/app/libs/tun2socks.aar |
| 55 | +``` |
| 56 | + |
38 | 57 | ```shell |
39 | 58 | # 如果发现Android Studio 调试flutter 自动跳到一个只读的文件,调试的时候无法修改代码,可以恢复上一个版本,是的坑. |
40 | 59 | # 推荐 Android Studio Iguana | 2023.2.1 Patch 2 |
41 | 60 | # line 设置为 100 |
| 61 | +tun2socks/build.sh |
42 | 62 | flutter build apk --release --split-per-abi --build-name=$VERSION --obfuscate --split-debug-info ./build/ |
43 | 63 | ``` |
44 | 64 |
|
|
Collapse file
Copy file name to clipboard Collapse file
Copy file name to clipboard Collapse file
Copy file name to clipboardExpand all lines: android/app/src/main/kotlin/cn/ys1231/appproxy/IyueService/IyueVPNService.kt +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -124,7 +124,7 @@ class IyueVPNService : VpnService() { |
124 | 124 | key.mtu = 1500 |
125 | 125 | key.device = "fd://" + vpnInterface!!.fd // <--- here |
126 | 126 | key.setInterface("") |
127 | | - key.logLevel = "debug" |
| 127 | + key.logLevel = "error" |
128 | 128 | key.proxy = |
129 | 129 | "${proxyType}://${proxyUser}:${proxyPass}@${proxyHost}:${proxyPort}" // <--- and here |
130 | 130 | key.restAPI = "" |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/ui/settings.dart +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -116,7 +116,7 @@ class _AppSettingsState extends State<AppSettings> { |
116 | 116 | children: [ |
117 | 117 | Text(S.of(context).text_describe), |
118 | 118 | Text(S.of(context).text_author), |
119 | | - Text('${S.of(context).text_update_time}:2024-11-23'), |
| 119 | + Text('${S.of(context).text_update_time}:2025-01-03'), |
120 | 120 | Row( |
121 | 121 | children: [ |
122 | 122 | const Text('github:'), |
|
Collapse file
Copy file name to clipboardExpand all lines: pubspec.yaml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev |
16 | 16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html |
17 | 17 | # In Windows, build-name is used as the major, minor, and patch parts |
18 | 18 | # of the product and file versions while build-number is used as the build suffix. |
19 | | -version: 0.1.0+10 |
| 19 | +version: 0.1.4+14 |
20 | 20 |
|
21 | 21 | environment: |
22 | 22 | sdk: '>=3.3.1 <4.0.0' |
|
Collapse file
Copy file name to clipboard