• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1plugins {
2  id 'com.android.library'
3  id 'kotlin-android'
4  id 'com.vanniktech.maven.publish'
5}
6
7android {
8  compileSdk 31
9  defaultConfig {
10    minSdk 21
11    targetSdk 30
12    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13  }
14  buildTypes {
15    release {
16      minifyEnabled false
17    }
18  }
19  compileOptions {
20    sourceCompatibility JavaVersion.VERSION_1_8
21    targetCompatibility JavaVersion.VERSION_1_8
22  }
23  kotlinOptions {
24    jvmTarget = JavaVersion.VERSION_1_8.toString()
25    freeCompilerArgs += [
26        "-Xallow-jvm-ir-dependencies",
27        "-Xskip-prerelease-check",
28        "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
29    ]
30  }
31  buildFeatures {
32    compose true
33  }
34  composeOptions {
35    kotlinCompilerExtensionVersion composeVersion
36  }
37}
38
39dependencies {
40  api project(':lottie')
41  implementation "androidx.compose.foundation:foundation:$composeVersion"
42  implementation "androidx.compose.ui:ui:$composeVersion"
43
44  testImplementation "org.robolectric:robolectric:$robolectricVersion"
45  testImplementation 'androidx.collection:collection-ktx:1.1.0'
46  testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion"
47  testImplementation "junit:junit:$junitVersion"
48  androidTestImplementation "androidx.test.ext:junit:$extJunitVersion"
49  androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
50}