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

Add extra proguard rules to remove unnecessary methods #346

Merged
merged 2 commits into from
Feb 25, 2023
Merged

Conversation

Goooler
Copy link
Owner

@Goooler Goooler commented Feb 25, 2023

No description provided.

@Goooler Goooler added the enhancement New feature or request label Feb 25, 2023
@Goooler Goooler added this to the 1.8.0 milestone Feb 25, 2023
@Goooler
Copy link
Owner Author

Goooler commented Feb 25, 2023

OLD: DemoApp_1.8.0_108000_prod_release_6110edf.apk (signature: V1, V2, V3)
NEW: DemoApp_1.8.0_108000_prod_release_a078010.apk (signature: V1, V2, V3)

          │            compressed             │           uncompressed
          ├───────────┬───────────┬───────────┼───────────┬───────────┬───────────
 APK      │ old       │ new       │ diff      │ old       │ new       │ diff
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────
      dex │   1.6 MiB │   1.6 MiB │ -31.8 KiB │   3.6 MiB │   3.5 MiB │ -75.5 KiB
     arsc │ 301.4 KiB │ 301.4 KiB │       0 B │ 301.2 KiB │ 301.2 KiB │       0 B
 manifest │   2.7 KiB │   2.7 KiB │       0 B │  10.7 KiB │  10.7 KiB │       0 B
      res │ 267.2 KiB │ 267.2 KiB │       0 B │ 381.1 KiB │ 381.1 KiB │       0 B
    asset │     5 KiB │   4.1 KiB │    -867 B │   4.7 KiB │   3.8 KiB │    -873 B
    other │  28.9 KiB │  28.9 KiB │     -13 B │  58.7 KiB │  58.7 KiB │       0 B
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────
    total │   2.2 MiB │   2.2 MiB │ -32.7 KiB │   4.3 MiB │   4.2 MiB │ -76.3 KiB


 DEX     │ old   │ new   │ diff
─────────┼───────┼───────┼────────────────────
   files │     1 │     1 │    0
 strings │ 24886 │ 23946 │ -940 (+27 -967)
   types │  5118 │  5112 │   -6 (+13 -19)
 classes │  3956 │  3950 │   -6 (+6 -12)
 methods │ 24627 │ 24496 │ -131 (+3119 -3250)
  fields │ 26812 │ 26762 │  -50 (+5760 -5810)


 ARSC    │ old  │ new  │ diff
─────────┼──────┼──────┼──────
 configs │   49 │   49 │  0
 entries │ 1386 │ 1386 │  0


=================
====   APK   ====
=================

      compressed      │     uncompressed     │
──────────┬───────────┼──────────┬───────────┤
 size     │ diff      │ size     │ diff      │ path
──────────┼───────────┼──────────┼───────────┼────────────────────────────────
  1.6 MiB │ -31.8 KiB │  3.5 MiB │ -75.5 KiB │ ∆ classes.dex
  3.5 KiB │    -871 B │  3.4 KiB │    -871 B │ ∆ assets/dexopt/baseline.prof
 12.9 KiB │     -13 B │ 28.3 KiB │       0 B │ ∆ META-INF/MANIFEST.MF
    592 B │      +4 B │    454 B │      -2 B │ ∆ assets/dexopt/baseline.profm
 13.5 KiB │      -3 B │ 28.4 KiB │       0 B │ ∆ META-INF/CERT.SF
  1.2 KiB │      +3 B │  1.3 KiB │       0 B │ ∆ META-INF/CERT.RSA
──────────┼───────────┼──────────┼───────────┼────────────────────────────────
  1.6 MiB │ -32.7 KiB │  3.6 MiB │ -76.3 KiB │ (total)



=================
====   DEX   ====
=================

STRINGS:

   old   │ new   │ diff
  ───────┼───────┼─────────────────
   24886 │ 23946 │ -940 (+27 -967)

@Goooler
Copy link
Owner Author

Goooler commented Feb 25, 2023

OLD: DemoApp_1.8.0_108000_prod_release_a078010.apk (signature: V1, V2, V3)
NEW: DemoApp_1.8.0_108000_prod_release_128a20e.apk (signature: V1, V2, V3)

          │            compressed             │           uncompressed
          ├───────────┬───────────┬───────────┼───────────┬───────────┬───────────
 APK      │ old       │ new       │ diff      │ old       │ new       │ diff
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────
      dex │   1.6 MiB │   1.6 MiB │ -10.9 KiB │   3.5 MiB │   3.5 MiB │ -25.5 KiB
     arsc │ 301.4 KiB │ 301.4 KiB │       0 B │ 301.2 KiB │ 301.2 KiB │       0 B
 manifest │   2.7 KiB │   2.7 KiB │       0 B │  10.7 KiB │  10.7 KiB │       0 B
      res │ 267.2 KiB │ 267.2 KiB │      -2 B │ 381.1 KiB │ 381.1 KiB │       0 B
    asset │   4.1 KiB │     5 KiB │    +896 B │   3.8 KiB │   4.7 KiB │    +896 B
    other │  28.9 KiB │  28.9 KiB │      +1 B │  58.7 KiB │  58.7 KiB │       0 B
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────
    total │   2.2 MiB │   2.2 MiB │   -10 KiB │   4.2 MiB │   4.2 MiB │ -24.6 KiB


 DEX     │ old   │ new   │ diff
