提交 1f741427 作者: 王苏进

feat: 安卓配置 添加依赖

上级 756878a9
......@@ -18,6 +18,10 @@ allprojects {
repositories {
google()
mavenCentral()
// 添加 Maven 仓库
maven {
url "https://artifact.bytedance.com/repository/Volcengine/"
}
}
}
......@@ -52,6 +56,8 @@ android {
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.mockito:mockito-core:5.0.0'
// Speech Engine
implementation 'com.bytedance.speechengine:speechengine_tob:0.0.3'
}
testOptions {
......
......@@ -49,6 +49,7 @@ android {
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}
buildTypes {
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="aivoice_plugin_example"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
tools:replace="android:label">
<!-- 其他现有代码 -->
</application>
</manifest>
......@@ -41,4 +41,11 @@
<data android:mimeType="text/plain"/>
</intent>
</queries>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
</manifest>
......@@ -2,6 +2,10 @@ allprojects {
repositories {
google()
mavenCentral()
// 添加 Maven 仓库
maven {
url "https://artifact.bytedance.com/repository/Volcengine/"
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论