/*
 * 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.
 */

ext {
  final screenshotTestVersion = VERSION_NAME
  final dexmakerVersion = "1.4"
  final lithoVersion = "0.40.0"

  versions = [
      kotlin    : '1.6.10',
      targetSdk : 28,
      compileSdk: 28,
      minSdk    : 14,
  ]

  plugs = [
      agp        : "com.android.tools.build:gradle:7.1.0",
      screenshot : "com.facebook.testing.screenshot:plugin:$screenshotTestVersion",
      kotlin     : "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
      versions   : 'com.github.ben-manes:gradle-versions-plugin:0.20.0',
      publish    : 'com.vanniktech:gradle-maven-publish-plugin:0.18.0',
      dokka      : 'org.jetbrains.dokka:dokka-gradle-plugin:1.6.10'
  ]

  deps = [
      supportAppCompat    : "androidx.appcompat:appcompat:1.1.0",
      supportDesign       : "com.google.android.material:material:1.1.0",
      supportMultidex     : "androidx.multidex:multidex:2.0.1",

      kotlinStdlib        : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",

      lithoCore           : "com.facebook.litho:litho-core:$lithoVersion",
      lithoWidget         : "com.facebook.litho:litho-widget:$lithoVersion",
      lithoAnnotations    : "com.facebook.litho:litho-annotations:$lithoVersion",
      lithoProcessor      : "com.facebook.litho:litho-processor:$lithoVersion",

      gson                : "com.google.code.gson:gson:2.8.6",

      soLoader            : "com.facebook.soloader:soloader:0.10.4",

      jsr305              : "com.google.code.findbugs:jsr305:3.0.2",

      screenshotTestCommon: "com.facebook.testing.screenshot:layout-hierarchy-common:$screenshotTestVersion",
      screenshotTestLitho : "com.facebook.testing.screenshot:layout-hierarchy-litho:$screenshotTestVersion",

      dexmaker            : "com.crittercism.dexmaker:dexmaker:$dexmakerVersion",
      dexmakerDx          : "com.crittercism.dexmaker:dexmaker-dx:$dexmakerVersion",
      dexmakerMockito     : "com.crittercism.dexmaker:dexmaker-mockito:$dexmakerVersion",

      espresso            : "androidx.test.espresso:espresso-core:3.1.0",
      testRunner          : "androidx.test:runner:1.2.0",
      orchestrator        : "androidx.test:orchestrator:1.2.0",
      androidTestRules    : "androidx.test:rules:1.1.0",
      junit               : "junit:junit:4.12",
      mockito             : "org.mockito:mockito-core:1.10.19",
      hamcrest            : "org.hamcrest:hamcrest-core:1.3",
  ]
}
