replace the agent impl of socket and passporty
This commit is contained in:
@@ -590,7 +590,7 @@ dependencies {
|
||||
apply from: "./functions/aicloudservices.gradle"
|
||||
apply from: "./functions/basedmap.gradle"
|
||||
apply from: "./functions/perform.gradle"
|
||||
apply from: "./functions/baseservices.gradle"
|
||||
// apply from: "./functions/baseservices.gradle"
|
||||
apply from: "./functions/socketpush.gradle"
|
||||
// apply from: "./functions/gpssimulator.gradle"
|
||||
apply from: "./functions/leftpanel.gradle"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// 基础服务:仅比亚迪渠道用sdk方式实现,其他都基于apk基础服务
|
||||
//todo SDK版本 待替换
|
||||
project.dependencies {
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
bydautoImplementation rootProject.ext.dependencies.mogoaicloudservicesdk
|
||||
|
||||
@@ -63,7 +63,7 @@ public class MogoSocketManager implements IMogoSocketManager {
|
||||
public void init( Context context ) {
|
||||
|
||||
try {
|
||||
Class< ? > clazz = Class.forName( "com.mogo.base.services.socket.SocketManager" );
|
||||
Class< ? > clazz = Class.forName( "com.mogo.aicloud.services.socket.SocketManager" );
|
||||
Method getInstanceMethod = clazz.getMethod( "getInstance", Context.class );
|
||||
getInstanceMethod.setAccessible( true );
|
||||
mDelegate = ( IMogoSocketManager ) getInstanceMethod.invoke( null, context );
|
||||
|
||||
@@ -4,7 +4,6 @@ import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.mogo.service.MogoServicePaths;
|
||||
import com.mogo.service.connection.IMogoSocketManager;
|
||||
import com.mogo.service.passport.IMogoPassportManager;
|
||||
import com.mogo.service.passport.IMogoTicketCallback;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
@@ -12,7 +11,7 @@ import com.mogo.utils.logger.Logger;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public
|
||||
/**
|
||||
/*
|
||||
* @author congtaowang
|
||||
* @since 2020/7/16
|
||||
*
|
||||
@@ -35,7 +34,7 @@ class MogoPassportManager implements IMogoPassportManager {
|
||||
@Override
|
||||
public void init( Context context ) {
|
||||
try {
|
||||
Class< ? > clazz = Class.forName( "com.mogo.base.services.passport.PassportManager" );
|
||||
Class< ? > clazz = Class.forName( "com.mogo.aicloud.services.passport.PassportManager" );
|
||||
Method getInstanceMethod = clazz.getMethod( "getInstance" );
|
||||
getInstanceMethod.setAccessible( true );
|
||||
mDelegate = ( IMogoPassportManager ) getInstanceMethod.invoke( null );
|
||||
|
||||
Reference in New Issue
Block a user