删除无用的 gradle配置

对Hmi增加res依赖

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-11-01 17:32:43 +08:00
parent 77aeefdbb6
commit 2561a5d38b
19 changed files with 11 additions and 311 deletions

View File

@@ -90,11 +90,7 @@ class RoadConditionDrawer {
// mogoMarker.setInfoWindowAdapter( new RoadConditionInfoWindow3DAdapter( markerShowEntity, AbsMogoApplication.getApp(), mogoMarker.getMogoMarkerOptions() ) );
// mogoMarker.showInfoWindow();
} else {
if ( DebugConfig.isRoadEventAnimated() ) {
post2AddAndStartAnimation( markerShowEntity, i * 100L, listener );
} else {
mogoMarker = MarkerDrawer.getInstance().drawMapMarkerImpl( markerShowEntity, false, MarkerDrawer.MARKER_Z_INDEX_HIGH, listener );
}
post2AddAndStartAnimation( markerShowEntity, i * 100L, listener );
}
} catch ( Exception e ) {
e.printStackTrace();

View File

@@ -1,13 +1,11 @@
package com.mogo.module.common.utils;
import com.mogo.commons.debug.DebugConfig;
/**
* 多模块之间SP状态公共类
*/
public class SPConst {
private static String SP_GUIDE = DebugConfig.SP_GUIDE;
private static String SP_GUIDE = "SP_GUIDE_2020_09_09";
//用于多模块之间引导状态判断
public static String getSpGuide() {

View File

@@ -1,7 +1,6 @@
package com.mogo.module.extensions.entrance;
import static com.mogo.module.common.utils.SPConst.getSPGuideRecord;
import static com.mogo.module.common.utils.SPConst.getSpGuide;
import static com.mogo.module.extensions.ExtensionsModuleConst.TYPE_ENTRANCE;
import static com.mogo.module.service.receiver.MogoReceiver.ACTION_V2X_REMOVE_TIP_WINDOW;
import static com.mogo.module.share.constant.ShareConstants.KEY_CLICK_SHARE_BUTTON;
@@ -473,15 +472,8 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
groupUserHead.setVisibility(View.GONE);
}
if (DebugConfig.isNeedLoadGuideModule()) {
isShowGuide = SharedPrefsMgr.getInstance(AbsMogoApplication.getApp()).getBoolean(getSpGuide(), false);
Logger.d(TAG, " isShowGuide = " + isShowGuide + " --isGreaterThanOneDay = " + isGreaterThanOneDay());
if (isShowGuide && isGreaterThanOneDay()) {
UiThreadHandler.postDelayed(this::playShareOuterGuideVoice, 5_000L);
}
} else {
UiThreadHandler.postDelayed(this::playShareOuterGuideVoice, 5_000L);
}
UiThreadHandler.postDelayed(this::playShareOuterGuideVoice, 5_000L);
}

View File

@@ -193,9 +193,7 @@ public class MainActivity extends MvpActivity<MainView, MainPresenter> implement
}
}
if (DebugConfig.isSkinSupported()) {
initAdasControlStatusListener();
}
initAdasControlStatusListener();
if (DebugConfig.isMapBased()) {
EventDispatchCenter.getInstance().setMapLoadedCallback(() -> {

View File

@@ -484,11 +484,7 @@ public class MockIntentHandler implements IntentHandler {
Logger.d(TAG, "偏差值:%s", delta);
}
break;
case 41://
// adb shell am broadcast -a com.mogo.mock --ei oper 41 --ei type 0 平滑移动
// adb shell am broadcast -a com.mogo.mock --ei oper 41 --ei type 1 直接打点
DebugConfig.setNotSmooth(intent.getIntExtra("type", 0) == 1);
break;
case 42://
WorkThreadHandler.getInstance().post(() -> {
try {
@@ -595,9 +591,6 @@ public class MockIntentHandler implements IntentHandler {
.rotate((float) 358.526123);
IMogoMarker marker3 = MogoApisHandler.getInstance().getApis().getMapServiceApi().getMarkerManager(context).addMarker(DataTypes.TYPE_MARKER_ADAS, options3);
break;
case 50://
DebugConfig.setSelfCarSpeedYOffset(intent.getIntExtra("yOffset", 20));
break;
case 51:// 模拟路口车辆移动
// mLocationMockHandler.sendEmptyMessageDelayed(100, 0L);
// mLocationMockHandler.sendEmptyMessageDelayed(101, 1000L);

View File

@@ -325,7 +325,7 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
}
if (!MarkerServiceHandler.getApis().getStatusManagerApi().isVrMode()) {
MarkerServiceHandler.getMogoStatusManager().setUserInteractionStatus(TAG, true, false);
MarkerServiceHandler.getMapUIController().moveToCenter(mogoMarker.getPosition(), DebugConfig.isRoadEventAnimated());
MarkerServiceHandler.getMapUIController().moveToCenter(mogoMarker.getPosition(), true);
}
}