Created
November 6, 2016 09:53
-
-
Save flushpot1125/1df4689cfea9d7484a04147b83e01c8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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