58 lines
1.1 KiB
Groovy
58 lines
1.1 KiB
Groovy
plugins {
|
||||
|
|
id 'com.android.application'
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
android {
|
|||
|
|
namespace 'com.voicecraft.realtimevoice'
|
|||
|
|
compileSdk 35
|
|||
|
|
|
|||
|
|
defaultConfig {
|
|||
|
|
applicationId 'com.voicecraft.realtimevoice'
|
|||
|
|
minSdk 24
|
|||
|
|
targetSdk 34
|
|||
|
|
versionCode 1
|
|||
|
|
versionName '0.1.0-m0'
|
|||
|
|
|
|||
|
|
ndk {
|
|||
|
|
// M0 只面向 arm64 真机(iQOO Neo3)
|
|||
|
|
abiFilters 'arm64-v8a'
|
|||
|
|
}
|
|||
|
|
externalNativeBuild {
|
|||
|
|
cmake {
|
|||
|
|
cppFlags '-O2'
|
|||
|
|
arguments '-DANDROID_STL=c++_shared'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
buildTypes {
|
|||
|
|
release {
|
|||
|
|
minifyEnabled false
|
|||
|
|
}
|
|||
|
|
debug {
|
|||
|
|
debuggable true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
compileOptions {
|
|||
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|||
|
|
targetCompatibility JavaVersion.VERSION_17
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
externalNativeBuild {
|
|||
|
|
cmake {
|
|||
|
|
path file('src/main/cpp/CMakeLists.txt')
|
|||
|
|
version '3.22.1'
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
buildFeatures {
|
|||
|
|
// 通过 Prefab 引入 Google Oboe(低延迟音频库,Apache-2.0)
|
|||
|
|
prefab true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
dependencies {
|
|||
|
|
implementation 'com.google.oboe:oboe:1.9.3'
|
|||
|
|
}
|