─────────┼───────┼───────┼────────────────────
   files │     1 │     1 │    0
 strings │ 23946 │ 23601 │ -345 (+30 -375)
   types │  5112 │  5115 │   +3 (+8 -5)
 classes │  3950 │  3951 │   +1 (+3 -2)
 methods │ 24496 │ 24485 │  -11 (+1930 -1941)
  fields │ 26762 │ 26768 │   +6 (+380 -374)


 ARSC    │ old  │ new  │ diff
─────────┼──────┼──────┼──────
 configs │   49 │   49 │  0
 entries │ 1386 │ 1386 │  0


=================
====   APK   ====
=================

      compressed      │     uncompressed     │
──────────┬───────────┼──────────┬───────────┤
 size     │ diff      │ size     │ diff      │ path
──────────┼───────────┼──────────┼───────────┼───────────────────────────────
  1.6 MiB │ -10.9 KiB │  3.5 MiB │ -25.5 KiB │ ∆ classes.dex
  4.4 KiB │    +896 B │  4.3 KiB │    +896 B │ ∆ assets/dexopt/baseline.prof
    309 B │      -2 B │    207 B │       0 B │ ∆ res/0H.9.png
 12.9 KiB │      +2 B │ 28.3 KiB │       0 B │ ∆ META-INF/MANIFEST.MF
  1.2 KiB │      -1 B │  1.3 KiB │       0 B │ ∆ META-INF/CERT.RSA
──────────┼───────────┼──────────┼───────────┼───────────────────────────────
  1.6 MiB │   -10 KiB │  3.5 MiB │ -24.6 KiB │ (total)



=================
====   DEX   ====
=================

STRINGS:

   old   │ new   │ diff
  ───────┼───────┼─────────────────
   23946 │ 23601 │ -345 (+30 -375)

@Goooler Goooler changed the title Add extra proguard rules to remove Intrinsics methods Add extra proguard rules to remove unnecessary methods Feb 25, 2023
@Goooler
Copy link
Owner Author

Goooler commented Feb 25, 2023

OLD: DemoApp_1.8.0_108000_prod_release_6110edf.apk (signature: V1, V2, V3)
NEW: DemoApp_1.8.0_108000_prod_release_128a20e.apk (signature: V1, V2, V3)

          │            compressed             │           uncompressed
          ├───────────┬───────────┬───────────┼───────────┬───────────┬──────────
 APK      │ old       │ new       │ diff      │ old       │ new       │ diff
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼──────────
      dex │   1.6 MiB │   1.6 MiB │ -42.8 KiB │   3.6 MiB │   3.5 MiB │ -101 KiB
     arsc │ 301.4 KiB │ 301.4 KiB │       0 B │ 301.2 KiB │ 301.2 KiB │      0 B
 manifest │   2.7 KiB │   2.7 KiB │       0 B │  10.7 KiB │  10.7 KiB │      0 B
      res │ 267.2 KiB │ 267.2 KiB │      -2 B │ 381.1 KiB │ 381.1 KiB │      0 B
    asset │     5 KiB │     5 KiB │     +29 B │   4.7 KiB │   4.7 KiB │    +23 B
    other │  28.9 KiB │  28.9 KiB │     -12 B │  58.7 KiB │  58.7 KiB │      0 B
──────────┼───────────┼───────────┼───────────┼───────────┼───────────┼──────────
    total │   2.2 MiB │   2.2 MiB │ -42.7 KiB │   4.3 MiB │   4.2 MiB │ -101 KiB


 DEX     │ old   │ new   │ diff
─────────┼───────┼───────┼─────────────────────
   files │     1 │     1 │     0
 strings │ 24886 │ 23601 │ -1285 (+32 -1317)
   types │  5118 │  5115 │    -3 (+18 -21)
 classes │  3956 │  3951 │    -5 (+9 -14)
 methods │ 24627 │ 24485 │  -142 (+3292 -3434)
  fields │ 26812 │ 26768 │   -44 (+5838 -5882)


 ARSC    │ old  │ new  │ diff
─────────┼──────┼──────┼──────
 configs │   49 │   49 │  0
 entries │ 1386 │ 1386 │  0


=================
====   APK   ====
=================

      compressed      │    uncompressed     │
──────────┬───────────┼──────────┬──────────┤
 size     │ diff      │ size     │ diff     │ path
──────────┼───────────┼──────────┼──────────┼────────────────────────────────
  1.6 MiB │ -42.8 KiB │  3.5 MiB │ -101 KiB │ ∆ classes.dex
  4.4 KiB │     +25 B │  4.3 KiB │    +25 B │ ∆ assets/dexopt/baseline.prof
 12.9 KiB │     -11 B │ 28.3 KiB │      0 B │ ∆ META-INF/MANIFEST.MF
    592 B │      +4 B │    454 B │     -2 B │ ∆ assets/dexopt/baseline.profm
 13.5 KiB │      -3 B │ 28.4 KiB │      0 B │ ∆ META-INF/CERT.SF
    309 B │      -2 B │    207 B │      0 B │ ∆ res/0H.9.png
  1.2 KiB │      +2 B │  1.3 KiB │      0 B │ ∆ META-INF/CERT.RSA
──────────┼───────────┼──────────┼──────────┼────────────────────────────────
  1.6 MiB │ -42.7 KiB │  3.5 MiB │ -101 KiB │ (total)



=================
====   DEX   ====
=================

STRINGS:

   old   │ new   │ diff
  ───────┼───────┼───────────────────
   24886 │ 23601 │ -1285 (+32 -1317)

@Goooler Goooler enabled auto-merge (squash) February 25, 2023 21:11
@Goooler Goooler merged commit 01afb5e into trunk Feb 25, 2023
@Goooler Goooler deleted the extra_rules branch February 25, 2023 21:14
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