build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'maven-publish'
  5. }
  6. ext {
  7. GROUP_ID = 'com.gami.android'
  8. ARTIFACT_ID = 'frame-asr'
  9. VERSION = '1.0.0'
  10. }
  11. apply from: "../../publish.gradle"
  12. android {
  13. namespace 'com.adealink.frame.asr'
  14. compileSdk libs.versions.compileSdk.get().toInteger()
  15. defaultConfig {
  16. minSdk libs.versions.minSdk.get().toInteger()
  17. targetSdk libs.versions.targetSdk.get().toInteger()
  18. versionCode 1
  19. versionName "1.0"
  20. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  21. consumerProguardFiles "consumer-rules.pro"
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_17
  31. targetCompatibility JavaVersion.VERSION_17
  32. }
  33. kotlinOptions {
  34. jvmTarget = JavaVersion.VERSION_17.majorVersion
  35. }
  36. }
  37. dependencies {
  38. api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
  39. //kotlin
  40. implementation libs.kotlin.stdlib
  41. //androidx
  42. implementation libs.androidx.core.ktx
  43. implementation libs.androidx.appcompat
  44. //frame
  45. compileOnly project(":frame:util")
  46. compileOnly project(":frame:zero")
  47. compileOnly project(":frame:base")
  48. compileOnly project(":frame:statistics")
  49. implementation(libs.grpc.okhttp) {
  50. exclude group: 'com.google.code.gson', module: 'gson'
  51. }
  52. implementation(libs.google.cloud.speech) {
  53. exclude group: 'org.conscrypt', module: 'conscrypt-openjdk-uber'
  54. exclude group: 'com.google.code.gson', module: 'gson'
  55. exclude group: 'io.grpc', module: 'grpc-netty'
  56. exclude group: 'io.grpc', module: 'grpc-netty-shaded'
  57. exclude group: 'com.google.api.grpc', module: 'proto-google-cloud-speech-v1p1beta1'
  58. exclude group: 'com.google.api.grpc', module: 'proto-google-cloud-speech-v1'
  59. exclude group: 'com.google.api.grpc', module: 'proto-google-cloud-speech-v1beta1'
  60. exclude group: 'io.netty'
  61. exclude group: 'io.opencensus'
  62. exclude group: 'commons-codec'
  63. exclude group: 'org.apache.httpcomponents'
  64. exclude group: 'org.checkerframework'
  65. }
  66. //test
  67. testImplementation libs.junit
  68. androidTestImplementation libs.androidx.junit
  69. androidTestImplementation libs.androidx.espresso.core
  70. }