File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
benchmarks/src/main/java/com/google/samples/apps/nowinandroid/baselineprofile Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1616
1717package com.google.samples.apps.nowinandroid.baselineprofile
1818
19- import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
2019import androidx.benchmark.macro.junit4.BaselineProfileRule
2120import com.google.samples.apps.nowinandroid.PACKAGE_NAME
2221import com.google.samples.apps.nowinandroid.bookmarks.goToBookmarksScreen
@@ -31,13 +30,12 @@ import org.junit.Test
3130/* *
3231 * Generates a baseline profile which can be copied to `app/src/main/baseline-prof.txt`.
3332 */
34- @ExperimentalBaselineProfilesApi
3533class BaselineProfileGenerator {
3634 @get:Rule val baselineProfileRule = BaselineProfileRule ()
3735
3836 @Test
3937 fun generate () =
40- baselineProfileRule.collectBaselineProfile (PACKAGE_NAME ) {
38+ baselineProfileRule.collect (PACKAGE_NAME ) {
4139 // This block defines the app's critical user journey. Here we are interested in
4240 // optimizing for app startup. But you can also navigate and scroll
4341 // through your most important UI.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ androidxDataStore = "1.0.0"
1515androidxEspresso = " 3.5.0"
1616androidxHiltNavigationCompose = " 1.0.0"
1717androidxLifecycle = " 2.6.0-alpha05"
18- androidxMacroBenchmark = " 1.1.1 "
18+ androidxMacroBenchmark = " 1.2.0-alpha16 "
1919androidxMetrics = " 1.0.0-alpha03"
2020androidxNavigation = " 2.5.3"
2121androidxProfileinstaller = " 1.2.1"
You can’t perform that action at this time.
0 commit comments