Browse Source

上传代码

weicu
liwei1dao 1 year ago
parent
commit
11d43636ff
  1. 2
      local_plugins/agent_service/android/build.gradle.kts
  2. 3
      local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt
  3. 3
      local_plugins/amap_service/android/build.gradle
  4. 4
      local_plugins/amap_service/android/src/main/kotlin/com/yunqiinnovation/amap_service/NavigationService.kt
  5. 2
      local_plugins/amap_service/pubspec.yaml
  6. 3
      pubspec.yaml

2
local_plugins/agent_service/android/build.gradle.kts

@ -47,6 +47,6 @@ dependencies {
add("compileOnly", project(":chat_storage"))
add("compileOnly", project(":ble_service"))
add("compileOnly", project(":music_service"))
// add("compileOnly", project(":amap_service"))
add("compileOnly", project(":amap_service"))
add("compileOnly", project(":speech"))
}

3
local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt

@ -7,6 +7,7 @@ import com.yunqiinnovation.azure_speech.AzureAsrHelper
import com.yunqiinnovation.open_ai_service.OpenAIService
import com.yunqiinnovation.chat_storage.ChatStorageHelper
import com.yunqiinnovation.music_service.MusicServiceStarter
import com.yunqiinnovation.amap_service.NavigationServiceStarter
import android.util.Log
import io.flutter.plugin.common.MethodChannel
import kotlinx.coroutines.*
@ -1189,7 +1190,7 @@ object AgentService : CoroutineScope {
// 如果 playlist 中有有效的歌曲,开始播放
if (!start.isNullOrEmpty() && !end.isNullOrEmpty()) {
Log.i(TAG, "启动导航服务 ${start} ${end}")
// NavigationServiceStarter.startServiceWithCommand(context, command = "start", startpos = start, endpos = end)
NavigationServiceStarter.startServiceWithCommand(context, command = "start", startpos = start, endpos = end)
} else {
Log.i(TAG, "启动导航服务失败")
}

3
local_plugins/amap_service/android/build.gradle

@ -65,6 +65,3 @@ android {
}
}
}
dependencies {
implementation(project(":deepvoice_utils"))
}

4
local_plugins/amap_service/android/src/main/kotlin/com/yunqiinnovation/amap_service/NavigationService.kt

@ -262,8 +262,8 @@ class NavigationService: Service() {
override fun onCalculateRouteSuccess(ids: IntArray?) {
Log.e(TAG, "onCalculateRouteSuccess! $ids")
AMapNavi.getInstance(this).startNavi(NaviType.GPS);
aMapNavi.startNavi(NaviType.EMULATOR)
// AMapNavi.getInstance(this).startNavi(1);
aMapNavi.startNavi(1)
}
override fun onCalculateRouteSuccess(p0: AMapCalcRouteResult?) {

2
local_plugins/amap_service/pubspec.yaml

@ -18,8 +18,6 @@ dev_dependencies:
flutter_lints: ^5.0.0
amap_flutter_base: ^3.0.0
amap_flutter_map: ^3.0.0
deepvoice_utils:
path: ../deepvoice_utils
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

3
pubspec.yaml

@ -85,7 +85,8 @@ dependencies:
path: local_plugins/agent_service
music_service:
path: local_plugins/music_service
amap_service:
path: local_plugins/amap_service
dev_dependencies:
flutter_test:

Loading…
Cancel
Save