提交 1f741427 作者: 王苏进

feat: 安卓配置 添加依赖

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