Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created November 6, 2016 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/1df4689cfea9d7484a04147b83e01c8b to your computer and use it in GitHub Desktop.
Save flushpot1125/1df4689cfea9d7484a04147b83e01c8b to your computer and use it in GitHub Desktop.
//apply plugin: 'com.android.application'
apply plugin: 'com.android.library'
repositories {
maven {
name = 'Maven Central Repo' //optional name
url = 'http://repo1.maven.org/maven2/'
}
}
dependencies {
compile 'com.microsoft.projectoxford:speechrecognition:1.1.0'
compile files('libs/classes.jar')
}
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
productFlavors {
x86 {
ndk {
abiFilter "x86"
}
}
arm {
ndk {
abiFilters "armeabi"
}
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDir '../../SpeechSDK/libs'
}
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
lintOptions {
abortOnError false
}
}
android.libraryVariants.all { variant ->
variant.outputs.each { output ->
output.packageLibrary.exclude('libs/classes.jar')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment