DeepSpeech/native_client/java/libdeepspeech/build.gradle
Alexandre Lissy b396d3a7d4 Move to libdeepspeech
Fixes #1784
Fixes #1786
2019-01-22 13:43:30 +01:00

70 lines
1.6 KiB
Groovy

apply plugin: 'com.android.library'
apply plugin: 'maven'
android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 21
targetSdkVersion 27
versionName androidGitVersion.name()
versionCode androidGitVersion.code()
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", "${archivesBaseName}-${dsVersionString}")
ndk {
abiFilters = []
abiFilters.addAll(ABI_FILTERS.split(';').collect{it as String})
}
externalNativeBuild {
cmake {
cppFlags ""
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
adbOptions {
timeOutInMs 15 * 60 * 1000 // 10 minutes
installOptions "-d","-t"
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
task printABIs {
print ABI_FILTERS.split(';').join(" ")
}
group = 'org.mozilla.deepspeech'
version = androidGitVersion.name()
task writeNewPom << {
pom {
project {
}
}.writeTo("${buildDir}/pom-${dsVersionString}.xml")
}