Skip to content

Commit

Permalink
Merge pull request #6217 from Bnyro/master
Browse files Browse the repository at this point in the history
chore: update baseline profiles
  • Loading branch information
Bnyro authored Jul 11, 2024
2 parents 2516d6e + 5b19670 commit 6e6b035
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 34 deletions.
59 changes: 42 additions & 17 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,48 @@
"type": "UNIVERSAL",
"filters": [],
"attributes": [],
"versionCode": 35,
"versionName": "0.15.0",
"versionCode": 54,
"versionName": "0.24.0",
"outputFile": "app-universal-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86_64"
"value": "armeabi-v7a"
}
],
"attributes": [],
"versionCode": 35,
"versionName": "0.15.0",
"outputFile": "app-x86_64-release.apk"
"versionCode": 54,
"versionName": "0.24.0",
"outputFile": "app-armeabi-v7a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "armeabi-v7a"
"value": "x86"
}
],
"attributes": [],
"versionCode": 35,
"versionName": "0.15.0",
"outputFile": "app-armeabi-v7a-release.apk"
"versionCode": 54,
"versionName": "0.24.0",
"outputFile": "app-x86-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "x86"
"value": "x86_64"
}
],
"attributes": [],
"versionCode": 35,
"versionName": "0.15.0",
"outputFile": "app-x86-release.apk"
"versionCode": 54,
"versionName": "0.24.0",
"outputFile": "app-x86_64-release.apk"
},
{
"type": "ONE_OF_MANY",
Expand All @@ -63,10 +63,35 @@
}
],
"attributes": [],
"versionCode": 35,
"versionName": "0.15.0",
"versionCode": 54,
"versionName": "0.24.0",
"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
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ class BaselineProfileGenerator {
// https://d.android.com/training/testing/other-components/ui-automator
}
}
}

private fun MacrobenchmarkScope.loadHomePage() {
// Select a Piped instance on the initial screen and click the OK button
val selector = By.clazz(RadioButton::class.java)
device.wait(Until.hasObject(selector), 1000)
device.findObject(selector)?.click()
fun MacrobenchmarkScope.loadHomePage() {
// Select a Piped instance on the initial screen and click the OK button
val selector = By.clazz(RadioButton::class.java)
device.wait(Until.hasObject(selector), 1000)
device.findObject(selector)?.click()

device.findObject(By.text("OK"))?.click()
device.findObject(By.text("OK"))?.click()

// Wait until the home page is loaded
device.wait(Until.hasObject(By.text("Home")), 1000)
}
// Wait until the home page is loaded
device.wait(Until.hasObject(By.text("Home")), 1000)
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,7 @@ class StartupBenchmarks {
measureBlock = {
startActivityAndWait()

// TODO Add interactions to wait for when your app is fully drawn.
// 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
loadHomePage()
}
)
}
Expand Down

0 comments on commit 6e6b035

Please sign in to comment.