chore: update baseline profiles

This commit is contained in:
Bnyro 2024-07-11 18:25:10 +02:00
parent 2516d6e168
commit 5b19670fb6
3 changed files with 57 additions and 39 deletions

View File

@ -11,23 +11,10 @@
"type": "UNIVERSAL", "type": "UNIVERSAL",
"filters": [], "filters": [],
"attributes": [], "attributes": [],
"versionCode": 35, "versionCode": 54,
"versionName": "0.15.0", "versionName": "0.24.0",
"outputFile": "app-universal-release.apk" "outputFile": "app-universal-release.apk"
}, },
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86_64"
}
],
"attributes": [],
"versionCode": 35,
"versionName": "0.15.0",
"outputFile": "app-x86_64-release.apk"
},
{ {
"type": "ONE_OF_MANY", "type": "ONE_OF_MANY",
"filters": [ "filters": [
@ -37,8 +24,8 @@
} }
], ],
"attributes": [], "attributes": [],
"versionCode": 35, "versionCode": 54,
"versionName": "0.15.0", "versionName": "0.24.0",
"outputFile": "app-armeabi-v7a-release.apk" "outputFile": "app-armeabi-v7a-release.apk"
}, },
{ {
@ -50,10 +37,23 @@
} }
], ],
"attributes": [], "attributes": [],
"versionCode": 35, "versionCode": 54,
"versionName": "0.15.0", "versionName": "0.24.0",
"outputFile": "app-x86-release.apk" "outputFile": "app-x86-release.apk"
}, },
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86_64"
}
],
"attributes": [],
"versionCode": 54,
"versionName": "0.24.0",
"outputFile": "app-x86_64-release.apk"
},
{ {
"type": "ONE_OF_MANY", "type": "ONE_OF_MANY",
"filters": [ "filters": [
@ -63,10 +63,35 @@
} }
], ],
"attributes": [], "attributes": [],
"versionCode": 35, "versionCode": 54,
"versionName": "0.15.0", "versionName": "0.24.0",
"outputFile": "app-arm64-v8a-release.apk" "outputFile": "app-arm64-v8a-release.apk"
} }
], ],
"elementType": "File" "elementType": "File",
"baselineProfiles": [
{
"minApi": 28,
"maxApi": 30,
"baselineProfiles": [
"baselineProfiles/1/app-universal-release.dm",
"baselineProfiles/1/app-armeabi-v7a-release.dm",
"baselineProfiles/1/app-x86-release.dm",
"baselineProfiles/1/app-x86_64-release.dm",
"baselineProfiles/1/app-arm64-v8a-release.dm"
]
},
{
"minApi": 31,
"maxApi": 2147483647,
"baselineProfiles": [
"baselineProfiles/0/app-universal-release.dm",
"baselineProfiles/0/app-armeabi-v7a-release.dm",
"baselineProfiles/0/app-x86-release.dm",
"baselineProfiles/0/app-x86_64-release.dm",
"baselineProfiles/0/app-arm64-v8a-release.dm"
]
}
],
"minSdkVersionForDexing": 21
} }

View File

@ -65,8 +65,9 @@ class BaselineProfileGenerator {
// https://d.android.com/training/testing/other-components/ui-automator // https://d.android.com/training/testing/other-components/ui-automator
} }
} }
}
private fun MacrobenchmarkScope.loadHomePage() { fun MacrobenchmarkScope.loadHomePage() {
// Select a Piped instance on the initial screen and click the OK button // Select a Piped instance on the initial screen and click the OK button
val selector = By.clazz(RadioButton::class.java) val selector = By.clazz(RadioButton::class.java)
device.wait(Until.hasObject(selector), 1000) device.wait(Until.hasObject(selector), 1000)
@ -76,5 +77,4 @@ class BaselineProfileGenerator {
// Wait until the home page is loaded // Wait until the home page is loaded
device.wait(Until.hasObject(By.text("Home")), 1000) device.wait(Until.hasObject(By.text("Home")), 1000)
}
} }

View File

@ -62,14 +62,7 @@ class StartupBenchmarks {
measureBlock = { measureBlock = {
startActivityAndWait() startActivityAndWait()
// TODO Add interactions to wait for when your app is fully drawn. loadHomePage()
// The app is fully drawn when Activity.reportFullyDrawn is called.
// For Jetpack Compose, you can use ReportDrawn, ReportDrawnWhen and ReportDrawnAfter
// from the AndroidX Activity library.
// Check the UiAutomator documentation for more information on how to
// interact with the app.
// https://d.android.com/training/testing/other-components/ui-automator
} }
) )
} }