Guest User

Untitled

a guest
Dec 13th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.google.protobuf'
  3.  
  4. ext {
  5. grpcVersion = '1.4.0'
  6. }
  7. android {
  8. compileSdkVersion 26
  9. defaultConfig {
  10. applicationId "com.SpeechServiceDemo"
  11. minSdkVersion 21
  12. targetSdkVersion 26
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  16. multiDexEnabled true
  17. }
  18. buildTypes {
  19. release {
  20. minifyEnabled false
  21. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  22. }
  23. }
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. }
  29.  
  30. protobuf {
  31.  
  32. protoc {
  33. // You still need protoc like in the non-Android case
  34. artifact = 'com.google.protobuf:protoc:3.0.0'
  35. }
  36. plugins {
  37. javalite {
  38. // The codegen for lite comes as a separate artifact
  39. artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
  40. }
  41. }
  42. generateProtoTasks {
  43. all().each { task ->
  44. task.builtins {
  45. // In most cases you don't need the full Java output
  46. // if you use the lite output.
  47. remove java
  48. }
  49. task.plugins {
  50. javalite {}
  51. }
  52. }
  53. }
  54. }
  55.  
  56.  
  57.  
  58. dependencies {
  59. implementation fileTree(dir: 'libs', include: ['*.jar'])
  60. implementation 'com.android.support:appcompat-v7:26.0.0'
  61. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  62.  
  63.  
  64. compile 'com.jakewharton:butterknife:8.8.1'
  65. annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
  66.  
  67.  
  68. //AzureDepedencies
  69. implementation 'com.microsoft.cognitiveservices.speech:client-sdk:1.1.0'
  70. //end
  71.  
  72. //GoogleCloudSpeechServices
  73.  
  74. // gRPC
  75. compile "io.grpc:grpc-okhttp:$grpcVersion"
  76. compile "io.grpc:grpc-protobuf-lite:$grpcVersion"
  77. compile "io.grpc:grpc-stub:$grpcVersion"
  78. compile 'javax.annotation:javax.annotation-api:1.2'
  79. protobuf 'com.google.protobuf:protobuf-lite:3.0.1'
  80.  
  81. compile group: 'com.google.api.grpc', name: 'grpc-google-cloud-speech-v1', version: '0.1.13'
  82.  
  83. // OAuth2 for Google API
  84. compile('com.google.auth:google-auth-library-oauth2-http:0.7.0') {
  85. exclude module: 'httpclient'
  86. }
  87.  
  88. compile 'com.android.support:multidex:1.0.3'
  89. //end
  90.  
  91. testImplementation 'junit:junit:4.12'
  92. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  93. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  94. }
Add Comment
Please, Sign In to add comment