1*bb5273feSAndroid Build Coastguard Workerplugins { 2*bb5273feSAndroid Build Coastguard Worker id 'com.android.test' 3*bb5273feSAndroid Build Coastguard Worker id 'org.jetbrains.kotlin.android' 4*bb5273feSAndroid Build Coastguard Worker id 'androidx.baselineprofile' 5*bb5273feSAndroid Build Coastguard Worker} 6*bb5273feSAndroid Build Coastguard Worker 7*bb5273feSAndroid Build Coastguard Workerandroid { 8*bb5273feSAndroid Build Coastguard Worker namespace 'com.airbnb.lottie.benchmark' 9*bb5273feSAndroid Build Coastguard Worker compileSdk 34 10*bb5273feSAndroid Build Coastguard Worker 11*bb5273feSAndroid Build Coastguard Worker kotlinOptions { 12*bb5273feSAndroid Build Coastguard Worker freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" 13*bb5273feSAndroid Build Coastguard Worker } 14*bb5273feSAndroid Build Coastguard Worker 15*bb5273feSAndroid Build Coastguard Worker defaultConfig { 16*bb5273feSAndroid Build Coastguard Worker minSdk 30 17*bb5273feSAndroid Build Coastguard Worker targetSdk 34 18*bb5273feSAndroid Build Coastguard Worker 19*bb5273feSAndroid Build Coastguard Worker testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 20*bb5273feSAndroid Build Coastguard Worker } 21*bb5273feSAndroid Build Coastguard Worker 22*bb5273feSAndroid Build Coastguard Worker buildTypes { 23*bb5273feSAndroid Build Coastguard Worker release { 24*bb5273feSAndroid Build Coastguard Worker debuggable = true 25*bb5273feSAndroid Build Coastguard Worker signingConfig = debug.signingConfig 26*bb5273feSAndroid Build Coastguard Worker } 27*bb5273feSAndroid Build Coastguard Worker } 28*bb5273feSAndroid Build Coastguard Worker 29*bb5273feSAndroid Build Coastguard Worker targetProjectPath = ":app-benchmark" 30*bb5273feSAndroid Build Coastguard Worker experimentalProperties["android.experimental.self-instrumenting"] = true 31*bb5273feSAndroid Build Coastguard Worker 32*bb5273feSAndroid Build Coastguard Worker testOptions.managedDevices.devices { 33*bb5273feSAndroid Build Coastguard Worker pixel6Api31(com.android.build.api.dsl.ManagedVirtualDevice) { 34*bb5273feSAndroid Build Coastguard Worker device = "Pixel 6" 35*bb5273feSAndroid Build Coastguard Worker apiLevel = 31 36*bb5273feSAndroid Build Coastguard Worker systemImageSource = "aosp" 37*bb5273feSAndroid Build Coastguard Worker } 38*bb5273feSAndroid Build Coastguard Worker } 39*bb5273feSAndroid Build Coastguard Worker} 40*bb5273feSAndroid Build Coastguard Worker 41*bb5273feSAndroid Build Coastguard WorkerbaselineProfile { 42*bb5273feSAndroid Build Coastguard Worker managedDevices += "pixel6Api31" 43*bb5273feSAndroid Build Coastguard Worker useConnectedDevices = false 44*bb5273feSAndroid Build Coastguard Worker} 45*bb5273feSAndroid Build Coastguard Worker 46*bb5273feSAndroid Build Coastguard Workerdependencies { 47*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.test.junit 48*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.test.espresso 49*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.test.uiautomator 50*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.test.macrobenchmark 51*bb5273feSAndroid Build Coastguard Worker implementation libs.compose.ui.test.junit 52*bb5273feSAndroid Build Coastguard Worker} 53