xref: /aosp_15_r20/external/lottie/app-benchmark/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 'androidx.baselineprofile'
7*bb5273feSAndroid Build Coastguard Worker}
8*bb5273feSAndroid Build Coastguard Worker
9*bb5273feSAndroid Build Coastguard Workerandroid {
10*bb5273feSAndroid Build Coastguard Worker    namespace 'com.airbnb.lottie.benchmark.app'
11*bb5273feSAndroid Build Coastguard Worker    compileSdk 34
12*bb5273feSAndroid Build Coastguard Worker    defaultConfig {
13*bb5273feSAndroid Build Coastguard Worker        applicationId "com.airbnb.lottie.benchmark.app"
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 "1.0"
18*bb5273feSAndroid Build Coastguard Worker    }
19*bb5273feSAndroid Build Coastguard Worker    buildTypes {
20*bb5273feSAndroid Build Coastguard Worker        release {
21*bb5273feSAndroid Build Coastguard Worker            minifyEnabled false
22*bb5273feSAndroid Build Coastguard Worker            signingConfig signingConfigs.debug
23*bb5273feSAndroid Build Coastguard Worker            debuggable false
24*bb5273feSAndroid Build Coastguard Worker            proguardFiles("proguard-rules.pro")
25*bb5273feSAndroid Build Coastguard Worker        }
26*bb5273feSAndroid Build Coastguard Worker        create("benchmark") {
27*bb5273feSAndroid Build Coastguard Worker            initWith(release)
28*bb5273feSAndroid Build Coastguard Worker            signingConfig = signingConfigs.getByName("debug")
29*bb5273feSAndroid Build Coastguard Worker        }
30*bb5273feSAndroid Build Coastguard Worker    }
31*bb5273feSAndroid Build Coastguard Worker    buildFeatures {
32*bb5273feSAndroid Build Coastguard Worker        compose true
33*bb5273feSAndroid Build Coastguard Worker    }
34*bb5273feSAndroid Build Coastguard Worker    composeOptions {
35*bb5273feSAndroid Build Coastguard Worker        kotlinCompilerExtensionVersion = versionFor(project, AndroidX.compose.compiler)
36*bb5273feSAndroid Build Coastguard Worker    }
37*bb5273feSAndroid Build Coastguard Worker}
38*bb5273feSAndroid Build Coastguard Worker
39*bb5273feSAndroid Build Coastguard Workerdependencies {
40*bb5273feSAndroid Build Coastguard Worker    implementation project(':lottie-compose')
41*bb5273feSAndroid Build Coastguard Worker    implementation libs.androidx.appcompat
42*bb5273feSAndroid Build Coastguard Worker    implementation libs.androidx.activity.compose
43*bb5273feSAndroid Build Coastguard Worker    implementation platform(libs.compose.bom)
44*bb5273feSAndroid Build Coastguard Worker    implementation libs.compose.ui
45*bb5273feSAndroid Build Coastguard Worker    implementation libs.compose.material
46*bb5273feSAndroid Build Coastguard Worker    implementation libs.compose.material.icons.extended
47*bb5273feSAndroid Build Coastguard Worker    implementation libs.compose.ui.tooling
48*bb5273feSAndroid Build Coastguard Worker    // Need this to side load a Baseline Profile when Benchmarking
49*bb5273feSAndroid Build Coastguard Worker    implementation libs.profileinstaller
50*bb5273feSAndroid Build Coastguard Worker}
51