File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed
src/main/kotlin/io/getstream/whatsappclone/benchmark Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ android {
4646 }
4747
4848 targetProjectPath = " :app"
49- experimentalProperties[" android.experimental.self-instrumenting" ] = true
5049}
5150
5251dependencies {
@@ -55,9 +54,3 @@ dependencies {
5554 implementation(libs.androidx.benchmark.macro)
5655 implementation(libs.androidx.profileinstaller)
5756}
58-
59- androidComponents {
60- beforeVariants(selector().all()) {
61- it.enabled = it.buildType == " benchmark"
62- }
63- }
Original file line number Diff line number Diff line change 1616
1717package io.getstream.whatsappclone.benchmark
1818
19- import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
19+ import android.os.Build
20+ import androidx.annotation.RequiresApi
2021import androidx.benchmark.macro.junit4.BaselineProfileRule
2122import org.junit.Rule
2223import org.junit.Test
2324
2425/* *
2526 * Generates a baseline profile which can be copied to `app/src/main/baseline-prof.txt`.
2627 */
27- @ExperimentalBaselineProfilesApi
28+ @RequiresApi( Build . VERSION_CODES . P )
2829class BaselineProfileGenerator {
2930 @get:Rule
3031 val baselineProfileRule = BaselineProfileRule ()
3132
3233 @Test
3334 fun startup () =
34- baselineProfileRule.collectBaselineProfile (
35+ baselineProfileRule.collect (
3536 packageName = " io.getstream.whatsappclone"
3637 ) {
3738 pressHome()
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ androidDesugarJdkLibs = "1.1.5"
88androidGradlePlugin = " 8.1.2"
99androidxActivity = " 1.8.0"
1010androidxAppCompat = " 1.6.1"
11- androidxCompose = " 1.5.3 "
11+ androidxCompose = " 1.5.4 "
1212androidxComposeCompiler = " 1.5.3"
1313androidxComposeMaterial3 = " 1.0.0-alpha13"
1414androidxComposeConstraintLayout = " 1.0.1"
1515androidxComposeNavigation = " 2.5.3"
1616androidxCore = " 1.12.0"
1717androidxHiltNavigationCompose = " 1.0.0"
1818androidxLifecycle = " 2.6.2"
19- androidxMacroBenchmark = " 1.1.1 "
19+ androidxMacroBenchmark = " 1.2.0 "
2020androidxNavigation = " 2.5.0"
2121androidxProfileinstaller = " 1.3.1"
2222androidxStartup = " 1.1.1"
@@ -34,7 +34,7 @@ kotlinxCoroutines = "1.7.3"
3434kotlinxSerializationJson = " 1.6.0"
3535ksp = " 1.9.10-1.0.13"
3636ktlint = " 0.43.0"
37- okhttp = " 4.11 .0"
37+ okhttp = " 4.12 .0"
3838retrofit = " 2.9.0"
3939retrofitResultAdapter = " 1.0.9"
4040retrofitKotlinxSerializationJson = " 1.0.0"
You can’t perform that action at this time.
0 commit comments