feat(benchmark): use real devices baseline profile generation
Emulators are pretty unstable for this
This commit is contained in:
parent
a3e150fdd9
commit
d7dd2eb611
|
@ -1,13 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Copyright © 2022-2023 Harsh Shandilya.
|
* Copyright © 2022-2024 Harsh Shandilya.
|
||||||
* Use of this source code is governed by an MIT-style
|
* Use of this source code is governed by an MIT-style
|
||||||
* license that can be found in the LICENSE file or at
|
* license that can be found in the LICENSE file or at
|
||||||
* https://opensource.org/licenses/MIT.
|
* https://opensource.org/licenses/MIT.
|
||||||
*/
|
*/
|
||||||
@file:Suppress("UnstableApiUsage")
|
@file:Suppress("UnstableApiUsage")
|
||||||
|
|
||||||
import com.android.build.api.dsl.ManagedVirtualDevice
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id(libs.plugins.android.test.get().pluginId)
|
id(libs.plugins.android.test.get().pluginId)
|
||||||
id("dev.msfjarvis.claw.kotlin-android")
|
id("dev.msfjarvis.claw.kotlin-android")
|
||||||
|
@ -30,21 +28,11 @@ android {
|
||||||
matchingFallbacks += "release"
|
matchingFallbacks += "release"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testOptions.managedDevices.devices {
|
|
||||||
create<ManagedVirtualDevice>("api31") {
|
|
||||||
device = "Pixel 6"
|
|
||||||
apiLevel = 31
|
|
||||||
systemImageSource = "aosp"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
targetProjectPath = ":android"
|
targetProjectPath = ":android"
|
||||||
}
|
}
|
||||||
|
|
||||||
baselineProfile {
|
baselineProfile {
|
||||||
managedDevices += "api31"
|
useConnectedDevices = true
|
||||||
useConnectedDevices = false
|
|
||||||
enableEmulatorDisplay = false
|
enableEmulatorDisplay = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue