diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 7abdbfc..54349e6 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -23,7 +23,6 @@
-
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 10608e0..42fab5f 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -13,7 +13,7 @@
-
+
diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_1_19_21_6_39_PM_[Default_Changelist]/shelved.patch b/.idea/shelf/Uncommitted_changes_before_Update_at_1_19_21_6_39_PM_[Default_Changelist]/shelved.patch
deleted file mode 100644
index 3f7f2e1..0000000
--- a/.idea/shelf/Uncommitted_changes_before_Update_at_1_19_21_6_39_PM_[Default_Changelist]/shelved.patch
+++ /dev/null
@@ -1,135 +0,0 @@
-Index: build.gradle
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
-<+>// Top-level build file where you can add configuration options common to all sub-projects/modules.\napply from: \"config.gradle\"\n\nbuildscript {\n repositories {\n maven {\n url 'http://maven.aliyun.com/nexus/content/groups/public/'\n }\n maven {\n url 'http://nexus.zhidaoauto.com/repository/maven-releases/'\n }\n maven {\n url 'http://nexus.zhidaoauto.com/repository/maven-public/'\n }\n google()\n jcenter()\n }\n dependencies {\n classpath \"com.android.tools.build:gradle:4.0.2\"\n\n // NOTE: Do not place your application dependencies here; they belong\n // in the individual module build.gradle files\n }\n}\n\nallprojects {\n repositories {\n maven {\n url 'http://maven.aliyun.com/nexus/content/groups/public/'\n }\n maven {\n url 'http://nexus.zhidaoauto.com/repository/maven-releases/'\n }\n maven {\n url 'http://nexus.zhidaoauto.com/repository/maven-public/'\n }\n google()\n jcenter()\n }\n}\n\ntask clean(type: Delete) {\n delete rootProject.buildDir\n}
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
---- build.gradle (revision 398e43b09b74ac1319d2bdb60e1bac0c018ce1ff)
-+++ build.gradle (date 1611052524000)
-@@ -2,6 +2,7 @@
- apply from: "config.gradle"
-
- buildscript {
-+ ext.kotlin_version = "1.3.72"
- repositories {
- maven {
- url 'http://maven.aliyun.com/nexus/content/groups/public/'
-@@ -17,6 +18,7 @@
- }
- dependencies {
- classpath "com.android.tools.build:gradle:4.0.2"
-+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
-
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
-Index: .idea/inspectionProfiles/Project_Default.xml
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
---- .idea/inspectionProfiles/Project_Default.xml (date 1611044633000)
-+++ .idea/inspectionProfiles/Project_Default.xml (date 1611044633000)
-@@ -0,0 +1,36 @@
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-+
-\ No newline at end of file
-Index: .idea/misc.xml
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
-<+>\n\n \n \n \n \n \n \n \n \n \n \n
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
---- .idea/misc.xml (revision 398e43b09b74ac1319d2bdb60e1bac0c018ce1ff)
-+++ .idea/misc.xml (date 1611045041000)
-@@ -4,7 +4,7 @@
-
-
-
--
-+
-
-
-
-Index: .idea/vcs.xml
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
---- .idea/vcs.xml (date 1611044633000)
-+++ .idea/vcs.xml (date 1611044633000)
-@@ -0,0 +1,6 @@
-+
-+
-+
-+
-+
-+
-\ No newline at end of file
-Index: .idea/compiler.xml
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
---- .idea/compiler.xml (date 1611045041000)
-+++ .idea/compiler.xml (date 1611045041000)
-@@ -0,0 +1,6 @@
-+
-+
-+
-+
-+
-+
-\ No newline at end of file
-Index: .idea/gradle.xml
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
-<+>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
---- .idea/gradle.xml (revision 398e43b09b74ac1319d2bdb60e1bac0c018ce1ff)
-+++ .idea/gradle.xml (date 1611044633000)
-@@ -17,6 +17,7 @@
-
-
-
-+
-
-
-
diff --git a/.idea/shelf/Uncommitted_changes_before_Update_at_1_19_21_6_39_PM__Default_Changelist_.xml b/.idea/shelf/Uncommitted_changes_before_Update_at_1_19_21_6_39_PM__Default_Changelist_.xml
deleted file mode 100644
index bb9b9db..0000000
--- a/.idea/shelf/Uncommitted_changes_before_Update_at_1_19_21_6_39_PM__Default_Changelist_.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/java/com/mogo/cloud/MoGoApplication.java b/app/src/main/java/com/mogo/cloud/MoGoApplication.java
index 17d2762..bcabd15 100644
--- a/app/src/main/java/com/mogo/cloud/MoGoApplication.java
+++ b/app/src/main/java/com/mogo/cloud/MoGoApplication.java
@@ -22,19 +22,29 @@ public class MoGoApplication extends MultiDexApplication {
public void onCreate() {
super.onCreate();
+ // TODO 这里是模拟数据,真实情况需要传入真实的经纬度信息
Random random = new Random();
double randomLat = random.nextDouble();
double randomLon = random.nextDouble();
+ // 配置云服务API
MoGoAiCloudClientConfig clientConfig = new MoGoAiCloudClientConfig();
+ // 设置网络环境:HTTP_DNS_ENV_QA、HTTP_DNS_ENV_RELEASE、HTTP_DNS_ENV_DEV
clientConfig.setNetMode(MogoHttpDnsConfig.HTTP_DNS_ENV_QA);
+ // 设置是否是第三APP登录
clientConfig.setThirdLogin(true);
+ // 设置是否输出日志
clientConfig.setShowDebugLog(true);
+ // 设置是否上传当前位置信息
clientConfig.setNeedUploadCoordinatesDurationInTime(true);
+ // 设置从蘑菇AI开放平台获取的APPKey
clientConfig.setThirdPartyAppKey("bydauto");
+ // 设置车机设备的唯一标识(这些表识必须是通过后台录入的设备)
clientConfig.setThirdPartyDeviceId("bydauto");
+ // 设置循环检测间隔时间
clientConfig.setLoopCheckDelay(15 * 1000);
+ // 设置DNS经纬度位置
clientConfig.setIHttpDnsCurrentLocation(new IHttpDnsCurrentLocation() {
@Nullable
@Override
@@ -43,6 +53,7 @@ public class MoGoApplication extends MultiDexApplication {
}
});
+ // 初始化SDK,可以设置状态回调来监听
MoGoAiCloudClient.getInstance().init(this, clientConfig, null);
}