You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
apply plugin: 'com.android.application'
|
|
|
|
ext {
|
|
compileSdkVersion = 21
|
|
defaultTargetSdkVersion = 21
|
|
}
|
|
|
|
android {
|
|
compileSdk 21
|
|
buildToolsVersion "34.0.0"
|
|
useLibrary 'org.apache.http.legacy'
|
|
defaultConfig {
|
|
applicationId "net.micode.notes"
|
|
minSdk 21
|
|
targetSdkVersion defaultTargetSdkVersion
|
|
ndk {
|
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" // 确保包含目标架构
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
}
|
|
}
|
|
repositories {
|
|
google()
|
|
mavenCentral() // Maven Central 仓库
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
dependencies {
|
|
implementation 'com.alphacephei:vosk-android:0.3.38'
|
|
implementation 'net.java.dev.jna:jna:5.5.0'
|
|
implementation 'net.java.dev.jna:jna-platform:5.5.0'
|
|
}
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['src/main/jniLibs']
|
|
}
|
|
|
|
}
|
|
packagingOptions {
|
|
exclude 'META-INF/AL2.0'
|
|
exclude 'META-INF/LGPL2.1'
|
|
}
|
|
} |