Effective ProGuard keep rules for smaller applications (Google I/O '18)

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 19

  • @robchr
    @robchr 6 лет назад +10

    I liked the walk through of how to generate better keep rules.

  • @amirrezafiroozi4080
    @amirrezafiroozi4080 6 лет назад +5

    One of the best presentations I've ever watched! nicely explained!

  • @JimmyDeemo
    @JimmyDeemo 6 лет назад +6

    I would very much like to see some workable examples of how one should approach a similar problem, but on a much bigger application. e.g. Unity app where you utilise many plugins, the code of which is quite hidden from you, but need to try to keep it under the dex limit.

    • @rameshpant1204
      @rameshpant1204 2 года назад +1

      Not just that, many of GOOGLE's own code base is hidden, so when I'm trying to use just firebase for cloud messaging part, I somehow need gms libraries as well (which contains ads and crash analytics libraries, I suspect which in no way is needed for my app). Stephan here was indeed lucky to not be working with firebase or GMS.

    • @PoPo-bi6nh
      @PoPo-bi6nh 2 года назад

      Ok

  • @Maciejfw
    @Maciejfw 2 года назад

    Thx, this was a great video. I wish that I learned this lafter years of debuging minify randomly.

  • @h4m74ro
    @h4m74ro 6 лет назад

    Great talk! R8 shrinks already a lot more than proguard. Couldn't find any regressions until now. 😎

  • @amiladrck
    @amiladrck 4 года назад

    Great explanation!

  • @raespim
    @raespim 3 года назад

    this final rules solution keepclassmembers didn't work and my app crashes.. android studio version is Artic Fox with 7.0.2 gradle plugin.... did i foget something?

  • @BrianChu888
    @BrianChu888 6 лет назад +1

    978Kb still include all these classes and layouts which this app will never use (e.g. abc_alert_* layout, v4 media class, notification layout, etc etc) and there seems to be no way to get rid of them. hope R8 will fix it.

  • @poojapatwa217
    @poojapatwa217 5 лет назад

    Here If I am setting -dontwarn to these warning I am able to build signed apk but that is not getting installed. kindly do the needful

  • @chandanvidyarthi3660
    @chandanvidyarthi3660 4 года назад

    Can progaurd obfuscate activity class ?

    • @شرحتطبيقالاعلافالبديلة
      @شرحتطبيقالاعلافالبديلة Год назад

      R8 can do obfuscate for class(simply change class name) .. to make it harder for reverse engineering... this mean its harder for any one to steal your source code and upload it in different platform like apk pure and simliar platforms.... R8 have it own programing langague (R8 language used shrink apps only )

  • @royalstranger
    @royalstranger 3 года назад

    Can anyone solve this problem
    AAPT: unknown option '--proguard-minimal-keep-rules'.
    aapt2 link [options] -o arg --manifest arg files...
    Using build script
    classpath 'com.android.tools:gradle:4.0.1'
    Version : 6.1.1 gradle version in distribution Url

  • @witoldsienski1709
    @witoldsienski1709 6 лет назад

    Great talk :)

  • @MrOneWorld123
    @MrOneWorld123 5 лет назад +2

    The previous session about the compiler: ruclips.net/video/gGOOkk2y_Ss/видео.html

  • @PoPo-bi6nh
    @PoPo-bi6nh 2 года назад

    ម៉ាក់ រក្សា