diff --git a/README.md b/README.md index c2c9074..e7bf83f 100644 --- a/README.md +++ b/README.md @@ -334,11 +334,6 @@ DetailLiveUpdateBadge(tick = tick) // recomposed on every tick ## LayoutInspector screenshot gallery -> Replace the placeholder paths below with screenshots captured in -> **Android Studio → App Inspection → Layout Inspector** while the app is running. -> Enable **Recomposition Highlighting** (the colour-coded recompose-count overlay) -> to visualise exactly which composables recompose on each frame. - ### 1 · Unoptimized scroll — recomposition storm ![Recomposition storm on UnoptimizedAnimatedListScreen](docs/screenshots/recomposition_unoptimized.png) @@ -370,16 +365,6 @@ prevents cascading recompositions from `likeCount` changes.* --- -### 4 · `graphicsLayer` node in the component tree - -![graphicsLayer node shown in Layout Inspector component tree](docs/screenshots/graphicslayer_tree.png) - -*The Layout Inspector's component tree shows a `GraphicsLayer` wrapper around each card. -This is the draw-phase boundary: everything below it can update without causing the -subtrees above it to recompose.* - ---- - ### 5 · System trace — startup before and after ![System trace comparison: baseline vs optimised startup](docs/screenshots/systrace_startup_comparison.png) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7c2e0e9..fe2ff6b 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -57,7 +57,6 @@ baselineProfile { } dependencies { - implementation(project(":data")) implementation(project(":ui")) implementation(libs.androidx.core.ktx) diff --git a/data/build.gradle.kts b/data/build.gradle.kts deleted file mode 100644 index 52d78e4..0000000 --- a/data/build.gradle.kts +++ /dev/null @@ -1,23 +0,0 @@ -plugins { - alias(libs.plugins.android.library) -} - -android { - namespace = "com.aquib.androidperflab.data" - compileSdk = 35 - - defaultConfig { - minSdk = 24 - } - - compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 - } -} - -dependencies { - implementation(libs.androidx.core.ktx) - - testImplementation(libs.junit) -} diff --git a/data/src/main/AndroidManifest.xml b/data/src/main/AndroidManifest.xml deleted file mode 100644 index b2d3ea1..0000000 --- a/data/src/main/AndroidManifest.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/data/src/main/java/com/aquib/androidperflab/data/Repository.kt b/data/src/main/java/com/aquib/androidperflab/data/Repository.kt deleted file mode 100644 index 7a88f4a..0000000 --- a/data/src/main/java/com/aquib/androidperflab/data/Repository.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.aquib.androidperflab.data - -interface Repository { - suspend fun getAll(): List - suspend fun getById(id: String): T? -} diff --git a/docs/screenshots/derived_state_detail.png b/docs/screenshots/derived_state_detail.png new file mode 100644 index 0000000..fe37f51 Binary files /dev/null and b/docs/screenshots/derived_state_detail.png differ diff --git a/docs/screenshots/recomposition_optimized.png b/docs/screenshots/recomposition_optimized.png new file mode 100644 index 0000000..131c991 Binary files /dev/null and b/docs/screenshots/recomposition_optimized.png differ diff --git a/docs/screenshots/recomposition_unoptimized.png b/docs/screenshots/recomposition_unoptimized.png new file mode 100644 index 0000000..d64aa66 Binary files /dev/null and b/docs/screenshots/recomposition_unoptimized.png differ diff --git a/docs/screenshots/systrace-startup-comparison.png b/docs/screenshots/systrace-startup-comparison.png new file mode 100644 index 0000000..bbb5574 Binary files /dev/null and b/docs/screenshots/systrace-startup-comparison.png differ diff --git a/settings.gradle.kts b/settings.gradle.kts index cff0cff..b1eeda6 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -24,6 +24,5 @@ dependencyResolutionManagement { rootProject.name = "AndroidPerfLab" include(":app") -include(":data") include(":ui") include(":benchmarks")