fix Android提示旧版本Android系统不兼容问题

fix Android提示旧版本Android系统不兼容问题
This commit is contained in:
zeus
2025-12-24 12:05:57 +08:00
parent 6dd209cbe5
commit d26dab7be1
13 changed files with 46 additions and 87 deletions
@@ -1,72 +0,0 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.litevpn.fast",
"variantName": "metaRelease",
"elements": [
{
"type": "UNIVERSAL",
"filters": [],
"attributes": [],
"versionCode": 321001,
"versionName": "3.0.2",
"outputFile": "UUVPN-3.0.2-meta-universal-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86_64"
}
],
"attributes": [],
"versionCode": 321001,
"versionName": "3.0.2",
"outputFile": "UUVPN-3.0.2-meta-x86_64-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86"
}
],
"attributes": [],
"versionCode": 321001,
"versionName": "3.0.2",
"outputFile": "UUVPN-3.0.2-meta-x86-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "armeabi-v7a"
}
],
"attributes": [],
"versionCode": 321001,
"versionName": "3.0.2",
"outputFile": "UUVPN-3.0.2-meta-armeabi-v7a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "arm64-v8a"
}
],
"attributes": [],
"versionCode": 321001,
"versionName": "3.0.2",
"outputFile": "UUVPN-3.0.2-meta-arm64-v8a-release.apk"
}
],
"elementType": "File"
}
@@ -53,6 +53,7 @@ class LoginActivity : AppCompatActivity() {
private var isPasswordVisible = false
private var configRetryCount = 0
override fun onCreate(savedInstanceState: Bundle?) {
@@ -129,7 +130,9 @@ class LoginActivity : AppCompatActivity() {
private fun getconfig(){
LoadingDialog.show(this, "正在初始化...")
runOnUiThread {
LoadingDialog.show(this, "正在初始化...")
}
CoroutineScope(Dispatchers.IO).launch {
safeApiCall {apiService.getConfig()}.let {
@@ -142,7 +145,15 @@ class LoginActivity : AppCompatActivity() {
//重新初始化 ApiClint
}
}else{
getconfig()
configRetryCount++
if (configRetryCount < 3) {
getconfig()
} else {
withContext(Dispatchers.Main) {
LoadingDialog.hide()
Toast.makeText(this@LoginActivity, "初始化失败,请检查配置是否正确", Toast.LENGTH_LONG).show()
}
}
}
}
}