| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- plugins {
- id 'com.android.library'
- id 'org.jetbrains.kotlin.android'
- id 'maven-publish'
- }
- ext {
- GROUP_ID = 'com.gami.android'
- ARTIFACT_ID = 'frame-asr'
- VERSION = '1.0.0'
- }
- apply from: "../../publish.gradle"
- android {
- namespace 'com.adealink.frame.asr'
- compileSdk libs.versions.compileSdk.get().toInteger()
- defaultConfig {
- minSdk libs.versions.minSdk.get().toInteger()
- targetSdk libs.versions.targetSdk.get().toInteger()
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_17
- targetCompatibility JavaVersion.VERSION_17
- }
- kotlinOptions {
- jvmTarget = JavaVersion.VERSION_17.majorVersion
- }
- }
- dependencies {
- api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
- //kotlin
- implementation libs.kotlin.stdlib
- //androidx
- implementation libs.androidx.core.ktx
- implementation libs.androidx.appcompat
- //frame
- compileOnly project(":frame:util")
- compileOnly project(":frame:zero")
- compileOnly project(":frame:base")
- compileOnly project(":frame:statistics")
- implementation(libs.grpc.okhttp) {
- exclude group: 'com.google.code.gson', module: 'gson'
- }
- implementation(libs.google.cloud.speech) {
- exclude group: 'org.conscrypt', module: 'conscrypt-openjdk-uber'
- exclude group: 'com.google.code.gson', module: 'gson'
- exclude group: 'io.grpc', module: 'grpc-netty'
- exclude group: 'io.grpc', module: 'grpc-netty-shaded'
- exclude group: 'com.google.api.grpc', module: 'proto-google-cloud-speech-v1p1beta1'
- exclude group: 'com.google.api.grpc', module: 'proto-google-cloud-speech-v1'
- exclude group: 'com.google.api.grpc', module: 'proto-google-cloud-speech-v1beta1'
- exclude group: 'io.netty'
- exclude group: 'io.opencensus'
- exclude group: 'commons-codec'
- exclude group: 'org.apache.httpcomponents'
- exclude group: 'org.checkerframework'
- }
- //test
- testImplementation libs.junit
- androidTestImplementation libs.androidx.junit
- androidTestImplementation libs.androidx.espresso.core
- }
|