更新sdk,优化gradle更新依赖
This commit is contained in:
@@ -223,7 +223,7 @@ public class MogoApplication extends AbsMogoApplication {
|
||||
// 设置循环检测间隔时间
|
||||
clientConfig.setLoopCheckDelay(15 * 1000);
|
||||
// 设置是否使用MoGoAiCloud SDK内部定位进行实时数据上报
|
||||
clientConfig.setIsUseExternalLocation(false);
|
||||
clientConfig.setIsUseExternalLocation(true);
|
||||
|
||||
// 设置DNS经纬度位置
|
||||
clientConfig.setIHttpDnsCurrentLocation(new IHttpDnsCurrentLocation() {
|
||||
|
||||
36
build.gradle
36
build.gradle
@@ -4,17 +4,14 @@ apply from: "javadoc.gradle"
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
maven {
|
||||
url 'http://maven.aliyun.com/nexus/content/groups/public/'
|
||||
}
|
||||
maven {
|
||||
url 'http://nexus.zhidaoauto.com/repository/maven-releases/'
|
||||
}
|
||||
maven {
|
||||
url 'http://nexus.zhidaoauto.com/repository/maven-public/'
|
||||
}
|
||||
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
||||
maven { url 'https://maven.aliyun.com/repository/public' }
|
||||
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
||||
maven { url 'https://maven.aliyun.com/repository/jcenter' }
|
||||
maven { url 'http://nexus.zhidaoauto.com/repository/maven-releases/' }
|
||||
maven { url 'http://nexus.zhidaoauto.com/repository/maven-public/' }
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.2'
|
||||
@@ -30,17 +27,14 @@ buildscript {
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven {
|
||||
url 'http://maven.aliyun.com/nexus/content/groups/public/'
|
||||
}
|
||||
maven {
|
||||
url 'http://nexus.zhidaoauto.com/repository/maven-releases/'
|
||||
}
|
||||
maven {
|
||||
url 'http://nexus.zhidaoauto.com/repository/maven-public/'
|
||||
}
|
||||
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
||||
maven { url 'https://maven.aliyun.com/repository/public' }
|
||||
maven { url 'https://maven.aliyun.com/repository/google' }
|
||||
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
|
||||
maven { url 'https://maven.aliyun.com/repository/jcenter' }
|
||||
maven { url 'http://nexus.zhidaoauto.com/repository/maven-releases/' }
|
||||
maven { url 'http://nexus.zhidaoauto.com/repository/maven-public/' }
|
||||
google()
|
||||
jcenter()
|
||||
// flatDir {
|
||||
// 由于Library module中引用了 youkuplayer 库的 aar,在多 module 的情况下,
|
||||
// 其他的module编译会报错,所以需要在所有工程的repositories
|
||||
@@ -55,7 +49,7 @@ task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
|
||||
task cleanAll(type: Delete){
|
||||
task cleanAll(type: Delete) {
|
||||
group = "custom"
|
||||
rootProject.allprojects {
|
||||
println "delete ${it.buildDir}"
|
||||
|
||||
@@ -157,7 +157,7 @@ ext {
|
||||
gpssimulatordebug : "com.mogo.module:module-gps-simulator-debug:${MOGO_MODULE_GPS_SIMULATOR_DEBUG_VERSION}",
|
||||
gpssimulatornoop : "com.mogo.module:module-gps-simulator-noop:${MOGO_MODULE_GPS_SIMULATOR_NOOP_VERSION}",
|
||||
|
||||
adasapi : "com.zhidao.autopilot.support:adas:1.0.6.12",
|
||||
adasapi : "com.zhidao.autopilot.support:adas:1.0.6.13",
|
||||
adasconfigapi : "com.zhidao.adasconfig:adasconfig:1.1.5.2",
|
||||
|
||||
// 个人中心的SDK
|
||||
|
||||
@@ -67,7 +67,7 @@ dependencies {
|
||||
implementation project(':foudations:mogo-commons')
|
||||
}
|
||||
|
||||
implementation 'com.zhidaoauto.machine:map:1.0.0-vr-8.1.1'
|
||||
implementation 'com.zhidaoauto.machine:map:1.0.0-vr-8.1.7'
|
||||
// implementation 'com.zhidaoauto.machine:map:1.0.0-vr-test-3.4'
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ class CustomMapApiBuilder implements IMogoMapApiBuilder {
|
||||
@Override
|
||||
public IMogoMapView getMapView( Context context ) {
|
||||
NavAutoApi.INSTANCE.init( context, MapParams.Companion.init()
|
||||
.setDebugMode( DebugConfig.isDebug() )
|
||||
.setDebugMode( false )
|
||||
.setCoordinateType( MapParams.COORDINATETYPE_GCJ02 )
|
||||
.setPerspectiveMode( MapParams.MAP_PERSPECTIVE_2D )
|
||||
.setZoom( 20 )
|
||||
|
||||
@@ -433,7 +433,8 @@ public class MogoServices implements IMogoMapListener,
|
||||
return;
|
||||
}
|
||||
mRefreshModel.refreshExplorerWayData( ro.mLonLat, ro.mRadius, ro.mAmount, ro.mCallback );
|
||||
if ( !DebugConfig.isNeedUploadCoordinatesDurationInTime() ) {
|
||||
if ( !DebugConfig.
|
||||
isNeedUploadCoordinatesDurationInTime() ) {
|
||||
MapMarkerManager.getInstance().getOnlineCarDataByAutoRefreshStrategy( ro.mLonLat );
|
||||
}
|
||||
|
||||
|
||||
@@ -111,10 +111,6 @@ public class MogoADASController implements IMogoADASController {
|
||||
|
||||
private final OnAdasListener mOnAdasListener = new OnAdasListenerAdapter() {
|
||||
|
||||
@Override
|
||||
public void onRectData( RectInfo rectInfo ) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWarnMessage( WarnMessageInfo warnMessageInfo ) {
|
||||
if ( warnMessageInfo == null ) {
|
||||
@@ -142,9 +138,7 @@ public class MogoADASController implements IMogoADASController {
|
||||
private IMogoAdasOCHCallback mAdasOCHCallback;
|
||||
|
||||
/**
|
||||
* 处理数据,将识别到的物体分组,然后每1s进行一次回调
|
||||
* 时间:系统时间
|
||||
*
|
||||
* 处理数据
|
||||
* @param models
|
||||
*/
|
||||
private void handleAdasRecognizedData( List< AdasAIDLOwnerCarRectModel > models ) {
|
||||
@@ -334,7 +328,6 @@ public class MogoADASController implements IMogoADASController {
|
||||
@Override
|
||||
public void notifyOwnerCarRect( List< AdasAIDLOwnerCarRectModel > ownerCarStateRectList ) {
|
||||
// 物体识别返回
|
||||
Logger.d( TAG, "onRectData = %s", ownerCarStateRectList.toString() );
|
||||
Logger.d( TAG, "ADAS-REC-received data: size = %s", ownerCarStateRectList==null?0:ownerCarStateRectList.size() );
|
||||
final long start = System.currentTimeMillis();
|
||||
if ( mLastFrameData == null ) {
|
||||
@@ -556,8 +549,7 @@ public class MogoADASController implements IMogoADASController {
|
||||
Logger.d( TAG, "请求车模列表成功: " + o );
|
||||
// 保存到sp中
|
||||
String value = GsonUtil.jsonFromObject( o.getResult() );
|
||||
SharedPrefsMgr.getInstance( context ).putString( "CAR_MODEL_LIST",
|
||||
value );
|
||||
SharedPrefsMgr.getInstance( context ).putString( "CAR_MODEL_LIST", value );
|
||||
if ( value != null && !value.isEmpty() ) {
|
||||
AutopilotServiceManage.getInstance().settingCarModelListInfo( value );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user