build.gradle 1.7 KB
plugins {
    id 'com.android.library'
    id 'kotlin-android'
}

android {
    compileSdk androidSdk.compileVersion

    defaultConfig {
        minSdk androidSdk.minVersion
        targetSdk androidSdk.targetVersion
        versionCode 1
        versionName "1.0"
        consumerProguardFiles 'consumer-rules.pro'

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
}

dependencies {

    api "androidx.core:core-ktx:${versions.androidx_core}"
    api 'androidx.appcompat:appcompat:1.4.0'
    api 'com.google.android.material:material:1.4.0'
    api deps.coroutines.lib
    api deps.timber
    api "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}"
    api "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}"
    api "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}"
    api "com.google.protobuf:protobuf-javalite:${versions.protobuf}"
    api project(":livekit-android-sdk")
    implementation 'androidx.preference:preference-ktx:1.1.1'
    // debugImplementation because LeakCanary should only run in debug builds.
    debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}