[Fix]修复安卓10之后Cleartext HTTP traffic to dzt.zhidaozhixing.com not permitted问题
This commit is contained in:
1
.idea/misc.xml
generated
1
.idea/misc.xml
generated
@@ -16,6 +16,7 @@
|
||||
<entry key="app/src/main/res/layout/activity_location.xml" value="0.36502448356535333" />
|
||||
<entry key="app/src/main/res/layout/activity_main.xml" value="0.3640625" />
|
||||
<entry key="app/src/main/res/layout/activity_real_time.xml" value="0.1609347442680776" />
|
||||
<entry key="app/src/main/res/xml/network_security_config.xml" value="0.23854166666666668" />
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
|
||||
@@ -59,7 +59,7 @@ public class MoGoApplication extends MultiDexApplication {
|
||||
// 设置AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
|
||||
// 设置车机设备的唯一标识(这些表识必须是通过后台录入的设备)
|
||||
// TODO 这里使用的是测试的sn
|
||||
clientConfig.setThirdPartyDeviceId("P95ACB94DF240C89");
|
||||
clientConfig.setThirdPartyDeviceId("123456789987654321");
|
||||
// 设置应用服务AppId 长链、鉴权 //todo 需要卸载智慧驾驶、行车记录仪
|
||||
clientConfig.setServiceAppId("com.mogo.launcher");
|
||||
// 设置循环检测间隔时间
|
||||
|
||||
4
app/src/main/res/xml/network_security_config.xml
Normal file
4
app/src/main/res/xml/network_security_config.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config cleartextTrafficPermitted="true" />
|
||||
</network-security-config>
|
||||
@@ -33,7 +33,7 @@ SNAPSHOT_REPOSITORY_URL=http://nexus.zhidaoauto.com/repository/maven-snapshots/
|
||||
USERNAME=xintai
|
||||
PASSWORD=xintai2018
|
||||
# 编译模式: false - 依赖本地版本, true - 依赖 maven 版本
|
||||
RELEASE=true
|
||||
RELEASE=false
|
||||
# AI CLOUD 云平台
|
||||
# 工具类
|
||||
MOGO_UTILS_VERSION=1.3.4
|
||||
|
||||
Reference in New Issue
Block a user