Browse Source

修复编译异常

weicu
tanlongsheng 1 year ago
parent
commit
44a1cae92e
  1. 1
      lib/modules/splash/controllers/splash_controller.dart
  2. 2
      local_plugins/agent_service/android/build.gradle.kts
  3. 3
      local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt
  4. 4
      pubspec.yaml

1
lib/modules/splash/controllers/splash_controller.dart

@ -8,7 +8,6 @@ import '../../../data/models/user_Info.dart';
import '../../../routes/app_routes.dart';
import '../../../core/themes/theme_service.dart';
import '../../../data/services/network/api.dart';
import 'package:amap_service/amap_service.dart';
class SplashController extends GetxController {
final GetStorage _storage = GetStorage();

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,7 +7,6 @@ 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.*
@ -1191,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, "启动导航服务失败")
}

4
pubspec.yaml

@ -65,8 +65,8 @@ dependencies:
dio: ^5.8.0+1
sqflite: ^2.4.2
path: ^1.9.1
# azure_speech:
# path: local_plugins/azure_speech
azure_speech:
path: local_plugins/azure_speech
open_ai_service:
path: local_plugins/open_ai_service
chat_storage:

Loading…
Cancel
Save