// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

plugins {
    id 'firebase-library'
}

firebaseLibrary {
    testLab.enabled = false
    publishJavadoc = false
    releaseNotes {
        name.set("{{ab_testing}}")
        versionName.set("ab_testing")
    }
}

android {

    lintOptions {
        abortOnError false
    }

    namespace "com.google.firebase.abt"
    compileSdkVersion project.compileSdkVersion
    defaultConfig {
        minSdkVersion project.minSdkVersion
        targetSdkVersion project.targetSdkVersion
        versionName version
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    testOptions {
        unitTests {
            includeAndroidResources = true
        }
    }
}

dependencies {
    api libs.firebase.common
    api libs.firebase.components

    implementation libs.playservices.basement
    implementation ('com.google.firebase:firebase-measurement-connector:18.0.0') {
        exclude group: "com.google.firebase", module: "firebase-common"
    }

    implementation(libs.kotlin.stdlib.jdk8)

    testImplementation libs.androidx.test.runner
    testImplementation libs.androidx.espresso.core
    testImplementation libs.truth
    testImplementation libs.grpc.testing
    testImplementation libs.junit
    testImplementation libs.mockito.core
    testImplementation libs.robolectric
}
