xref: /aosp_15_r20/external/lottie/sample-compose/build.gradle (revision bb5273fecd5c61b9ace70f9ff4fcd88f0e12e3f7)
1*bb5273feSAndroid Build Coastguard Workerimport static de.fayard.refreshVersions.core.Versions.versionFor
2*bb5273feSAndroid Build Coastguard Worker
3*bb5273feSAndroid Build Coastguard Workerplugins {
4*bb5273feSAndroid Build Coastguard Worker  id 'com.android.application'
5*bb5273feSAndroid Build Coastguard Worker  id "org.jetbrains.kotlin.android"
6*bb5273feSAndroid Build Coastguard Worker  id 'kotlin-kapt'
7*bb5273feSAndroid Build Coastguard Worker}
8*bb5273feSAndroid Build Coastguard Worker
9*bb5273feSAndroid Build Coastguard Workerandroid {
10*bb5273feSAndroid Build Coastguard Worker  namespace 'com.airbnb.lottie.sample.compose'
11*bb5273feSAndroid Build Coastguard Worker  compileSdk 34
12*bb5273feSAndroid Build Coastguard Worker  defaultConfig {
13*bb5273feSAndroid Build Coastguard Worker    applicationId "com.airbnb.lottie.sample.compose"
14*bb5273feSAndroid Build Coastguard Worker    minSdk 21
15*bb5273feSAndroid Build Coastguard Worker    targetSdk 34
16*bb5273feSAndroid Build Coastguard Worker    versionCode 1
17*bb5273feSAndroid Build Coastguard Worker    versionName VERSION_NAME
18*bb5273feSAndroid Build Coastguard Worker    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19*bb5273feSAndroid Build Coastguard Worker  }
20*bb5273feSAndroid Build Coastguard Worker  buildTypes {
21*bb5273feSAndroid Build Coastguard Worker    release {
22*bb5273feSAndroid Build Coastguard Worker      minifyEnabled false
23*bb5273feSAndroid Build Coastguard Worker      signingConfig signingConfigs.debug
24*bb5273feSAndroid Build Coastguard Worker      debuggable false
25*bb5273feSAndroid Build Coastguard Worker    }
26*bb5273feSAndroid Build Coastguard Worker  }
27*bb5273feSAndroid Build Coastguard Worker  kotlinOptions {
28*bb5273feSAndroid Build Coastguard Worker    freeCompilerArgs += [
29*bb5273feSAndroid Build Coastguard Worker        "-Xskip-prerelease-check",
30*bb5273feSAndroid Build Coastguard Worker        "-opt-in=androidx.compose.foundation.ExperimentalFoundationApi",
31*bb5273feSAndroid Build Coastguard Worker        "-opt-in=androidx.compose.material.ExperimentalMaterialApi",
32*bb5273feSAndroid Build Coastguard Worker        "-opt-in=kotlin.RequiresOptIn",
33*bb5273feSAndroid Build Coastguard Worker    ]
34*bb5273feSAndroid Build Coastguard Worker  }
35*bb5273feSAndroid Build Coastguard Worker  buildFeatures {
36*bb5273feSAndroid Build Coastguard Worker    compose true
37*bb5273feSAndroid Build Coastguard Worker    buildConfig true
38*bb5273feSAndroid Build Coastguard Worker  }
39*bb5273feSAndroid Build Coastguard Worker  composeOptions {
40*bb5273feSAndroid Build Coastguard Worker    kotlinCompilerExtensionVersion = versionFor(project, AndroidX.compose.compiler)
41*bb5273feSAndroid Build Coastguard Worker  }
42*bb5273feSAndroid Build Coastguard Worker  packagingOptions {
43*bb5273feSAndroid Build Coastguard Worker    exclude 'META-INF/AL2.0'
44*bb5273feSAndroid Build Coastguard Worker    exclude 'META-INF/LGPL2.1'
45*bb5273feSAndroid Build Coastguard Worker  }
46*bb5273feSAndroid Build Coastguard Worker}
47*bb5273feSAndroid Build Coastguard Worker
48*bb5273feSAndroid Build Coastguard Workerkapt {
49*bb5273feSAndroid Build Coastguard Worker  correctErrorTypes = true
50*bb5273feSAndroid Build Coastguard Worker}
51*bb5273feSAndroid Build Coastguard Worker
52*bb5273feSAndroid Build Coastguard Workerdependencies {
53*bb5273feSAndroid Build Coastguard Worker  implementation project(':lottie-compose')
54*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.appcompat
55*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.core.ktx
56*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.activity.compose
57*bb5273feSAndroid Build Coastguard Worker  implementation libs.google.material
58*bb5273feSAndroid Build Coastguard Worker  implementation platform(libs.compose.bom)
59*bb5273feSAndroid Build Coastguard Worker  implementation libs.compose.ui
60*bb5273feSAndroid Build Coastguard Worker  implementation libs.compose.foundation
61*bb5273feSAndroid Build Coastguard Worker  implementation libs.compose.material
62*bb5273feSAndroid Build Coastguard Worker  implementation libs.compose.material.icons.extended
63*bb5273feSAndroid Build Coastguard Worker  implementation libs.compose.ui.tooling
64*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.navigation.ui
65*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.navigation.compose
66*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.viewmodel.ktx
67*bb5273feSAndroid Build Coastguard Worker  // Need this to side load a Baseline Profile when Benchmarking
68*bb5273feSAndroid Build Coastguard Worker  implementation libs.profileinstaller
69*bb5273feSAndroid Build Coastguard Worker
70*bb5273feSAndroid Build Coastguard Worker
71*bb5273feSAndroid Build Coastguard Worker  implementation libs.kotlinx.coroutines.android
72*bb5273feSAndroid Build Coastguard Worker
73*bb5273feSAndroid Build Coastguard Worker  implementation libs.dagger
74*bb5273feSAndroid Build Coastguard Worker  kapt libs.dagger.compiler
75*bb5273feSAndroid Build Coastguard Worker
76*bb5273feSAndroid Build Coastguard Worker  implementation libs.retrofit
77*bb5273feSAndroid Build Coastguard Worker  implementation libs.retrofit.moshi
78*bb5273feSAndroid Build Coastguard Worker  implementation libs.coil.compose
79*bb5273feSAndroid Build Coastguard Worker  implementation libs.mavericks
80*bb5273feSAndroid Build Coastguard Worker  implementation libs.mavericks.compose
81*bb5273feSAndroid Build Coastguard Worker
82*bb5273feSAndroid Build Coastguard Worker  debugImplementation libs.compose.ui.test.manifest
83*bb5273feSAndroid Build Coastguard Worker
84*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.compose.ui.test.junit
85*bb5273feSAndroid Build Coastguard Worker}
86