mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-10 00:11:11 +00:00
this greatly simplifies the assembly of the android application. moreover, ndk will be downloaded automatically via sdk-manager.
55 lines
987 B
Groovy
55 lines
987 B
Groovy
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.1.2'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'org.hamcrest:hamcrest-all:1.3'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 26
|
|
|
|
defaultConfig {
|
|
minSdkVersion 14
|
|
targetSdkVersion 26
|
|
versionCode 20
|
|
versionName "1.52-dev"
|
|
}
|
|
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path "jni/Android.mk"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs = ['src']
|
|
res.srcDirs = ['res']
|
|
}
|
|
androidTest.setRoot('eSpeakTests')
|
|
androidTest {
|
|
java.srcDirs = ['eSpeakTests/src']
|
|
}
|
|
}
|
|
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
}
|