xref: /aosp_15_r20/external/lottie/sample/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 'org.jetbrains.kotlin.plugin.parcelize'
7*bb5273feSAndroid Build Coastguard Worker  id 'com.google.devtools.ksp'
8*bb5273feSAndroid Build Coastguard Worker}
9*bb5273feSAndroid Build Coastguard Worker
10*bb5273feSAndroid Build Coastguard Workerandroid {
11*bb5273feSAndroid Build Coastguard Worker  namespace 'com.airbnb.lottie.samples'
12*bb5273feSAndroid Build Coastguard Worker  compileSdk 34
13*bb5273feSAndroid Build Coastguard Worker  defaultConfig {
14*bb5273feSAndroid Build Coastguard Worker    applicationId "com.airbnb.lottie"
15*bb5273feSAndroid Build Coastguard Worker    minSdk 16
16*bb5273feSAndroid Build Coastguard Worker    targetSdk 34
17*bb5273feSAndroid Build Coastguard Worker    versionCode 70
18*bb5273feSAndroid Build Coastguard Worker    versionName VERSION_NAME
19*bb5273feSAndroid Build Coastguard Worker    multiDexEnabled true
20*bb5273feSAndroid Build Coastguard Worker    buildConfigField("String", "GIT_SHA", "\"" + gitSha + "\"")
21*bb5273feSAndroid Build Coastguard Worker    buildConfigField("String", "GIT_BRANCH", "\"" + gitBranch + "\"")
22*bb5273feSAndroid Build Coastguard Worker    vectorDrawables.useSupportLibrary = true
23*bb5273feSAndroid Build Coastguard Worker    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
24*bb5273feSAndroid Build Coastguard Worker  }
25*bb5273feSAndroid Build Coastguard Worker  buildFeatures {
26*bb5273feSAndroid Build Coastguard Worker    viewBinding true
27*bb5273feSAndroid Build Coastguard Worker    buildConfig true
28*bb5273feSAndroid Build Coastguard Worker  }
29*bb5273feSAndroid Build Coastguard Worker  buildTypes {
30*bb5273feSAndroid Build Coastguard Worker    debug {
31*bb5273feSAndroid Build Coastguard Worker      multiDexKeepProguard file('proguard-multidex-rules.pro')
32*bb5273feSAndroid Build Coastguard Worker    }
33*bb5273feSAndroid Build Coastguard Worker    release {
34*bb5273feSAndroid Build Coastguard Worker      multiDexKeepProguard file('proguard-multidex-rules.pro')
35*bb5273feSAndroid Build Coastguard Worker      minifyEnabled false
36*bb5273feSAndroid Build Coastguard Worker    }
37*bb5273feSAndroid Build Coastguard Worker  }
38*bb5273feSAndroid Build Coastguard Worker  lintOptions {
39*bb5273feSAndroid Build Coastguard Worker    ignore 'InvalidPackage'
40*bb5273feSAndroid Build Coastguard Worker    ignore 'VectorDrawableCompat'
41*bb5273feSAndroid Build Coastguard Worker    textReport true
42*bb5273feSAndroid Build Coastguard Worker    textOutput 'stdout'
43*bb5273feSAndroid Build Coastguard Worker    baseline file("lint-baseline.xml")
44*bb5273feSAndroid Build Coastguard Worker  }
45*bb5273feSAndroid Build Coastguard Worker  kotlinOptions {
46*bb5273feSAndroid Build Coastguard Worker    freeCompilerArgs += ["-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"]
47*bb5273feSAndroid Build Coastguard Worker  }
48*bb5273feSAndroid Build Coastguard Worker  packagingOptions {
49*bb5273feSAndroid Build Coastguard Worker    exclude 'META-INF/LICENSE.txt'
50*bb5273feSAndroid Build Coastguard Worker    exclude 'META-INF/NOTICE.txt'
51*bb5273feSAndroid Build Coastguard Worker    exclude 'META-INF/LICENSE'
52*bb5273feSAndroid Build Coastguard Worker    exclude 'META-INF/NOTICE'
53*bb5273feSAndroid Build Coastguard Worker  }
54*bb5273feSAndroid Build Coastguard Worker}
55*bb5273feSAndroid Build Coastguard Worker
56*bb5273feSAndroid Build Coastguard Workerdependencies {
57*bb5273feSAndroid Build Coastguard Worker  implementation project(':lottie')
58*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.multidex
59*bb5273feSAndroid Build Coastguard Worker
60*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.appcompat
61*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.fragment
62*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.recyclerview
63*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.paging.runtime.ktx
64*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.viewmodel.ktx
65*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.cardview
66*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.core.ktx
67*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.constraintlayout
68*bb5273feSAndroid Build Coastguard Worker  implementation libs.androidx.browser
69*bb5273feSAndroid Build Coastguard Worker  implementation libs.google.material
70*bb5273feSAndroid Build Coastguard Worker
71*bb5273feSAndroid Build Coastguard Worker  implementation libs.epoxy
72*bb5273feSAndroid Build Coastguard Worker  ksp libs.epoxy.processor
73*bb5273feSAndroid Build Coastguard Worker  implementation libs.mavericks
74*bb5273feSAndroid Build Coastguard Worker
75*bb5273feSAndroid Build Coastguard Worker  implementation libs.kotlinx.coroutines.android
76*bb5273feSAndroid Build Coastguard Worker  implementation libs.qrcodereaderview
77*bb5273feSAndroid Build Coastguard Worker  implementation libs.mpandroidchart
78*bb5273feSAndroid Build Coastguard Worker  implementation libs.gson
79*bb5273feSAndroid Build Coastguard Worker  implementation libs.okhttp
80*bb5273feSAndroid Build Coastguard Worker  implementation libs.retrofit
81*bb5273feSAndroid Build Coastguard Worker  implementation libs.retrofit.rxjava
82*bb5273feSAndroid Build Coastguard Worker  implementation libs.retrofit.gson
83*bb5273feSAndroid Build Coastguard Worker  implementation libs.glide
84*bb5273feSAndroid Build Coastguard Worker
85*bb5273feSAndroid Build Coastguard Worker  debugImplementation libs.androidx.fragment.testing
86*bb5273feSAndroid Build Coastguard Worker
87*bb5273feSAndroid Build Coastguard Worker  testImplementation libs.junit4
88*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.androidx.test.junit
89*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.androidx.test.espresso
90*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.androidx.test.espresso.idling
91*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.androidx.test.core
92*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.androidx.test.rules
93*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.mockito.android
94*bb5273feSAndroid Build Coastguard Worker  androidTestImplementation libs.mockito.kotlin
95*bb5273feSAndroid Build Coastguard Worker}
96