Skip to content

Commit 935e91d

Browse files
committed
cross platform insights
1 parent e136a63 commit 935e91d

File tree

6 files changed

+66
-22
lines changed

6 files changed

+66
-22
lines changed

docs/platforms/android/size-analysis/insights.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,4 @@ Size Analysis Insights point out how Android app can reduce its size. They spot
1212

1313
Below are a list of available insights for Android builds.
1414

15-
| Insight | What it catches |
16-
| --------------------------- | --------------------------------------------------------------------- |
17-
| Duplicate files | Flags identical payloads you can keep once and drop the copies. |
18-
| Large images | Surfaces oversized image assets worth recompressing or resizing. |
19-
| Large videos | Highlights video files that are bigger than typical delivery budgets. |
20-
| WebP optimization | Tests bitmap assets to see if WebP would deliver byte savings. |
21-
| Large audio | Surfaces hefty audio tracks that could be recompressed or trimmed. |
22-
| Hermes debug info (RN only) | Points to bundled Hermes bytecode still carrying debuggers' metadata |
15+
<Include name="size-analysis/android-insights.mdx" />

docs/platforms/apple/guides/ios/size-analysis/insights.mdx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,4 @@ Size Analysis Insights point out how iOS app can reduce its size. They spot patt
1212

1313
Below are a list of available insights for iOS builds.
1414

15-
| Insight | What it catches |
16-
| --------------------------- | ------------------------------------------------------------------------------------------- |
17-
| Duplicate files | Flags identical payloads you can keep once and drop the copies. |
18-
| Large videos | Highlights video files that are bigger than typical delivery budgets. |
19-
| Image optimization | Surfaces oversized PNG/JPEG/HEIC assets and recommends recompressing or converting to HEIC. |
20-
| Alternate icon optimization | Checks alternate app icons for downscaling and recompressing. |
21-
| Loose images | Groups @1x/@2x/@3x variants that should move into asset catalogs. |
22-
| Small files | Totals tiny files wasting space because of 4 KB filesystem blocks. |
23-
| Strip binary | Shows binaries that still include removable debug sections or symbols. |
24-
| Localized strings | Estimates savings from shrinking `.strings` payloads. |
25-
| Minify localized strings | Measures wins from stripping comments in `.strings` files. |
26-
| Main binary export metadata | Reports export tries on main binaries that are larger than needed. |
27-
| Unnecessary files | Catches docs, scripts, configs, or other build leftovers in the bundle. |
28-
| Hermes debug info (RN only) | Points to bundled Hermes bytecode still carrying debuggers' metadata |
15+
<Include name="size-analysis/ios-insights.mdx" />
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Insights
3+
sidebar_order: 5250
4+
description: Preview how Size Analysis highlights Flutter build trends.
5+
---
6+
7+
TODO: ADD SOME PICS
8+
9+
Size Analysis Insights point out how Flutter apps can reduce their size. They spot patterns like duplicate files, oversized media, or unneeded assets, and list exactly what to fix along with the estimated size savings.
10+
11+
## Android Insights
12+
13+
Below are a list of available insights for Android builds.
14+
15+
<Include name="size-analysis/android-insights.mdx" />
16+
17+
## iOS Insights
18+
19+
Below are a list of available insights for iOS builds.
20+
21+
<Include name="size-analysis/ios-insights.mdx" />
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Insights
3+
sidebar_order: 5250
4+
description: See how Size Analysis surfaces trends for React Native builds.
5+
---
6+
7+
TODO: ADD SOME PICS
8+
9+
Size Analysis Insights point out how React Native apps can reduce their size. They spot patterns like duplicate files, oversized media, or unneeded assets, and list exactly what to fix along with the estimated size savings.
10+
11+
## Android Insights
12+
13+
Below are a list of available insights for Android builds.
14+
15+
<Include name="size-analysis/android-insights.mdx" />
16+
17+
## iOS Insights
18+
19+
Below are a list of available insights for iOS builds.
20+
21+
<Include name="size-analysis/ios-insights.mdx" />
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| Insight | What it catches |
2+
| --------------------------- | --------------------------------------------------------------------- |
3+
| Duplicate files | Flags identical payloads you can keep once and drop the copies. |
4+
| Large images | Surfaces oversized image assets worth recompressing or resizing. |
5+
| Large videos | Highlights video files that are bigger than typical delivery budgets. |
6+
| WebP optimization | Tests bitmap assets to see if WebP would deliver byte savings. |
7+
| Large audio | Surfaces hefty audio tracks that could be recompressed or trimmed. |
8+
| Hermes debug info (RN only) | Points to bundled Hermes bytecode still carrying debuggers' metadata |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
| Insight | What it catches |
2+
| --------------------------- | ------------------------------------------------------------------------------------------- |
3+
| Duplicate files | Flags identical payloads you can keep once and drop the copies. |
4+
| Large videos | Highlights video files that are bigger than typical delivery budgets. |
5+
| Image optimization | Surfaces oversized PNG/JPEG/HEIC assets and recommends recompressing or converting to HEIC. |
6+
| Alternate icon optimization | Checks alternate app icons for downscaling and recompressing. |
7+
| Loose images | Groups @1x/@2x/@3x variants that should move into asset catalogs. |
8+
| Small files | Totals tiny files wasting space because of 4 KB filesystem blocks. |
9+
| Strip binary | Shows binaries that still include removable debug sections or symbols. |
10+
| Localized strings | Estimates savings from shrinking `.strings` payloads. |
11+
| Minify localized strings | Measures wins from stripping comments in `.strings` files. |
12+
| Main binary export metadata | Reports export tries on main binaries that are larger than needed. |
13+
| Unnecessary files | Catches docs, scripts, configs, or other build leftovers in the bundle. |
14+
| Hermes debug info (RN only) | Points to bundled Hermes bytecode still carrying debuggers' metadata |

0 commit comments

Comments
 (0)