Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Enable strict reference checks #232

Merged
merged 1 commit into from
Sep 29, 2022
Merged

Enable strict reference checks #232

merged 1 commit into from
Sep 29, 2022

Conversation

Goooler
Copy link
Owner

@Goooler Goooler commented Sep 29, 2022

https://developer.android.com/studio/build/shrink-code#strict-reference-checks

OLD: old.apk (signature: V1, V2, V3)
NEW: new.apk (signature: V1, V2, V3)

          │             compressed             │           uncompressed
          ├───────────┬───────────┬────────────┼───────────┬───────────┬───────────
 APK      │ old       │ new       │ diff       │ old       │ new       │ diff
──────────┼───────────┼───────────┼────────────┼───────────┼───────────┼───────────
      dex │   1.6 MiB │   1.6 MiB │   +2.1 KiB │   3.6 MiB │   3.6 MiB │  +4.5 KiB
     arsc │ 364.5 KiB │ 285.5 KiB │  -78.9 KiB │ 364.3 KiB │ 285.4 KiB │ -78.9 KiB
 manifest │   2.7 KiB │   2.7 KiB │        0 B │  10.4 KiB │  10.4 KiB │       0 B
      res │ 284.1 KiB │ 253.7 KiB │  -30.4 KiB │ 413.4 KiB │ 359.1 KiB │ -54.3 KiB
    asset │   5.2 KiB │   5.2 KiB │      +15 B │   4.9 KiB │   4.9 KiB │     +19 B
    other │  31.8 KiB │  26.5 KiB │   -5.2 KiB │  64.6 KiB │  53.2 KiB │ -11.3 KiB
──────────┼───────────┼───────────┼────────────┼───────────┼───────────┼───────────
    total │   2.3 MiB │   2.2 MiB │ -112.5 KiB │   4.4 MiB │   4.3 MiB │  -140 KiB


 DEX     │ old   │ new   │ diff
─────────┼───────┼───────┼───────────────────
   files │     1 │     1 │   0
 strings │ 24394 │ 24409 │ +15 (+480 -465)
   types │  5202 │  5206 │  +4 (+459 -455)
 classes │  4106 │  4110 │  +4 (+428 -424)
 methods │ 24110 │ 24131 │ +21 (+5891 -5870)
  fields │ 26552 │ 26569 │ +17 (+2959 -2942)


 ARSC    │ old  │ new  │ diff
─────────┼──────┼──────┼──────────────────
 configs │   51 │   49 │    -2 (+0 -2)
 entries │ 2795 │ 1326 │ -1469 (+0 -1469)

@Goooler Goooler added the enhancement New feature or request label Sep 29, 2022
@Goooler Goooler added this to the 1.7.0 milestone Sep 29, 2022
@Goooler Goooler merged commit 2555a88 into trunk Sep 29, 2022
@Goooler Goooler deleted the res_strick_mode branch September 29, 2022 18:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant