/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * 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.
 */

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

android {
    compileSdkVersion rootProject.compileSdkVersion
    buildToolsVersion rootProject.buildToolsVersion

    targetCompatibility = targetCompatibilityVersion
    sourceCompatibility = sourceCompatibilityVersion

    defaultConfig {
        minSdkVersion rootProject.minSdkVersion
        targetSdkVersion rootProject.targetSdkVersion
    }
    namespace 'com.facebook.samples.lithoktbarebones'
    lint {
        abortOnError false
    }

    // TODO(#62): Re-enable abort on error.
}

kapt {
    mapDiagnosticLocations = true
}

dependencies {
    implementation('com.facebook.litho:litho-annotations:0.50.2')
    implementation('com.facebook.litho:litho-core:0.50.2')
    implementation('com.facebook.litho:litho-widget:0.50.2')
    implementation('com.facebook.litho:litho-widget-kotlin:0.50.2')
    kapt('com.facebook.litho:litho-processor:0.50.2')

    implementation deps.soloader
    implementation deps.supportFragment
    implementation deps.supportRecyclerView
    implementation deps.supportSwipeRefresh
    implementation deps.kotlinStandardLib
    compileOnly deps.inferAnnotations
}
repositories {
    mavenCentral()
}
