diff --git a/app/functions/baseservices.gradle b/app/functions/baseservices.gradle
deleted file mode 100644
index 2eaa297774..0000000000
--- a/app/functions/baseservices.gradle
+++ /dev/null
@@ -1,25 +0,0 @@
-// 基础服务:仅比亚迪渠道用sdk方式实现,其他都基于apk基础服务
-
-project.dependencies {
- if (Boolean.valueOf(RELEASE)) {
- f8xxImplementation rootProject.ext.dependencies.mogobaseserviceapk
- f80xImplementation rootProject.ext.dependencies.mogobaseserviceapk
- f8AmapImplementation rootProject.ext.dependencies.mogobaseserviceapk
- fochtaxiImplementation rootProject.ext.dependencies.mogobaseserviceapk
- fochbusImplementation rootProject.ext.dependencies.mogobaseserviceapk
-
- fPadLenovoImplementation rootProject.ext.dependencies.mogobaseserviceapk
- fPadLenovoOchTaxiImplementation rootProject.ext.dependencies.mogobaseserviceapk
- fPadLenovoOchBusImplementation rootProject.ext.dependencies.mogobaseserviceapk
- } else {
- f8xxImplementation project(':foudations:mogo-base-services-apk')
- f80xImplementation project(':foudations:mogo-base-services-apk')
- f8AmapImplementation project(':foudations:mogo-base-services-apk')
- fochtaxiImplementation project(':foudations:mogo-base-services-apk')
- fochbusImplementation project(':foudations:mogo-base-services-apk')
-
- fPadLenovoImplementation project(':foudations:mogo-base-services-apk')
- fPadLenovoOchTaxiImplementation project(':foudations:mogo-base-services-apk')
- fPadLenovoOchBusImplementation project(':foudations:mogo-base-services-apk')
- }
-}
\ No newline at end of file
diff --git a/app/functions/httpdns.gradle b/app/functions/httpdns.gradle
deleted file mode 100644
index c8522af9bb..0000000000
--- a/app/functions/httpdns.gradle
+++ /dev/null
@@ -1,13 +0,0 @@
-// 基础服务:仅比亚迪渠道用sdk方式实现,其他都基于apk基础服务
-
-project.dependencies {
- if (Boolean.valueOf(RELEASE)) {
- qaImplementation rootProject.ext.dependencies.httpdnsnoop
- demoImplementation rootProject.ext.dependencies.httpdnsnoop
- onlineImplementation rootProject.ext.dependencies.httpdnsmogo
- } else {
- qaImplementation project(':foudations:httpdns-mogo')
- demoImplementation project(':foudations:httpdns-mogo')
- onlineImplementation project(':foudations:httpdns-mogo')
- }
-}
\ No newline at end of file
diff --git a/foudations/README.md b/foudations/README.md
deleted file mode 100644
index 010ed73b74..0000000000
--- a/foudations/README.md
+++ /dev/null
@@ -1 +0,0 @@
-这个编写基础功能组件
\ No newline at end of file
diff --git a/foudations/httpdns-base/.gitignore b/foudations/httpdns-base/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/foudations/httpdns-base/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/foudations/httpdns-base/build.gradle b/foudations/httpdns-base/build.gradle
deleted file mode 100644
index 2f337a7de9..0000000000
--- a/foudations/httpdns-base/build.gradle
+++ /dev/null
@@ -1,43 +0,0 @@
-apply plugin: 'com.android.library'
-
-android {
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- // buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode Integer.valueOf(VERSION_CODE)
- versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
-
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
-
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- }
-
- buildTypes {
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-}
-
-dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation rootProject.ext.dependencies.arouter
- annotationProcessor rootProject.ext.dependencies.aroutercompiler
-
- if (Boolean.valueOf(RELEASE)) {
- api rootProject.ext.dependencies.mogoutils
- } else {
- api project(':foudations:mogo-utils')
- }
-}
-
-apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
\ No newline at end of file
diff --git a/foudations/httpdns-base/gradle.properties b/foudations/httpdns-base/gradle.properties
deleted file mode 100644
index c2f7baa9af..0000000000
--- a/foudations/httpdns-base/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.httpdns
-POM_ARTIFACT_ID=httpdns-base
-VERSION_CODE=1
\ No newline at end of file
diff --git a/foudations/httpdns-base/proguard-rules.pro b/foudations/httpdns-base/proguard-rules.pro
deleted file mode 100644
index 481bb43481..0000000000
--- a/foudations/httpdns-base/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/foudations/httpdns-base/src/main/AndroidManifest.xml b/foudations/httpdns-base/src/main/AndroidManifest.xml
deleted file mode 100644
index eb5f8d96b8..0000000000
--- a/foudations/httpdns-base/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/foudations/httpdns-base/src/main/java/com/mogo/httpdns/IHttpDnsLocationChanged.java b/foudations/httpdns-base/src/main/java/com/mogo/httpdns/IHttpDnsLocationChanged.java
deleted file mode 100644
index 37da4adc43..0000000000
--- a/foudations/httpdns-base/src/main/java/com/mogo/httpdns/IHttpDnsLocationChanged.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package com.mogo.httpdns;
-
-import android.location.Location;
-
-import androidx.annotation.Keep;
-
-import com.mogo.utils.httpdns.HttpSimpleLocation;
-@Keep
-public interface IHttpDnsLocationChanged {
- /**
- * 获取当前定位
- * @return 当前定位
- */
- HttpSimpleLocation getLocation();
-}
diff --git a/foudations/httpdns-mogo/.gitignore b/foudations/httpdns-mogo/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/foudations/httpdns-mogo/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/foudations/httpdns-mogo/build.gradle b/foudations/httpdns-mogo/build.gradle
deleted file mode 100644
index 513fac77a9..0000000000
--- a/foudations/httpdns-mogo/build.gradle
+++ /dev/null
@@ -1,46 +0,0 @@
-apply plugin: 'com.android.library'
-
-android {
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- // buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode Integer.valueOf(VERSION_CODE)
- versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
-
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
-
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-}
-
-dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation rootProject.ext.dependencies.arouter
- annotationProcessor rootProject.ext.dependencies.aroutercompiler
- implementation 'com.mogo.httpdns:httpdns-helper:1.0.17'
-
- if (Boolean.valueOf(RELEASE)) {
- implementation rootProject.ext.dependencies.httpdnsbase
- implementation rootProject.ext.dependencies.mogocommons
- } else {
- implementation project(':foudations:httpdns-base')
- implementation project(':foudations:mogo-commons')
- }
-}
-
-apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
\ No newline at end of file
diff --git a/foudations/httpdns-mogo/gradle.properties b/foudations/httpdns-mogo/gradle.properties
deleted file mode 100644
index 112b45a237..0000000000
--- a/foudations/httpdns-mogo/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.httpdns
-POM_ARTIFACT_ID=httpdns-mogo
-VERSION_CODE=1
\ No newline at end of file
diff --git a/foudations/httpdns-mogo/proguard-rules.pro b/foudations/httpdns-mogo/proguard-rules.pro
deleted file mode 100644
index 481bb43481..0000000000
--- a/foudations/httpdns-mogo/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/foudations/httpdns-mogo/src/androidTest/java/com/mogo/httpdns/mogo/ExampleInstrumentedTest.java b/foudations/httpdns-mogo/src/androidTest/java/com/mogo/httpdns/mogo/ExampleInstrumentedTest.java
deleted file mode 100644
index 6221400f44..0000000000
--- a/foudations/httpdns-mogo/src/androidTest/java/com/mogo/httpdns/mogo/ExampleInstrumentedTest.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.mogo.httpdns.mogo;
-
-import android.content.Context;
-
-import androidx.test.platform.app.InstrumentationRegistry;
-import androidx.test.ext.junit.runners.AndroidJUnit4;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import static org.junit.Assert.*;
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * @see Testing documentation
- */
-@RunWith(AndroidJUnit4.class)
-public class ExampleInstrumentedTest {
- @Test
- public void useAppContext() {
- // Context of the app under test.
- Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
- assertEquals("com.mogo.httpdns.mogo.test", appContext.getPackageName());
- }
-}
\ No newline at end of file
diff --git a/foudations/httpdns-mogo/src/main/AndroidManifest.xml b/foudations/httpdns-mogo/src/main/AndroidManifest.xml
deleted file mode 100644
index b1c58ca282..0000000000
--- a/foudations/httpdns-mogo/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/foudations/httpdns-mogo/src/test/java/com/mogo/httpdns/mogo/ExampleUnitTest.java b/foudations/httpdns-mogo/src/test/java/com/mogo/httpdns/mogo/ExampleUnitTest.java
deleted file mode 100644
index bd65eb4339..0000000000
--- a/foudations/httpdns-mogo/src/test/java/com/mogo/httpdns/mogo/ExampleUnitTest.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.mogo.httpdns.mogo;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * @see Testing documentation
- */
-public class ExampleUnitTest {
- @Test
- public void addition_isCorrect() {
- assertEquals(4, 2 + 2);
- }
-}
\ No newline at end of file
diff --git a/foudations/httpdns-noop/.gitignore b/foudations/httpdns-noop/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/foudations/httpdns-noop/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/foudations/httpdns-noop/build.gradle b/foudations/httpdns-noop/build.gradle
deleted file mode 100644
index 713d275623..0000000000
--- a/foudations/httpdns-noop/build.gradle
+++ /dev/null
@@ -1,43 +0,0 @@
-apply plugin: 'com.android.library'
-
-android {
- compileSdkVersion rootProject.ext.android.compileSdkVersion
- // buildToolsVersion rootProject.ext.android.buildToolsVersion
- defaultConfig {
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode Integer.valueOf(VERSION_CODE)
- versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
-
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
-
- javaCompileOptions {
- annotationProcessorOptions {
- arguments = [AROUTER_MODULE_NAME: project.getName()]
- }
- }
-
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-}
-
-dependencies {
- implementation fileTree(dir: "libs", include: ["*.jar"])
- implementation rootProject.ext.dependencies.arouter
- annotationProcessor rootProject.ext.dependencies.aroutercompiler
- if (Boolean.valueOf(RELEASE)) {
- implementation rootProject.ext.dependencies.httpdnsbase
- } else {
- implementation project(':foudations:httpdns-base')
- }
-}
-
-apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
\ No newline at end of file
diff --git a/foudations/httpdns-noop/consumer-rules.pro b/foudations/httpdns-noop/consumer-rules.pro
deleted file mode 100644
index f52fcb035b..0000000000
--- a/foudations/httpdns-noop/consumer-rules.pro
+++ /dev/null
@@ -1 +0,0 @@
--keep class com.mogo.httpdns.noop.*{*;}
\ No newline at end of file
diff --git a/foudations/httpdns-noop/gradle.properties b/foudations/httpdns-noop/gradle.properties
deleted file mode 100644
index 1d02951301..0000000000
--- a/foudations/httpdns-noop/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.httpdns
-POM_ARTIFACT_ID=httpdns-noop
-VERSION_CODE=1
\ No newline at end of file
diff --git a/foudations/httpdns-noop/proguard-rules.pro b/foudations/httpdns-noop/proguard-rules.pro
deleted file mode 100644
index 481bb43481..0000000000
--- a/foudations/httpdns-noop/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/foudations/httpdns-noop/src/main/AndroidManifest.xml b/foudations/httpdns-noop/src/main/AndroidManifest.xml
deleted file mode 100644
index 7bfbfbae9a..0000000000
--- a/foudations/httpdns-noop/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/foudations/httpdns-noop/src/main/java/com/mogo/httpdns/noop/HttpDnsNoop.java b/foudations/httpdns-noop/src/main/java/com/mogo/httpdns/noop/HttpDnsNoop.java
deleted file mode 100644
index 006939ea5f..0000000000
--- a/foudations/httpdns-noop/src/main/java/com/mogo/httpdns/noop/HttpDnsNoop.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.mogo.httpdns.noop;
-
-import android.content.Context;
-
-import com.alibaba.android.arouter.facade.annotation.Route;
-import com.mogo.cloud.httpdns.listener.OnAddressChangedListener;
-import com.mogo.httpdns.HttpDnsConst;
-import com.mogo.httpdns.IHttpDnsCallback;
-import com.mogo.httpdns.IMogoHttpDns;
-
-public
-/**
- * @author congtaowang
- * @since 2020/11/18
- *
- * 描述
- */
-@Route(path = HttpDnsConst.PATH)
-class HttpDnsNoop implements IMogoHttpDns {
-
- @Override
- public String getCachedHttpDnsIps(String host, int type) {
- return host;
- }
-
- @Override
- public String syncGetHttpDns(String host, int type, boolean useCache) {
- return host;
- }
-
- @Override
- public void addressChangedListener(OnAddressChangedListener listener) {
-
- }
-
- @Override
- public void getHttpDnsIp(String host, int type, boolean useCache, IHttpDnsCallback callback) {
- if (callback != null) {
- callback.onParsed(host);
- }
- }
-
- @Override
- public void init(Context context) {
-
- }
-}
diff --git a/foudations/mogo-aicloud-services-apk/.gitignore b/foudations/mogo-aicloud-services-apk/.gitignore
deleted file mode 100644
index 42afabfd2a..0000000000
--- a/foudations/mogo-aicloud-services-apk/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/foudations/mogo-aicloud-services-apk/build.gradle b/foudations/mogo-aicloud-services-apk/build.gradle
deleted file mode 100644
index 3124fa6fdd..0000000000
--- a/foudations/mogo-aicloud-services-apk/build.gradle
+++ /dev/null
@@ -1,41 +0,0 @@
-plugins {
- id 'com.android.library'
-}
-
-android {
- compileSdkVersion rootProject.ext.android.compileSdkVersion
-
- defaultConfig {
- minSdkVersion rootProject.ext.android.minSdkVersion
- targetSdkVersion rootProject.ext.android.targetSdkVersion
- versionCode Integer.valueOf(VERSION_CODE)
- versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
-
- consumerProguardFiles "consumer-rules.pro"
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-}
-
-dependencies {
- implementation rootProject.ext.dependencies.mogoaicloudsocket
-
- if (Boolean.valueOf(RELEASE)) {
- implementation rootProject.ext.dependencies.mogoutils
- implementation rootProject.ext.dependencies.mogoserviceapi
- } else {
- implementation project(":foudations:mogo-utils")
- implementation project(":services:mogo-service-api")
- }
-}
-
-apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
\ No newline at end of file
diff --git a/foudations/mogo-aicloud-services-apk/gradle.properties b/foudations/mogo-aicloud-services-apk/gradle.properties
deleted file mode 100644
index 18db84c7e8..0000000000
--- a/foudations/mogo-aicloud-services-apk/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.aicloud.services
-POM_ARTIFACT_ID=services-apk
-VERSION_CODE=1
diff --git a/foudations/mogo-aicloud-services-apk/proguard-rules.pro b/foudations/mogo-aicloud-services-apk/proguard-rules.pro
deleted file mode 100644
index 481bb43481..0000000000
--- a/foudations/mogo-aicloud-services-apk/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/foudations/mogo-aicloud-services-apk/src/main/AndroidManifest.xml b/foudations/mogo-aicloud-services-apk/src/main/AndroidManifest.xml
deleted file mode 100644
index a8c2c36937..0000000000
--- a/foudations/mogo-aicloud-services-apk/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/locationinfo/MogoLocationInfoServices.java b/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/locationinfo/MogoLocationInfoServices.java
deleted file mode 100644
index 74d0fdd744..0000000000
--- a/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/locationinfo/MogoLocationInfoServices.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package com.mogo.aicloud.services.locationinfo;
-
-import android.content.Context;
-
-import androidx.annotation.Keep;
-
-import com.mogo.map.location.MogoLocation;
-import com.mogo.service.locationinfo.IMogoLocationInfoService;
-import com.mogo.utils.logger.Logger;
-
-public
-/**
- * @author congtaowang
- * @since 2020/7/16
- *
- * 位置服务
- */
-@Keep
-class MogoLocationInfoServices implements IMogoLocationInfoService {
-
- private static final String TAG = "MogoLocationInfoServices-apk";
-
- private static volatile MogoLocationInfoServices sInstance;
-
- private MogoLocationInfoServices() {
- }
-
- @Keep
- public static MogoLocationInfoServices getInstance() {
- if ( sInstance == null ) {
- synchronized ( MogoLocationInfoServices.class ) {
- if ( sInstance == null ) {
- sInstance = new MogoLocationInfoServices();
- }
- }
- }
- return sInstance;
- }
-
- public synchronized void release() {
- sInstance = null;
- }
-
- @Override
- public void provideLocation( MogoLocation location ) {
- Logger.d( TAG, "apk - provideLocation" );
- }
-
- @Override
- public void start() {
- Logger.d( TAG, "apk - start" );
- }
-
- @Override
- public void stop() {
- Logger.d( TAG, "apk - stop" );
- }
-
- @Override
- public void init( Context context ) {
- Logger.d( TAG, "apk - init" );
- }
-}
diff --git a/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/passport/PassportManager.java b/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/passport/PassportManager.java
deleted file mode 100644
index f4a6991534..0000000000
--- a/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/passport/PassportManager.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package com.mogo.aicloud.services.passport;
-
-import android.content.Context;
-
-import androidx.annotation.Keep;
-
-import com.mogo.cloud.passport.IMoGoTokenCallback;
-import com.mogo.cloud.passport.MoGoAiCloudClient;
-import com.mogo.service.passport.IMogoPassportManager;
-import com.mogo.service.passport.IMogoTicketCallback;
-
-public
-/*
- * @author congtaowang
- * @since 2020/7/16
- *
- * 描述
- */
-@Keep
-class PassportManager implements IMogoPassportManager {
-
- private static volatile PassportManager sInstance;
- private IMogoTicketCallback mCallBack;
-
- private PassportManager() {
- MoGoAiCloudClient.getInstance().addTokenCallbacks(new IMoGoTokenCallback() {
- @Override
- public void onTokenGot(String token, String sn) {
- if (mCallBack != null) {
- mCallBack.onTicketGot(token);
- }
- }
-
- @Override
- public void onError(int code, String msg) {
- if (mCallBack != null) {
- mCallBack.onError(code, msg);
- }
- }
- });
- }
-
- @Keep
- public static PassportManager getInstance() {
- if (sInstance == null) {
- synchronized (PassportManager.class) {
- if (sInstance == null) {
- sInstance = new PassportManager();
- }
- }
- }
- return sInstance;
- }
-
- public synchronized void release() {
- mCallBack = null;
- sInstance = null;
- }
-
- @Override
- public void requestTicket(final IMogoTicketCallback callback) {
- this.mCallBack = callback;
- MoGoAiCloudClient.getInstance().refreshToken();
- }
-
- @Override
- public void init(Context context) {
-
- }
-
-}
diff --git a/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/socket/MogoAiCloudSocketManager.java b/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/socket/MogoAiCloudSocketManager.java
deleted file mode 100644
index a45f3814ee..0000000000
--- a/foudations/mogo-aicloud-services-apk/src/main/java/com/mogo/aicloud/services/socket/MogoAiCloudSocketManager.java
+++ /dev/null
@@ -1,211 +0,0 @@
-package com.mogo.aicloud.services.socket;
-
-import android.content.Context;
-
-import androidx.annotation.Keep;
-
-import com.mogo.cloud.socket.IMogoCloudSocketMsgAckListener;
-import com.mogo.cloud.socket.IMogoCloudSocketOnMessageListener;
-import com.mogo.cloud.socket.SocketManager;
-import com.mogo.cloud.socket.entity.MsgBody;
-import com.mogo.service.connection.IMogoLifecycleListener;
-import com.mogo.service.connection.IMogoMsgAckListener;
-import com.mogo.service.connection.IMogoOnMessageListener;
-import com.mogo.service.connection.IMogoSocketManager;
-import com.mogo.utils.logger.Logger;
-import com.zhidao.ptech.connsvr.commom.protocol.MogoCommon;
-import com.zhidao.socket.ConnectionLifecycleListener;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-
-/**
- * @author arrow
- * @since 2021-02-22
- *
- * 长链实现:基于 netty
- */
-@Keep
-public class MogoAiCloudSocketManager extends ConnectionLifecycleListener implements IMogoSocketManager {
-
- private static final String TAG = "MogoAiCloudSocketManager-apk";
-
- private static volatile MogoAiCloudSocketManager sInstance;
- private String mAppId;
-
- private MogoAiCloudSocketManager(Context context) {
- }
-
- @Keep
- public static MogoAiCloudSocketManager getInstance(Context context) {
- if (sInstance == null) {
- synchronized (MogoAiCloudSocketManager.class) {
- if (sInstance == null) {
- sInstance = new MogoAiCloudSocketManager(context);
- }
- }
- }
- return sInstance;
- }
-
- /**
- * 管理消息分发
- *
- * key - msgType
- */
- private final Map> mListeners = new ConcurrentHashMap<>();
- private final Map mLifeCycleListeners = new ConcurrentHashMap<>();
-
- /**
- * 管理消息回执
- *
- * key - msgId
- */
- private final Map mAckListeners = new ConcurrentHashMap<>();
-
- @Override
- public void init(Context context, String appId) {
- this.mAppId = appId;
- SocketManager.getInstance().init(context);
- SocketManager.getInstance().registerSocketConnCallback(this);
- }
-
- @Override
- public void registerOnMessageListener(int msgType, IMogoOnMessageListener listener) {
- if (mListeners.containsKey(msgType)) {
- com.mogo.cloud.utils.logger.Logger.w(TAG, "msgType %d is exist.", msgType);
- return;
- }
- if (!mListeners.containsKey(msgType)) {
- mListeners.put(msgType, new ArrayList<>());
- }
- mListeners.get(msgType).add(listener);
- SocketManager.getInstance().registerOnMessageListener(msgType, mogoCloudSocketOnMessageListener);
- }
-
- @Override
- public void unregisterOnMessageListener(int msgType) {
-
- }
-
- @Override
- public void unregisterOnMessageListener(int msgType, IMogoOnMessageListener listener) {
- if (listener == null) {
- return;
- }
- if (!mListeners.containsKey(msgType)) {
- return;
- }
- List listeners = mListeners.get(msgType);
- if (listeners != null) {
- listeners.remove(listener);
- }
- SocketManager.getInstance().unregisterOnMessageListener(msgType, mogoCloudSocketOnMessageListener);
- }
-
- @Override
- public void registerLifecycleListener(int msgType, IMogoLifecycleListener listener) {
- if (mLifeCycleListeners.containsKey(msgType)) {
- return;
- }
- if (!mLifeCycleListeners.containsKey(msgType)) {
- mLifeCycleListeners.put(msgType, listener);
- }
- }
-
- @Override
- public void unregisterLifecycleListener(int msgType) {
- if (!mLifeCycleListeners.containsKey(msgType)) {
- return;
- }
- mLifeCycleListeners.remove(msgType);
- }
-
- @Override
- public void sendMsg(MsgBody body, IMogoMsgAckListener listener) {
- Logger.d(TAG, "sendMsg.");
- mAckListeners.put(body.getMsgId(), listener);
- MsgBody msgBody = new MsgBody();
- msgBody.msgType(body.getMsgType());
- msgBody.ack(body.isAck());
- msgBody.content(body.getContent());
- SocketManager.getInstance().sendMsg(mAppId, MogoCommon.Product.mogoBussiness.getNumber(), msgBody, mogoCloudSocketMsgAckListener);
- }
-
- @Override
- public void destroy() {
- release();
- }
-
- public synchronized void release() {
- SocketManager.getInstance().release();
- }
-
- @Override
- public void init(Context context) {
-
- }
-
- private final IMogoCloudSocketMsgAckListener mogoCloudSocketMsgAckListener = msgId -> mAckListeners.get(msgId).onAck(msgId);
-
- private final IMogoCloudSocketOnMessageListener mogoCloudSocketOnMessageListener = new IMogoCloudSocketOnMessageListener() {
- @Override
- public Class