修改了启动模式
增加了日志关闭
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -26,7 +26,6 @@
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveModulePerSourceSet" value="false" />
|
||||
<option name="useQualifiedModuleNames" value="true" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -13,7 +13,7 @@
|
||||
<option name="HEAP_SIZE" value="1024" />
|
||||
<option name="LOCALE" value="zh_CN" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="12" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
@@ -25,7 +25,9 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity android:name=".MainActivity">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:launchMode="singleTask">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@@ -35,22 +37,28 @@
|
||||
|
||||
<activity
|
||||
android:name=".ConfigInfoActivity"
|
||||
android:label="配置信息"/>
|
||||
android:label="配置信息"
|
||||
android:launchMode="singleTask" />
|
||||
<activity
|
||||
android:name=".LivePushActivity"
|
||||
android:label="直播播放" />
|
||||
android:label="直播播放"
|
||||
android:launchMode="singleTask" />
|
||||
<activity
|
||||
android:name=".LivePlayActivity"
|
||||
android:label="直播推送" />
|
||||
android:label="直播推送"
|
||||
android:launchMode="singleTask" />
|
||||
<activity
|
||||
android:name="com.mogo.cloud.network.NetworkActivity"
|
||||
android:label="网络测试" />
|
||||
android:label="网络测试"
|
||||
android:launchMode="singleTask" />
|
||||
<activity
|
||||
android:name=".RealTimeActivity"
|
||||
android:label="实时数据测试" />
|
||||
android:label="实时数据测试"
|
||||
android:launchMode="singleTask" />
|
||||
<activity
|
||||
android:name=".RoadConditionActivity"
|
||||
android:label="路况服务" />
|
||||
android:label="路况服务"
|
||||
android:launchMode="singleTask" />
|
||||
|
||||
</application>
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class MoGoApplication extends MultiDexApplication {
|
||||
// 设置是否是第三APP登录
|
||||
clientConfig.setThirdLogin(true);
|
||||
// 设置是否输出日志
|
||||
clientConfig.setShowDebugLog(true);
|
||||
clientConfig.setShowDebugLog(false);
|
||||
// 设置从蘑菇AI开放平台获取的APPKey
|
||||
clientConfig.setThirdPartyAppKey("wbvpzgar");
|
||||
// 设置AI云平台分配给三方应用的签名密钥,需要从AI云平台申请
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="请输入要查看的车机SN"
|
||||
android:text="F803EB2046PZD00149"
|
||||
android:text="F803BB2037EZD00074"
|
||||
android:textColor="#FFFF"
|
||||
app:layout_constraintBottom_toTopOf="@+id/liveToggleBtn"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
||||
@@ -64,6 +64,8 @@ public class MoGoAiCloudClient {
|
||||
// 控制日志输出
|
||||
if (!mAiCloudClientConfig.isShowDebugLog()) {
|
||||
Logger.init(LogLevel.OFF);
|
||||
// 关闭鉴权模块的日志
|
||||
com.elegant.log.simplelog.Logger.init(com.elegant.log.simplelog.LogLevel.OFF);
|
||||
}
|
||||
// 刷新令牌
|
||||
refreshToken();
|
||||
|
||||
Reference in New Issue
Block a user