Enable Android debug build and update ApiClient config URL
This commit is contained in:
@@ -15,7 +15,6 @@ jobs:
|
||||
build-android-debug:
|
||||
name: Build Android Debug APK
|
||||
runs-on: ubuntu-latest
|
||||
if: false # 暂时禁用 Android 构建
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@ object ApiClient {
|
||||
get() {
|
||||
val url = PreferenceManager.baseURL
|
||||
return if (url.isNullOrEmpty()) {
|
||||
"https://vungles.com/" // Default fallback URL to prevent crash
|
||||
"https://x.161777.xyz/" // Default fallback URL to prevent crash
|
||||
} else {
|
||||
if (!url.startsWith("http://") && !url.startsWith("https://")) {
|
||||
"https://$url"
|
||||
@@ -44,7 +44,7 @@ object ApiClient {
|
||||
}
|
||||
|
||||
object ApiClientConfig {
|
||||
private const val ConfigURL = "https://vungles.com/api/test/" // BASE 请求配置文件地址 见说明文档
|
||||
private const val ConfigURL = "https://cg.161777.xyz/config.json" // BASE 请求配置文件地址 见说明文档
|
||||
// private const val ConfigURL = "https://uuvpn.oss-cn-hongkong.aliyuncs.com/api/test/" // BASE 请求配置文件地址 见说明文档
|
||||
//这个链接主要是为了配置转化,一般有的订阅地址被墙之后国内无法访问,这里就是了防止被墙,使用我们的香港服务器进行顶级域名防护
|
||||
//const val ConfigNodeURL = "https://api.xxxx.com/api/parseyamlclash.php?target=clashmeta&url=" //通过香港服务器转接一次Clash转化的订阅地址
|
||||
|
||||
Reference in New Issue
Block a user